mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-04 17:36:12 +02:00
wifi-scripts: add support for passing uuid to hostapd
This is needed to maintain a shared WPS device UUID across radios. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
27568d21d3
commit
55a6831eee
@ -1041,7 +1041,11 @@
|
||||
"uesa": {
|
||||
"description": "Unauthenticated emergency service accessible",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
"default": false
|
||||
},
|
||||
"uuid": {
|
||||
"description": "Device UUID used by WPS",
|
||||
"type": "string"
|
||||
},
|
||||
"utf8_ssid": {
|
||||
"description": "Whether the SSID is to be interpreted using UTF-8 encoding",
|
||||
|
||||
@ -234,7 +234,7 @@ function iface_wps(config) {
|
||||
|
||||
append_vars(config, [
|
||||
'wps_state', 'device_type', 'device_name', 'config_methods', 'wps_independent', 'eap_server',
|
||||
'ap_pin', 'ap_setup_locked', 'upnp_iface'
|
||||
'ap_pin', 'ap_setup_locked', 'upnp_iface', 'uuid'
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -336,7 +336,7 @@ hostapd_common_add_bss_config() {
|
||||
|
||||
config_add_boolean wps_pushbutton wps_label ext_registrar wps_pbc_in_m1
|
||||
config_add_int wps_ap_setup_locked wps_independent
|
||||
config_add_string wps_device_type wps_device_name wps_manufacturer wps_pin
|
||||
config_add_string wps_device_type wps_device_name wps_manufacturer wps_pin uuid
|
||||
config_add_string multi_ap_backhaul_ssid multi_ap_backhaul_key
|
||||
|
||||
config_add_boolean wnm_sleep_mode wnm_sleep_mode_no_keys bss_transition mbo
|
||||
@ -563,7 +563,7 @@ hostapd_set_bss_options() {
|
||||
wpa_disable_eapol_key_retries tdls_prohibit \
|
||||
maxassoc max_inactivity disassoc_low_ack isolate auth_cache \
|
||||
wps_pushbutton wps_label ext_registrar wps_pbc_in_m1 wps_ap_setup_locked \
|
||||
wps_independent wps_device_type wps_device_name wps_manufacturer wps_pin \
|
||||
wps_independent wps_device_type wps_device_name wps_manufacturer wps_pin uuid \
|
||||
macfilter ssid utf8_ssid uapsd hidden short_preamble rsn_preauth \
|
||||
iapp_interface eapol_version dynamic_vlan ieee80211w nasid \
|
||||
acct_secret acct_port acct_interval \
|
||||
@ -854,6 +854,7 @@ hostapd_set_bss_options() {
|
||||
append bss_conf "config_methods=$config_methods" "$N"
|
||||
append bss_conf "wps_independent=$wps_independent" "$N"
|
||||
[ -n "$wps_ap_setup_locked" ] && append bss_conf "ap_setup_locked=$wps_ap_setup_locked" "$N"
|
||||
[ -n "$uuid" ] && append bss_conf "uuid=$uuid" "$N"
|
||||
[ "$wps_pbc_in_m1" -gt 0 ] && append bss_conf "pbc_in_m1=$wps_pbc_in_m1" "$N"
|
||||
[ "$multi_ap" -gt 0 ] && [ -n "$multi_ap_backhaul_ssid" ] && {
|
||||
append bss_conf "multi_ap_backhaul_ssid=\"$multi_ap_backhaul_ssid\"" "$N"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user