]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/mac80211/mlme.c
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)
commit3cc5240b5e036abb565c8ac7cffdcceb06a13517
tree1c4cb69866792f9ac9b856e59949b9aa77da2bdb
parent177958e9679c23537411066cc41b205635dacb14
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