]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: mac80211: use max BW for HT channel width update
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 Apr 2026 12:42:01 +0000 (14:42 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 28 Apr 2026 07:27:45 +0000 (09:27 +0200)
When an HT channel width update comes in, don't use the
capability of the station, but rather set it to max as
the capability will be taken into account anyway when
using the value.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260415144514.bab6e4195d78.I9683605229ed1b75ff5a9c14e967762e88b3fc36@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ht.c

index 8f76440e9e4838e31c3bb1739b91ee47f749ec34..7d587f968a7ffb37ac65b337b9a39deb2b8106d6 100644 (file)
@@ -631,7 +631,7 @@ void ieee80211_ht_handle_chanwidth_notif(struct ieee80211_local *local,
        if (chanwidth == IEEE80211_HT_CHANWIDTH_20MHZ)
                max_bw = IEEE80211_STA_RX_BW_20;
        else
-               max_bw = ieee80211_sta_cap_rx_bw(link_sta);
+               max_bw = IEEE80211_STA_RX_BW_MAX;
 
        /* set cur_max_bandwidth and recalc sta bw */
        link_sta->cur_max_bandwidth = max_bw;