]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: set channel back after disassociating
authorJohannes Berg <johannes.berg@intel.com>
Fri, 9 Mar 2012 12:12:35 +0000 (13:12 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Mar 2012 18:19:38 +0000 (14:19 -0400)
commit25aa8bc0a7b6c5bb8895970aca0c87141ca25fa9
tree1c4cb69866792f9ac9b856e59949b9aa77da2bdb
parentc9efb801262aab03bcd1016e7616f52cb4fbc520
mac80211: set channel back after disassociating

As we've discussed, we want to avoid channel changes
while associated. While the part when we actually
associate needs a bit more work, the bit that happens
on disassociating can be changed quite easily. Move
the channel type change later in the disassociate
process to set the channel only after the driver was
told that it's now disassociated.

As the driver could expect powersave to be enabled
only when associated, this thus results in splitting
the config call, but overall what happens makes more
sense this way.

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