hostapd: fix appending the iapp_interface variable to the config
authorFelix Fietkau <nbd@openwrt.org>
Sun, 19 Dec 2010 11:56:49 +0000 (11:56 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 19 Dec 2010 11:56:49 +0000 (11:56 +0000)
Signed-off-by: Alexander Couzens <lynxis@c-base.org>
SVN-Revision: 24724

package/hostapd/files/hostapd.sh

index 39f98f2c43a52acd3d5d4bf567609ad973496383..7d110dbf6d1093ab796d2419a5ccfae1316f6044 100644 (file)
@@ -137,7 +137,7 @@ hostapd_set_bss_options() {
        append "$var" "ssid=$ssid" "$N"
        [ -n "$bridge" ] && append "$var" "bridge=$bridge" "$N"
        [ -n "$ieee80211d" ] && append "$var" "ieee80211d=$ieee80211d" "$N"
-       [ -n "$iapp_interface" ] && append "$var" $(uci_get_state network "$iapp_interface" ifname "$iapp_interface") "$N"
+       [ -n "$iapp_interface" ] && append "$var" iapp_interface=$(uci_get_state network "$iapp_interface" ifname "$iapp_interface") "$N"
 
        if [ "$wpa" -ge "2" ]
        then