mac80211: properly track HT operation_mode
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 8 May 2009 19:21:06 +0000 (21:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 May 2009 19:23:57 +0000 (15:23 -0400)
commit413ad50a5c15f3bae8075c15b101679f05c37a69
tree332bec3cf38b25fba1a712138ea92d83964cf9b9
parent9ed6bcce77f75d98af6ee07069deac6041948bee
mac80211: properly track HT operation_mode

When we disassociate, we set the channel to non-HT which
obviously invalidates any ht_operation_mode setting. But
when we then associate with the next AP again, we might
still have the ht_operation_mode from the previous AP
cached and fail to configure the hardware with the new
(but unchanged) operation mode. This patch fixes it by
separately tracking whether our cache is valid.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c