mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 19:48:16 +04:00
In the 6 GHz band an AP turns none into owe, the psk modes into sae, the WPA2-Enterprise modes into wpa3, and a transition mode into its WPA3 part. A station with the same configuration kept WPA-PSK, NONE, the WPA protocol or the 802.1X SHA-1 AKM. wpa_supplicant skips a 6 GHz BSS without an RSNE and removes the PSK AKMs there (events.c, "WPA PSK is not allowed on the 6 GHz band"), so that station could not join. WPA3 Specification v3.5 11.2 also says that a WPA3 station connecting there "shall not allow ... 802.1X SHA-1 AKM". Move encryption_band() from ap.uc to iface.uc and apply it in setup_sta() for mode sta. Mesh and ad-hoc keep their own handling. Signed-off-by: Felix Fietkau <nbd@nbd.name>