diff mbox series

wifi: mac80211: Handle 320Mhz in ieee80211_ht_cap_ie_to_sta_ht_cap

Message ID 20231109182201.495381-1-greearb@candelatech.com
State New
Headers show
Series wifi: mac80211: Handle 320Mhz in ieee80211_ht_cap_ie_to_sta_ht_cap | expand

Commit Message

Ben Greear Nov. 9, 2023, 6:22 p.m. UTC
From: Ben Greear <greearb@candelatech.com>

I saw a splat in the switch statement, I think because 320Mhz was
not specified..

Signed-off-by: Ben Greear <greearb@candelatech.com>
---
 net/mac80211/ht.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c
index 68cea2685224..749f4ecab990 100644
--- a/net/mac80211/ht.c
+++ b/net/mac80211/ht.c
@@ -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;