]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2e01a7f1ee06b2df2ff921f71f3de6fcf6cb218
tree7cea37886d32669860ff5df116292ef0ce38600a
parentb7f8155dcfa751a2a77296b129920cfce16a4520
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