diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-03-25 14:01:05 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-03-25 14:01:05 +0000 |
commit | 0f5d91cdb3a6548a0cad263d99fada76f784780d (patch) | |
tree | 31730cd3c443a0443b9022e71bf1843022d06434 /package/hostapd/files | |
parent | b8509c155d9d5b7e65a7f109b8e9c0f88372974b (diff) | |
download | upstream-0f5d91cdb3a6548a0cad263d99fada76f784780d.tar.gz upstream-0f5d91cdb3a6548a0cad263d99fada76f784780d.tar.bz2 upstream-0f5d91cdb3a6548a0cad263d99fada76f784780d.zip |
hostapd: add more wps config methods to the config
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26288 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/files')
-rw-r--r-- | package/hostapd/files/hostapd.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index acb92aac17..5b69ecd622 100644 --- a/package/hostapd/files/hostapd.sh +++ b/package/hostapd/files/hostapd.sh @@ -130,11 +130,23 @@ hostapd_set_bss_options() { config_get iapp_interface "$vif" iapp_interface config_get_bool wps_pbc "$vif" wps_pushbutton 0 - [ -n "$wps_possible" -a "$wps_pbc" -gt 0 ] && { + config_get_bool wps_label "$vif" wps_label 0 + + config_get config_methods "$vif" wps_config + [ "$wps_pbc" -gt 0 ] && append config_methods push_button + + [ -n "$wps_possible" -a -n "$config_methods" ] && { + config_get device_type "$vif" wps_device_type "6-0050F204-1" + config_get device_name "$vif" wps_device_name "OpenWrt AP" + config_get manufacturer "$vif" wps_manufacturer "openwrt.org" + append "$var" "eap_server=1" "$N" append "$var" "wps_state=2" "$N" append "$var" "ap_setup_locked=1" "$N" - append "$var" "config_methods=push_button" "$N" + append "$var" "device_type=$device_type" "$N" + append "$var" "device_name=$device_name" "$N" + append "$var" "manufacturer=$manufacturer" "$N" + append "$var" "config_methods=$config_methods" "$N" } append "$var" "ssid=$ssid" "$N" |