Skip to content

Commit 8e457b6

Browse files
rany2robimarko
authored andcommitted
wifi-scripts: add sae_track_password option
This is useful if multiple passwords were specified without the use of a SAE password identifier. This is the only way to get multiple passwords for a single peer to work without resorting to password identifiers. Unfortunately, support for password identifiers is non-existent on Android and macOS; and possibly others. So this is the only option in that case. As an alternative, one could also continue to use WPA2-PSK instead as that could easily resort to a bruteforce approach without any complications. Signed-off-by: Rany Hany <[email protected]> Link: openwrt/openwrt#20597 Signed-off-by: Robert Marko <[email protected]>
1 parent bcdb29f commit 8e457b6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-iface.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,10 @@
961961
"description": "Require MFP for all associations using SAE",
962962
"type": "boolean"
963963
},
964+
"sae_track_password": {
965+
"description": "Tracking of SAE password use",
966+
"type": "number"
967+
},
964968
"server:host": {
965969
"type": "string"
966970
},

package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function iface_auth_type(config) {
170170
}
171171

172172
append_vars(config, [
173-
'sae_require_mfp', 'sae_pwe', 'time_advertisement', 'time_zone',
173+
'sae_require_mfp', 'sae_pwe', 'sae_track_password', 'time_advertisement', 'time_zone',
174174
'wpa_group_rekey', 'wpa_ptk_rekey', 'wpa_gmk_rekey', 'wpa_strict_rekey',
175175
'macaddr_acl', 'wpa_psk_radius', 'wpa_psk', 'wpa_passphrase', 'wpa_psk_file',
176176
'eapol_version', 'dynamic_vlan', 'radius_request_cui', 'eap_reauth_period',

package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ hostapd_common_add_bss_config() {
360360
config_add_array supported_rates
361361

362362
config_add_boolean sae_require_mfp
363-
config_add_int sae_pwe
363+
config_add_int sae_pwe sae_track_password
364364

365365
config_add_string 'owe_transition_bssid:macaddr' 'owe_transition_ssid:string'
366366
config_add_string owe_transition_ifname
@@ -549,7 +549,7 @@ hostapd_set_bss_options() {
549549
macfilter ssid utf8_ssid uapsd hidden short_preamble rsn_preauth \
550550
iapp_interface eapol_version dynamic_vlan ieee80211w nasid \
551551
acct_secret acct_port acct_interval \
552-
bss_load_update_period chan_util_avg_period sae_require_mfp sae_pwe \
552+
bss_load_update_period chan_util_avg_period sae_require_mfp sae_pwe sae_track_password \
553553
multi_ap multi_ap_backhaul_ssid multi_ap_backhaul_key skip_inactivity_poll \
554554
ppsk airtime_bss_weight airtime_bss_limit airtime_sta_weight \
555555
multicast_to_unicast_all proxy_arp per_sta_vif na_mcast_to_ucast \
@@ -645,6 +645,7 @@ hostapd_set_bss_options() {
645645
esac
646646
[ -n "$sae_require_mfp" ] && append bss_conf "sae_require_mfp=$sae_require_mfp" "$N"
647647
[ -n "$sae_pwe" ] && append bss_conf "sae_pwe=$sae_pwe" "$N"
648+
[ -n "$sae_track_password" ] && append bss_conf "sae_track_password=$sae_track_password" "$N"
648649

649650
local vlan_possible=""
650651

0 commit comments

Comments
 (0)