diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2009-03-27 03:38:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:27 -0400 |
commit | b0741a1a2b00d9b4d88ba60016c88e42f176e4d6 (patch) | |
tree | ed047544a7caa10195ac144b00e87fb552c4609c | |
parent | 9f201a87831af9458df1eda65941c955f2da87ed (diff) |
mac80211: Don't access managed mode bits in non-managed mode
This fixes a stupid bug introduced in 25f85c31d4f..
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/mac80211/wext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c index 959aa8379ccf..a52fb3a4a455 100644 --- a/net/mac80211/wext.c +++ b/net/mac80211/wext.c | |||
@@ -675,7 +675,7 @@ static int ieee80211_ioctl_siwencode(struct net_device *dev, | |||
675 | !sdata->default_key, | 675 | !sdata->default_key, |
676 | keybuf, erq->length); | 676 | keybuf, erq->length); |
677 | 677 | ||
678 | if (!ret) { | 678 | if (!ret && sdata->vif.type == NL80211_IFTYPE_STATION) { |
679 | if (remove) | 679 | if (remove) |
680 | sdata->u.mgd.flags &= ~IEEE80211_STA_TKIP_WEP_USED; | 680 | sdata->u.mgd.flags &= ~IEEE80211_STA_TKIP_WEP_USED; |
681 | else | 681 | else |