[PATCH] hostapd: fix WPA3 enterprise keys and ciphers

2022-06-26 Thread Joerg Werner
WPA3 enterprise requires group_mgmt_cipher=BIP-GMAC-256 and if 802.11r is active also wpa_key_mgmt FT-EAP-SHA384. This commit also requires corresponding changes in netifd. Signed-off-by: Joerg Werner --- package/network/services/hostapd/files/hostapd.sh | 13 ++--- 1 file changed, 10

[PATCH] netifd: fix WPA3 enterprise ciphers

2022-06-26 Thread Joerg Werner
WPA3 enterprise requires wpa_cipher to be GCMP-256, so if the user set encryption to wpa3 or wpa3-mixed, then add GCMP-256. Also allow explicit selection of GCMP-256 by adding gcmp256 at the end of the encryption value. Signed-off-by: Joerg Werner --- scripts/netifd-wireless.sh | 5 - 1

[PATCH v2] netifd: fix WPA3 enterprise ciphers

2022-08-15 Thread Joerg Werner
WPA3 enterprise requires wpa_cipher to be GCMP-256 for good client/device support, so if the user sets encryption to wpa3 or wpa3-mixed, then add GCMP-256. Also allow explicit selection of GCMP-256/CCMP-256 ciphers by adding gcmp256/ccmp256 at the end of the encryption value. Signed-off-by: Joerg

[PATCH] Add support for CCMP-256 and GCMP-256 ciphers

2022-08-18 Thread Joerg Werner
Signed-off-by: Joerg Werner --- include/iwinfo.h | 22 -- iwinfo_cli.c | 6 ++ iwinfo_lua.c | 6 ++ iwinfo_nl80211.c | 14 -- iwinfo_utils.c | 10 -- 5 files changed, 40 insertions(+), 18 deletions(-) diff --git a/include/iwinfo.h b

[PATCH v2] Add support for CCMP-256 and GCMP-256 ciphers

2022-08-19 Thread Joerg Werner
Signed-off-by: Joerg Werner --- include/iwinfo.h | 22 -- iwinfo_cli.c | 6 ++ iwinfo_lib.c | 3 +++ iwinfo_lua.c | 6 ++ iwinfo_nl80211.c | 14 -- iwinfo_utils.c | 10 -- 6 files changed, 43 insertions(+), 18 deletions(-) diff

[PATCH v3] Add support for CCMP-256 and GCMP-256 ciphers

2022-08-19 Thread Joerg Werner
Signed-off-by: Joerg Werner --- Update after review by Hauke Mehrtens Order in IWINFO_CIPHER_NAMES needs to be consistent with bit order for IWINFO_CIPHER_* include/iwinfo.h | 22 -- iwinfo_cli.c | 6 ++ iwinfo_lib.c | 3 +++ iwinfo_lua.c | 6

[PATCH] Correctly identify key management algorithms starting with "FT-"

2022-08-28 Thread Joerg Werner
Correctly categorize FT-EAP-SHA384 as WPA3 Signed-off-by: Joerg Werner --- iwinfo_nl80211.c | 4 iwinfo_utils.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 30da680..5f213e6 100644 --- a/iwinfo_nl80211.c +++ b