staging: ks7010: Remove trailing _t from 'struct wpa_key_t'.
authorQuytelda Kahja <quytelda@tamalin.org>
Sat, 31 Mar 2018 06:08:41 +0000 (23:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 12:18:57 +0000 (14:18 +0200)
The "_t" suffix is not needed for structure names in this driver, and is a
reflection of an older typedef system that is no longer in place. Replace
all occurences of 'struct wpa_key_t' with 'struct wpa_key'.

Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c
drivers/staging/ks7010/ks_wlan.h
drivers/staging/ks7010/ks_wlan_net.c

index 442f5e2b44e560ebed1a5a8c77aaa9f4184925d6..d5be57e974ace9e187a570461ac672f68219574f 100644 (file)
@@ -318,7 +318,7 @@ int hostif_data_indication_wpa(struct ks_wlan_private *priv,
        struct michael_mic_t michael_mic;
        union iwreq_data wrqu;
        unsigned int key_index = auth_type - 1;
-       struct wpa_key_t *key = &priv->wpa.key[key_index];
+       struct wpa_key *key = &priv->wpa.key[key_index];
 
        eth_hdr = (struct ether_hdr *)(priv->rxp);
        eth_proto = ntohs(eth_hdr->h_proto);
index ece9950ba893d6ed7aa1ef84662874c1f593c3ba..2458dbba66a0853099a27743922c2800c2aad888 100644 (file)
@@ -339,7 +339,7 @@ enum {
 
 #define MIC_KEY_SIZE 8
 
-struct wpa_key_t {
+struct wpa_key {
        u32 ext_flags;  /* IW_ENCODE_EXT_xxx */
        u8 tx_seq[IW_ENCODE_SEQ_MAX_SIZE];      /* LSB first */
        u8 rx_seq[IW_ENCODE_SEQ_MAX_SIZE];      /* LSB first */
@@ -373,7 +373,7 @@ struct wpa_status_t {
        int key_mgmt_suite;     /* authentication key management suite */
        int auth_alg;
        int txkey;
-       struct wpa_key_t key[WPA_KEY_INDEX_MAX];
+       struct wpa_key key[WPA_KEY_INDEX_MAX];
        struct scan_ext scan_ext;
        struct mic_failure_t mic_failure;
 };
index a4f10bec865f996be2b27dccdd3aeb26f18bcc9e..1b8234720d78095a3f59395ce5bb2169458358b8 100644 (file)
@@ -1706,7 +1706,7 @@ static int ks_wlan_set_encode_ext(struct net_device *dev,
        struct iw_encode_ext *enc;
        int index = dwrq->flags & IW_ENCODE_INDEX;
        unsigned int commit = 0;
-       struct wpa_key_t *key;
+       struct wpa_key *key;
 
        enc = (struct iw_encode_ext *)extra;
        if (!enc)