diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-26 23:34:10 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-26 23:34:10 +0000 |
commit | 4482d10a04cfe0a3fdb4e6d47c50301ebd30e1c4 (patch) | |
tree | 77eeca5460234dd3e4b43eded7e1fd677a55cbb0 /package/network/services/hostapd/files/netifd.sh | |
parent | eedf17dc9e9f89dc5d2f23cf858b2787275b6c67 (diff) | |
download | mtk-20170518-4482d10a04cfe0a3fdb4e6d47c50301ebd30e1c4.zip mtk-20170518-4482d10a04cfe0a3fdb4e6d47c50301ebd30e1c4.tar.gz mtk-20170518-4482d10a04cfe0a3fdb4e6d47c50301ebd30e1c4.tar.bz2 |
hostapd: append nasid to config for all WPA types
The 802.11r implementation in hostapd uses nas_identifier as PMK-R0 Key
Holder identifier. As 802.11r can also be used with WPA Personal, nasid
should be appended to the hostapd config for all WPA types.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
SVN-Revision: 45049
Diffstat (limited to 'package/network/services/hostapd/files/netifd.sh')
-rw-r--r-- | package/network/services/hostapd/files/netifd.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh index 3a64689..26a255f 100644 --- a/package/network/services/hostapd/files/netifd.sh +++ b/package/network/services/hostapd/files/netifd.sh @@ -239,7 +239,7 @@ hostapd_set_bss_options() { auth_server auth_secret auth_port \ acct_server acct_secret acct_port \ dae_client dae_secret dae_port \ - nasid ownip \ + ownip \ eap_reauth_period dynamic_vlan \ vlan_naming vlan_tagged_interface \ vlan_bridge @@ -273,7 +273,6 @@ hostapd_set_bss_options() { append bss_conf "radius_das_client=$dae_client $dae_secret" "$N" } - append bss_conf "nas_identifier=$nasid" "$N" [ -n "$ownip" ] && append bss_conf "own_ip_addr=$ownip" "$N" append bss_conf "eapol_key_index_workaround=1" "$N" append bss_conf "ieee8021x=1" "$N" @@ -339,6 +338,11 @@ hostapd_set_bss_options() { [ -n "$iapp_interface" ] && append bss_conf "iapp_interface=$iapp_interface" "$N" } + if [ "$wpa" -ge "1" ]; then + json_get_vars nasid + [ -n "$nasid" ] && append bss_conf "nas_identifier=$nasid" "$N" + fi + if [ "$wpa" -ge "2" ]; then if [ -n "$network_bridge" -a "$rsn_preauth" = 1 ]; then set_default auth_cache 1 |