[source] hostapd: fix iapp_interface option

LEDE Commits lede-commits at lists.infradead.org
Sun Sep 10 00:09:32 PDT 2017


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/bd24d53ea2ac1c174838cbf21f511db8718175b7

commit bd24d53ea2ac1c174838cbf21f511db8718175b7
Author: Lorenzo Santina <lorenzo.santina.dev at gmail.com>
AuthorDate: Sat Sep 9 16:40:57 2017 +0200

    hostapd: fix iapp_interface option
    
    ifname variable were not assigned due to syntax error
    causing the hostapd config file to have an empty iapp_interface= option
    
    Signed-off-by: Lorenzo Santina <lorenzo.santina.dev at gmail.com>
---
 package/network/services/hostapd/files/hostapd.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index 0030516..e1ec799 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -372,7 +372,7 @@ hostapd_set_bss_options() {
 	[ -n "$network_bridge" ] && append bss_conf "bridge=$network_bridge" "$N"
 	[ -n "$iapp_interface" ] && {
 		local ifname
-		network_get_device ifname "$iapp_interface" || ifname = "$iapp_interface"
+		network_get_device ifname "$iapp_interface" || ifname="$iapp_interface"
 		append bss_conf "iapp_interface=$ifname" "$N"
 	}
 



More information about the lede-commits mailing list