Skip to content

Commit

Permalink
mac80211: Don't access managed mode bits in non-managed mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasanthakumar Thiagarajan authored and John W. Linville committed Apr 22, 2009
1 parent 9f201a8 commit b0741a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ static int ieee80211_ioctl_siwencode(struct net_device *dev,
!sdata->default_key,
keybuf, erq->length);

if (!ret) {
if (!ret && sdata->vif.type == NL80211_IFTYPE_STATION) {
if (remove)
sdata->u.mgd.flags &= ~IEEE80211_STA_TKIP_WEP_USED;
else
Expand Down

0 comments on commit b0741a1

Please sign in to comment.