Changeset 26288


Ignore:
Timestamp:
2011-03-25T15:01:05+01:00 (7 years ago)
Author:
nbd
Message:

hostapd: add more wps config methods to the config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/hostapd/files/hostapd.sh

    r25543 r26288  
    131131 
    132132        config_get_bool wps_pbc "$vif" wps_pushbutton 0 
    133         [ -n "$wps_possible" -a "$wps_pbc" -gt 0 ] && { 
     133        config_get_bool wps_label "$vif" wps_label 0 
     134 
     135        config_get config_methods "$vif" wps_config 
     136        [ "$wps_pbc" -gt 0 ] && append config_methods push_button 
     137 
     138        [ -n "$wps_possible" -a -n "$config_methods" ] && { 
     139                config_get device_type "$vif" wps_device_type "6-0050F204-1" 
     140                config_get device_name "$vif" wps_device_name "OpenWrt AP" 
     141                config_get manufacturer "$vif" wps_manufacturer "openwrt.org" 
     142 
    134143                append "$var" "eap_server=1" "$N" 
    135144                append "$var" "wps_state=2" "$N" 
    136145                append "$var" "ap_setup_locked=1" "$N" 
    137                 append "$var" "config_methods=push_button" "$N" 
     146                append "$var" "device_type=$device_type" "$N" 
     147                append "$var" "device_name=$device_name" "$N" 
     148                append "$var" "manufacturer=$manufacturer" "$N" 
     149                append "$var" "config_methods=$config_methods" "$N" 
    138150        } 
    139151 
Note: See TracChangeset for help on using the changeset viewer.