summaryrefslogtreecommitdiff
path: root/package/network/services/hostapd/files/hostapd.sh
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-02 12:44:40 +0000
committerJohn Crispin <john@openwrt.org>2014-06-02 12:44:40 +0000
commit3bc4516ebb6d23c06b4d7079341ae953ab6aae12 (patch)
tree581b1a4733aef94f3610dd89f80ea973f934fd0b /package/network/services/hostapd/files/hostapd.sh
parent9b595fcd4bd5a9980cdf827f397ee59c6b3819ca (diff)
downloadmtk-20170518-3bc4516ebb6d23c06b4d7079341ae953ab6aae12.zip
mtk-20170518-3bc4516ebb6d23c06b4d7079341ae953ab6aae12.tar.gz
mtk-20170518-3bc4516ebb6d23c06b4d7079341ae953ab6aae12.tar.bz2
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@gmail.com> SVN-Revision: 40934
Diffstat (limited to 'package/network/services/hostapd/files/hostapd.sh')
-rw-r--r--package/network/services/hostapd/files/hostapd.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index b55b63d..2a16bb4 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -130,7 +130,9 @@ hostapd_set_bss_options() {
append "$var" "radius_das_client=$dae_client $dae_secret" "$N"
}
config_get nasid "$vif" nasid
+ config_get ownip "$vif" ownip
append "$var" "nas_identifier=$nasid" "$N"
+ append "$var" "own_ip_addr=$ownip" "$N"
append "$var" "eapol_key_index_workaround=1" "$N"
append "$var" "ieee8021x=1" "$N"
append "$var" "wpa_key_mgmt=WPA-EAP" "$N"