]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: fix 80 MHz association to 160/80+80 AP on 6 GHz
authorJohn Crispin <john@phrozen.org>
Fri, 18 Sep 2020 11:53:04 +0000 (13:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 15:36:30 +0000 (17:36 +0200)
commit0c9fadf3a3c27b873557a490c0050fbbb8f996d8
treeaa2bbe9fda328a1c104aa13a0bd79f6b4e4c9912
parent7c094f2da8bea8ae089784698005bfefc3f467aa
mac80211: fix 80 MHz association to 160/80+80 AP on 6 GHz

[ Upstream commit 75bcbd6913de649601f4e7d3fb6d2b5effc24e9e ]

When trying to associate to an AP support 180 or 80+80 MHz on 6 GHz with a
STA that only has 80 Mhz support the cf2 field inside the chandef will get
set causing the association to fail when trying to validate the chandef.
Fix this by checking the support flags prior to setting cf2.

Fixes: 57fa5e85d53ce ("mac80211: determine chandef from HE 6 GHz operation")
Signed-off-by: John Crispin <john@phrozen.org>
Link: https://lore.kernel.org/r/20200918115304.1135693-1-john@phrozen.org
[reword commit message a bit]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/util.c