]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: handle rate control (RC) racing with chanctx definition
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Fri, 18 Jun 2021 10:41:30 +0000 (13:41 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Jun 2021 09:29:14 +0000 (11:29 +0200)
commit724f913a3cce29e1710b92acfb2d6a090280539b
tree53d0b27e4358b959e129b9bb35a5f370bd3929a5
parentb67f3d87d9ae52eedfa59d2edacd925d2c585433
mac80211: handle rate control (RC) racing with chanctx definition

chanctx represents the current phy configuration and rate scale uses
it for achieving max throughput, so if phy changes bandwidth to narrow
bandwidth, RC should be _first_ updated to avoid using the wider bandwidth
before updating the phy, and vice versa.

We assume in the patch that station interface is always updated before
updating phy context by calling ieee80211_vif_update_chandef.

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210618133832.fc4e24496aa2.Ic40ea947c2f65739ea4b5fe3babd0a544240ced6@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c
net/mac80211/mlme.c