summaryrefslogtreecommitdiffstats
path: root/net/mac80211/ht.c
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2023-11-09 10:22:01 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-20 11:50:03 +0100
commitd1d138c043ab7792356fc01cb8e991cb5581c01d (patch)
tree413e1003e5c133765a9a8799f713e4b4ea81224f /net/mac80211/ht.c
parent0c880e1e38ea90a32ed6d261dc952128cfe7561f (diff)
downloadlinux-stable-d1d138c043ab7792356fc01cb8e991cb5581c01d.tar.gz
linux-stable-d1d138c043ab7792356fc01cb8e991cb5581c01d.tar.bz2
linux-stable-d1d138c043ab7792356fc01cb8e991cb5581c01d.zip
wifi: mac80211: handle 320 MHz in ieee80211_ht_cap_ie_to_sta_ht_cap
[ Upstream commit 00f7d153f3358a7c7e35aef66fcd9ceb95d90430 ] The new 320 MHz channel width wasn't handled, so connecting a station to a 320 MHz AP would limit the station to 20 MHz (on HT) after a warning, handle 320 MHz to fix that. Signed-off-by: Ben Greear <greearb@candelatech.com> Link: https://lore.kernel.org/r/20231109182201.495381-1-greearb@candelatech.com [write a proper commit message] Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/mac80211/ht.c')
-rw-r--r--net/mac80211/ht.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c
index ae42e956eff5..9bfe128ada47 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;