mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 04:28:41 +04:00
WPA3 Specification v3.5 2.5 item 10: "A STA that enables EHT or MLO shall, in its Network Profile, allow GCMP-256 to be selected as a pairwise cipher." setup_sta() wrote pairwise=CCMP for every RSN mode, because parse_encryption() got no phy features in station mode. Read the GCMP-256 support of the phy in supplicant.generate() for an EHT htmode, and write pairwise=CCMP GCMP-256 for an RSN station when the phy supports GCMP-256. An explicit cipher or gcmp256 0 is kept. The GCMP-256 test moves to iface.phy_cipher_gcmp256(), which hostapd.uc uses as well. Signed-off-by: Felix Fietkau <nbd@nbd.name>