]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
mac80211: avoid rate init for S1G band
authorThomas Pedersen <thomas@adapt-ip.com>
Tue, 22 Sep 2020 02:28:13 +0000 (19:28 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 28 Sep 2020 11:57:24 +0000 (13:57 +0200)
minstrel_ht is confused by the lack of sband->bitrates,
and S1G will likely require a unique RC algorithm, so
avoid rate init for now if STA is on the S1G band.

Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
Link: https://lore.kernel.org/r/20200922022818.15855-13-thomas@adapt-ip.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rate.c

index 63266d73c2521ccac7f58696d3e9de2f9f741f39..0cba7fed28cf30522e2a92c3910e5d3352831dc7 100644 (file)
@@ -51,6 +51,12 @@ void rate_control_rate_init(struct sta_info *sta)
 
        sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band];
 
+       /* TODO: check for minstrel_s1g ? */
+       if (sband->band == NL80211_BAND_S1GHZ) {
+               rcu_read_unlock();
+               return;
+       }
+
        spin_lock_bh(&sta->rate_ctrl_lock);
        ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista,
                            priv_sta);