mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
hostapd: fix WPA3 enterprise keys and ciphers
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 <schreibubi@gmail.com>
This commit is contained in:
parent
8b7bdd4f51
commit
4449335e91
@ -48,12 +48,15 @@ hostapd_append_wpa_key_mgmt() {
|
|||||||
;;
|
;;
|
||||||
eap192)
|
eap192)
|
||||||
append wpa_key_mgmt "WPA-EAP-SUITE-B-192"
|
append wpa_key_mgmt "WPA-EAP-SUITE-B-192"
|
||||||
[ "${ieee80211r:-0}" -gt 0 ] && append wpa_key_mgmt "FT-EAP"
|
[ "${ieee80211r:-0}" -gt 0 ] && append wpa_key_mgmt "FT-EAP-SHA384"
|
||||||
;;
|
;;
|
||||||
eap-eap192)
|
eap-eap192)
|
||||||
append wpa_key_mgmt "WPA-EAP-SUITE-B-192"
|
append wpa_key_mgmt "WPA-EAP-SUITE-B-192"
|
||||||
append wpa_key_mgmt "WPA-EAP"
|
append wpa_key_mgmt "WPA-EAP"
|
||||||
[ "${ieee80211r:-0}" -gt 0 ] && append wpa_key_mgmt "FT-EAP"
|
[ "${ieee80211r:-0}" -gt 0 ] && {
|
||||||
|
append wpa_key_mgmt "FT-EAP-SHA384"
|
||||||
|
append wpa_key_mgmt "FT-EAP"
|
||||||
|
}
|
||||||
[ "${ieee80211w:-0}" -gt 0 ] && append wpa_key_mgmt "WPA-EAP-SHA256"
|
[ "${ieee80211w:-0}" -gt 0 ] && append wpa_key_mgmt "WPA-EAP-SHA256"
|
||||||
;;
|
;;
|
||||||
sae)
|
sae)
|
||||||
@ -934,7 +937,11 @@ hostapd_set_bss_options() {
|
|||||||
json_get_vars ieee80211w_mgmt_cipher ieee80211w_max_timeout ieee80211w_retry_timeout
|
json_get_vars ieee80211w_mgmt_cipher ieee80211w_max_timeout ieee80211w_retry_timeout
|
||||||
append bss_conf "ieee80211w=$ieee80211w" "$N"
|
append bss_conf "ieee80211w=$ieee80211w" "$N"
|
||||||
[ "$ieee80211w" -gt "0" ] && {
|
[ "$ieee80211w" -gt "0" ] && {
|
||||||
append bss_conf "group_mgmt_cipher=${ieee80211w_mgmt_cipher:-AES-128-CMAC}" "$N"
|
if [ "$auth_type" = "eap192" ]; then
|
||||||
|
append bss_conf "group_mgmt_cipher=BIP-GMAC-256" "$N"
|
||||||
|
else
|
||||||
|
append bss_conf "group_mgmt_cipher=${ieee80211w_mgmt_cipher:-AES-128-CMAC}" "$N"
|
||||||
|
fi
|
||||||
[ -n "$ieee80211w_max_timeout" ] && \
|
[ -n "$ieee80211w_max_timeout" ] && \
|
||||||
append bss_conf "assoc_sa_query_max_timeout=$ieee80211w_max_timeout" "$N"
|
append bss_conf "assoc_sa_query_max_timeout=$ieee80211w_max_timeout" "$N"
|
||||||
[ -n "$ieee80211w_retry_timeout" ] && \
|
[ -n "$ieee80211w_retry_timeout" ] && \
|
||||||
|
Loading…
Reference in New Issue
Block a user