[openwrt/openwrt] hostapd: fix variable shadowing

LEDE Commits lede-commits at lists.infradead.org
Tue Nov 17 11:08:01 EST 2020


blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/7463a0b5ee65bae85c2a9e1bfcc86b0727b5b0ee

commit 7463a0b5ee65bae85c2a9e1bfcc86b0727b5b0ee
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Wed Oct 28 20:42:17 2020 +0100

    hostapd: fix variable shadowing
    
    Fixes commit 838b412cb527 ("hostapd: add interworking support")
    
    Signed-off-by: David Bauer <mail at david-bauer.net>
---
 package/network/services/hostapd/files/hostapd.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index cb7e1d7053..3dbb983170 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -842,10 +842,12 @@ hostapd_set_bss_options() {
 		json_for_each_item append_iw_anqp_elem iw_anqp_elem
 		json_for_each_item append_iw_nai_realm iw_nai_realm
 
+		iw_domain_name_conf=
 		json_for_each_item append_iw_domain_name iw_domain_name
 		[ -n "$iw_domain_name_conf" ] && \
 			append bss_conf "domain_name=$iw_domain_name_conf" "$N"
 
+		iw_anqp_3gpp_cell_net_conf=
 		json_for_each_item append_iw_anqp_3gpp_cell_net iw_anqp_3gpp_cell_net
 		[ -n "$iw_anqp_3gpp_cell_net_conf" ] && \
 			append bss_conf "anqp_3gpp_cell_net=$iw_anqp_3gpp_cell_net_conf" "$N"



More information about the lede-commits mailing list