wifi: mac80211: handle 320 MHz in ieee80211_ht_cap_ie_to_sta_ht_cap
authorBen Greear <greearb@candelatech.com>
Thu, 9 Nov 2023 18:22:01 +0000 (10:22 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jan 2024 10:51:37 +0000 (11:51 +0100)
commit0e25eac37f7abe131b97d732e50de6eb21928d24
tree74d1e9ed226e4cb120738b8e389c83814456bf3c
parent3f7af987d55b9dcb03b023bbcba2e60fc02db944
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>
net/mac80211/ht.c