Commit b7402474 authored by Quytelda Kahja's avatar Quytelda Kahja Committed by Greg Kroah-Hartman

staging: ks7010: Remove trailing _t from 'struct pmk_t'.

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 pmk_t' with 'struct pmk'.
Signed-off-by: default avatarQuytelda Kahja <quytelda@tamalin.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 956d23ae
...@@ -2130,7 +2130,7 @@ void hostif_sme_set_pmksa(struct ks_wlan_private *priv) ...@@ -2130,7 +2130,7 @@ void hostif_sme_set_pmksa(struct ks_wlan_private *priv)
u8 pmkid[IW_PMKID_LEN]; u8 pmkid[IW_PMKID_LEN];
} __packed list[PMK_LIST_MAX]; } __packed list[PMK_LIST_MAX];
} __packed pmkcache; } __packed pmkcache;
struct pmk_t *pmk; struct pmk *pmk;
int i; int i;
i = 0; i = 0;
......
...@@ -383,7 +383,7 @@ struct wpa_status { ...@@ -383,7 +383,7 @@ struct wpa_status {
struct pmk_list { struct pmk_list {
u16 size; u16 size;
struct list_head head; struct list_head head;
struct pmk_t { struct pmk {
struct list_head list; struct list_head list;
u8 bssid[ETH_ALEN]; u8 bssid[ETH_ALEN];
u8 pmkid[IW_PMKID_LEN]; u8 pmkid[IW_PMKID_LEN];
......
...@@ -1818,7 +1818,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev, ...@@ -1818,7 +1818,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev,
struct ks_wlan_private *priv = netdev_priv(dev); struct ks_wlan_private *priv = netdev_priv(dev);
struct iw_pmksa *pmksa; struct iw_pmksa *pmksa;
int i; int i;
struct pmk_t *pmk; struct pmk *pmk;
struct list_head *ptr; struct list_head *ptr;
if (priv->sleep_mode == SLP_SLEEP) if (priv->sleep_mode == SLP_SLEEP)
...@@ -1847,7 +1847,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev, ...@@ -1847,7 +1847,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev,
} }
/* search cache data */ /* search cache data */
list_for_each(ptr, &priv->pmklist.head) { list_for_each(ptr, &priv->pmklist.head) {
pmk = list_entry(ptr, struct pmk_t, list); pmk = list_entry(ptr, struct pmk, list);
if (memcmp(pmksa->bssid.sa_data, pmk->bssid, ETH_ALEN) == 0) { if (memcmp(pmksa->bssid.sa_data, pmk->bssid, ETH_ALEN) == 0) {
memcpy(pmk->pmkid, pmksa->pmkid, IW_PMKID_LEN); memcpy(pmk->pmkid, pmksa->pmkid, IW_PMKID_LEN);
list_move(&pmk->list, &priv->pmklist.head); list_move(&pmk->list, &priv->pmklist.head);
...@@ -1869,7 +1869,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev, ...@@ -1869,7 +1869,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev,
list_add(&pmk->list, &priv->pmklist.head); list_add(&pmk->list, &priv->pmklist.head);
priv->pmklist.size++; priv->pmklist.size++;
} else { /* overwrite old cache data */ } else { /* overwrite old cache data */
pmk = list_entry(priv->pmklist.head.prev, struct pmk_t, pmk = list_entry(priv->pmklist.head.prev, struct pmk,
list); list);
memcpy(pmk->bssid, pmksa->bssid.sa_data, ETH_ALEN); memcpy(pmk->bssid, pmksa->bssid.sa_data, ETH_ALEN);
memcpy(pmk->pmkid, pmksa->pmkid, IW_PMKID_LEN); memcpy(pmk->pmkid, pmksa->pmkid, IW_PMKID_LEN);
...@@ -1882,7 +1882,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev, ...@@ -1882,7 +1882,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev,
} }
/* search cache data */ /* search cache data */
list_for_each(ptr, &priv->pmklist.head) { list_for_each(ptr, &priv->pmklist.head) {
pmk = list_entry(ptr, struct pmk_t, list); pmk = list_entry(ptr, struct pmk, list);
if (memcmp(pmksa->bssid.sa_data, pmk->bssid, ETH_ALEN) == 0) { if (memcmp(pmksa->bssid.sa_data, pmk->bssid, ETH_ALEN) == 0) {
eth_zero_addr(pmk->bssid); eth_zero_addr(pmk->bssid);
memset(pmk->pmkid, 0, IW_PMKID_LEN); memset(pmk->pmkid, 0, IW_PMKID_LEN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment