]> git.baikalelectronics.ru Git - kernel.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)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 Sep 2020 12:01:24 +0000 (14:01 +0200)
commit11bdf8f1c0478b02becb6acc4d6d6ebfd19bae53
tree7761950d1f1bb546ec8076964c26b4803b08686c
parente19a1823b7f1e266f5e619b93097398f381bafcb
mac80211: fix 80 MHz association to 160/80+80 AP on 6 GHz

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: 6d6b20bf862e8 ("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>
net/mac80211/util.c