mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 08:57:53 +04:00
hw_mode property is only present in device configuration section,
not the interface section, so testing for config.hw_mode in
iface.parse_encryption is wrong. Test for (dev_config.band == 60g)
instead, this will cause GCMP to be properly selected instead of
CCMP unless set explicitly, and while at that will cover both hostapd
and wpa_supplicant cases.
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24586
(cherry picked from commit 00045786e6)
Link: https://github.com/openwrt/openwrt/pull/24762
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>