Message ID | 20231109182201.495381-1-greearb@candelatech.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Johannes Berg |
Headers | show |
Series | wifi: mac80211: Handle 320Mhz in ieee80211_ht_cap_ie_to_sta_ht_cap | expand |
On 11/9/2023 10:22 AM, greearb@candelatech.com wrote: > From: Ben Greear <greearb@candelatech.com> > > I saw a splat in the switch statement, I think because 320Mhz was nit: s/Mhz/MHz/ > not specified.. > > Signed-off-by: Ben Greear <greearb@candelatech.com> > --- > net/mac80211/ht.c | 1 + > 1 file changed, 1 insertion(+) > > 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;
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;