staging: wilc1000: del_key: use netdev private wilc instead of g_linux_wlan
Use netdev private data member wilc instead of global variable g_linux_wlan. Signed-off-by: Glen Lee <glen.lee@atmel.com> Signed-off-by: Tony Cho <tony.cho@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7646920087
commit
692e2aceff
1 changed files with 5 additions and 1 deletions
|
@ -1360,11 +1360,15 @@ static int del_key(struct wiphy *wiphy, struct net_device *netdev,
|
|||
const u8 *mac_addr)
|
||||
{
|
||||
struct wilc_priv *priv;
|
||||
struct wilc *wl;
|
||||
perInterface_wlan_t *nic;
|
||||
|
||||
priv = wiphy_priv(wiphy);
|
||||
nic = netdev_priv(netdev);
|
||||
wl = nic->wilc;
|
||||
|
||||
/*delete saved keys, if any*/
|
||||
if (netdev == g_linux_wlan->vif[0].ndev) {
|
||||
if (netdev == wl->vif[0].ndev) {
|
||||
g_ptk_keys_saved = false;
|
||||
g_gtk_keys_saved = false;
|
||||
g_wep_keys_saved = false;
|
||||
|
|
Loading…
Reference in a new issue