Changeset 40934 for trunk


Ignore:
Timestamp:
2014-06-02T14:44:40+02:00 (2 years ago)
Author:
blogic
Message:

hostapd: Add optional support for hostapd own_ip_addr in wireless config

own_ip_addr is used by hostapd as NAS-IP-Address.
This is used to identify the AP that is requesting the authentication of the
user and could be used to define which AP's can authenticate users.
Some vendors implement only NAS-Identifier or NAS-IP-Address and not both.
This patch adds ownip as an optional parameter in /etc/config/wireless.

Signed-off-by: Thomas Wouters <thomaswouters@…>

Location:
trunk/package/network/services/hostapd/files
Files:
2 edited

Legend:

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

    r38339 r40934  
    131131                        } 
    132132                        config_get nasid "$vif" nasid 
     133                        config_get ownip "$vif" ownip 
    133134                        append "$var" "nas_identifier=$nasid" "$N" 
     135                        append "$var" "own_ip_addr=$ownip" "$N" 
    134136                        append "$var" "eapol_key_index_workaround=1" "$N" 
    135137                        append "$var" "ieee8021x=1" "$N" 
  • trunk/package/network/services/hostapd/files/netifd.sh

    r40690 r40934  
    120120 
    121121        config_add_string nasid 
     122        config_add_string ownip 
    122123        config_add_string iapp_interface 
    123124        config_add_string eap_type ca_cert client_cert identity auth priv_key priv_key_pwd 
     
    209210                                dae_client dae_secret dae_port \ 
    210211                                nasid rsn_preauth iapp_interface \ 
    211                                 eap_reauth_period 
     212                                ownip eap_reauth_period 
    212213 
    213214                        # legacy compatibility 
     
    239240 
    240241                        append bss_conf "nas_identifier=$nasid" "$N" 
     242                        [ -n "$ownip" ] && append bss_conf "own_ip_addr=$ownip" "$N" 
    241243                        append bss_conf "eapol_key_index_workaround=1" "$N" 
    242244                        append bss_conf "ieee8021x=1" "$N" 
Note: See TracChangeset for help on using the changeset viewer.