WSL2-Linux-Kernel/net/mac80211
John Crispin 75bcbd6913 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: 57fa5e85d5 ("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>
2020-09-18 14:01:24 +02:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
aead_api.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
aead_api.h
aes_ccm.h
aes_cmac.c
aes_cmac.h
aes_gcm.h
aes_gmac.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
aes_gmac.h
agg-rx.c mac8211: fix struct initialisation 2020-08-03 10:55:17 +02:00
agg-tx.c mac80211: accept aggregation sessions on 6 GHz 2020-05-31 11:27:16 +02:00
airtime.c mac80211: add AQL support for VHT160 tx rates 2020-09-18 11:36:03 +02:00
cfg.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-08-02 01:02:12 -07:00
chan.c mac80211: Use fallthrough pseudo-keyword 2020-07-31 09:24:23 +02:00
debug.h
debugfs.c
debugfs.h
debugfs_key.c
debugfs_key.h
debugfs_netdev.c cfg80211/mac80211: add connected to auth server to meshconf 2020-07-31 09:24:24 +02:00
debugfs_netdev.h
debugfs_sta.c
debugfs_sta.h
driver-ops.c
driver-ops.h mac80211: warn only once in check_sdata_in_driver() at each caller 2020-07-31 09:27:02 +02:00
ethtool.c
fils_aead.c
fils_aead.h
he.c mac80211: use HE 6 GHz band capability and pass it to the driver 2020-05-31 11:27:03 +02:00
ht.c mac80211: Use fallthrough pseudo-keyword 2020-07-31 09:24:23 +02:00
ibss.c mac80211: Use fallthrough pseudo-keyword 2020-07-31 09:24:23 +02:00
ieee80211_i.h mac80211: add a function for running rx without passing skbs to the stack 2020-07-31 09:27:01 +02:00
iface.c mac80211: parse radiotap header when selecting Tx queue 2020-07-31 09:27:01 +02:00
key.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
key.h
led.c
led.h
main.c mac80211: support control port TX status reporting 2020-05-28 09:02:14 +02:00
mesh.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-08-02 01:02:12 -07:00
mesh.h mac80211: add HE 6 GHz Band Capability element 2020-05-31 11:26:39 +02:00
mesh_hwmp.c cfg80211/mac80211: add mesh_param "mesh_nolearn" to skip path discovery 2020-07-31 09:24:23 +02:00
mesh_pathtbl.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-08-02 01:02:12 -07:00
mesh_plink.c mac80211: Use fallthrough pseudo-keyword 2020-07-31 09:24:23 +02:00
mesh_ps.c
mesh_sync.c
michael.c
michael.h
mlme.c mac80211: do not disable HE if HT is missing on 2.4 GHz 2020-09-18 11:41:50 +02:00
ocb.c
offchannel.c mac80211: remove unused flags argument in transmit functions 2020-07-31 09:27:01 +02:00
pm.c
rate.c
rate.h
rc80211_minstrel.c
rc80211_minstrel.h
rc80211_minstrel_debugfs.c
rc80211_minstrel_ht.c One batch of changes, containing: 2020-05-26 20:17:35 -07:00
rc80211_minstrel_ht.h
rc80211_minstrel_ht_debugfs.c
rx.c mac80211: Fix radiotap header channel flag for 6GHz band 2020-09-18 11:40:41 +02:00
scan.c mac80211: remove unused flags argument in transmit functions 2020-07-31 09:27:01 +02:00
spectmgmt.c mac80211: avoid using ext NSS high BW if not supported 2020-05-31 11:26:50 +02:00
sta_info.c mac80211: fix misplaced while instead of if 2020-08-03 11:03:14 +02:00
sta_info.h mac80211: reduce packet loss event false positives 2020-08-27 10:53:20 +02:00
status.c mac80211: reduce packet loss event false positives 2020-08-27 10:53:20 +02:00
tdls.c mac80211: Use fallthrough pseudo-keyword 2020-07-31 09:24:23 +02:00
tkip.c
tkip.h
trace.c
trace.h mac80211: use eth_zero_addr() to clear mac address 2020-08-03 10:56:04 +02:00
trace_msg.h
tx.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-08-02 01:02:12 -07:00
util.c mac80211: fix 80 MHz association to 160/80+80 AP on 6 GHz 2020-09-18 14:01:24 +02:00
vht.c mac80211: do not allow bigger VHT MPDUs than the hardware supports 2020-09-18 11:44:26 +02:00
wep.c
wep.h
wme.c mac80211: Use fallthrough pseudo-keyword 2020-07-31 09:24:23 +02:00
wme.h
wpa.c
wpa.h