mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 01:49:20 -04:00
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: Quytelda Kahja <quytelda@tamalin.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
956d23aeb3
commit
b74024743e
@@ -2130,7 +2130,7 @@ void hostif_sme_set_pmksa(struct ks_wlan_private *priv)
|
||||
u8 pmkid[IW_PMKID_LEN];
|
||||
} __packed list[PMK_LIST_MAX];
|
||||
} __packed pmkcache;
|
||||
struct pmk_t *pmk;
|
||||
struct pmk *pmk;
|
||||
int i;
|
||||
|
||||
i = 0;
|
||||
|
||||
@@ -383,7 +383,7 @@ struct wpa_status {
|
||||
struct pmk_list {
|
||||
u16 size;
|
||||
struct list_head head;
|
||||
struct pmk_t {
|
||||
struct pmk {
|
||||
struct list_head list;
|
||||
u8 bssid[ETH_ALEN];
|
||||
u8 pmkid[IW_PMKID_LEN];
|
||||
|
||||
@@ -1818,7 +1818,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev,
|
||||
struct ks_wlan_private *priv = netdev_priv(dev);
|
||||
struct iw_pmksa *pmksa;
|
||||
int i;
|
||||
struct pmk_t *pmk;
|
||||
struct pmk *pmk;
|
||||
struct list_head *ptr;
|
||||
|
||||
if (priv->sleep_mode == SLP_SLEEP)
|
||||
@@ -1847,7 +1847,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev,
|
||||
}
|
||||
/* search cache data */
|
||||
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) {
|
||||
memcpy(pmk->pmkid, pmksa->pmkid, IW_PMKID_LEN);
|
||||
list_move(&pmk->list, &priv->pmklist.head);
|
||||
@@ -1869,7 +1869,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev,
|
||||
list_add(&pmk->list, &priv->pmklist.head);
|
||||
priv->pmklist.size++;
|
||||
} 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);
|
||||
memcpy(pmk->bssid, pmksa->bssid.sa_data, ETH_ALEN);
|
||||
memcpy(pmk->pmkid, pmksa->pmkid, IW_PMKID_LEN);
|
||||
@@ -1882,7 +1882,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev,
|
||||
}
|
||||
/* search cache data */
|
||||
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) {
|
||||
eth_zero_addr(pmk->bssid);
|
||||
memset(pmk->pmkid, 0, IW_PMKID_LEN);
|
||||
|
||||
Reference in New Issue
Block a user