Skip to contentSkip to conversation

wifi: mac80211: Handle 320Mhz in ieee80211_ht_cap_ie_to_sta_ht_cap

PATCH In review [email protected] 2 participants 2 messages Nov 9, 2023 – Nov 10, 2023 mac80211

lore
Share & tools
lore
#0 lore raw

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..

---
 net/mac80211/ht.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/ht.c +1 -0
index 68cea2685224..749f4ecab990 100644
@@ -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
#1 lore raw
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..

---
  net/mac80211/ht.c | 1 +
  1 file changed, 1 insertion(+)
net/mac80211/ht.c +1 -0
index 68cea2685224..749f4ecab990 100644
@@ -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;