wifi: mac80211: Handle 320Mhz in ieee80211_ht_cap_ie_to_sta_ht_cap
PATCH 1/1 wifi: mac80211: Handle 320Mhz in ieee80211_ht_cap_ie_to_sta_ht_cap
From: Ben Greear <[email protected]>
I saw a splat in the switch statement, I think because 320Mhz was not specified..
Signed-off-by Ben Greear <[email protected]>
--- net/mac80211/ht.c | 1 + 1 file changed, 1 insertion(+)
net/mac80211/ht.c +1 -0
@@ -271,6 +271,7 @@ bool ieee80211_ht_cap_ie_to_sta_ht_cap(struct ieee80211_sub_if_data *sdata,case NL80211_CHAN_WIDTH_80 :case NL80211_CHAN_WIDTH_80P80 :case NL80211_CHAN_WIDTH_160 : +case NL80211_CHAN_WIDTH_320 : bw = ht_cap.cap &IEEE80211_HT_CAP_SUP_WIDTH_20_40 ?IEEE80211_STA_RX_BW_40 :IEEE80211_STA_RX_BW_20 ;break ;
Signature · 1 line
2.41.0
Quoted 3 lines · On 11/9/2023 10:22 AM, [email protected] wrote:
From: Ben Greear <[email protected]>
I saw a splat in the switch statement, I think because 320Mhz was
nit: s/Mhz/MHz/
Quoted 19 lines
not specified..
Signed-off-by Ben Greear <[email protected]>--- net/mac80211/ht.c | 1 + 1 file changed, 1 insertion(+)net/mac80211/ht.c +1
-0@@ -271,6 +271,7 @@ bool ieee80211_ht_cap_ie_to_sta_ht_cap(struct ieee80211_sub_if_data *sdata,case NL80211_CHAN_WIDTH_80 :case NL80211_CHAN_WIDTH_80P80 :case NL80211_CHAN_WIDTH_160 : +case NL80211_CHAN_WIDTH_320 : bw = ht_cap.cap &IEEE80211_HT_CAP_SUP_WIDTH_20_40 ?IEEE80211_STA_RX_BW_40 :IEEE80211_STA_RX_BW_20 ;break ;