aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index e0ecc9f153d4..14004e2ebd62 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -1264,7 +1264,7 @@ static int nl80211_set_key(struct sk_buff *skb, struct genl_info *info)
1264 if (!err) 1264 if (!err)
1265 err = func(&rdev->wiphy, dev, key.idx); 1265 err = func(&rdev->wiphy, dev, key.idx);
1266 1266
1267#ifdef CONFIG_WIRELESS_EXT 1267#ifdef CONFIG_CFG80211_WEXT
1268 if (!err) { 1268 if (!err) {
1269 if (func == rdev->ops->set_default_key) 1269 if (func == rdev->ops->set_default_key)
1270 dev->ieee80211_ptr->wext.default_key = key.idx; 1270 dev->ieee80211_ptr->wext.default_key = key.idx;
@@ -1365,7 +1365,7 @@ static int nl80211_del_key(struct sk_buff *skb, struct genl_info *info)
1365 if (!err) 1365 if (!err)
1366 err = rdev->ops->del_key(&rdev->wiphy, dev, key.idx, mac_addr); 1366 err = rdev->ops->del_key(&rdev->wiphy, dev, key.idx, mac_addr);
1367 1367
1368#ifdef CONFIG_WIRELESS_EXT 1368#ifdef CONFIG_CFG80211_WEXT
1369 if (!err) { 1369 if (!err) {
1370 if (key.idx == dev->ieee80211_ptr->wext.default_key) 1370 if (key.idx == dev->ieee80211_ptr->wext.default_key)
1371 dev->ieee80211_ptr->wext.default_key = -1; 1371 dev->ieee80211_ptr->wext.default_key = -1;