mac80211: Fix station bandwidth setting after channel switch
authorIlan Peer <ilan.peer@intel.com>
Fri, 31 Aug 2018 08:31:10 +0000 (11:31 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 3 Sep 2018 08:39:11 +0000 (10:39 +0200)
commit0007e94355fdb71a1cf5dba0754155cba08f0666
tree7cea37886d32669860ff5df116292ef0ce38600a
parentf3ffb6c3a28963657eb8b02a795d75f2ebbd5ef4
mac80211: Fix station bandwidth setting after channel switch

When performing a channel switch flow for a managed interface, the
flow did not update the bandwidth of the AP station and the rate
scale algorithm. In case of a channel width downgrade, this would
result with the rate scale algorithm using a bandwidth that does not
match the interface channel configuration.

Fix this by updating the AP station bandwidth and rate scaling algorithm
before the actual channel change in case of a bandwidth downgrade, or
after the actual channel change in case of a bandwidth upgrade.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c