hostapd: fix variable shadowing
authorDavid Bauer <mail@david-bauer.net>
Wed, 28 Oct 2020 19:42:17 +0000 (20:42 +0100)
committerDavid Bauer <mail@david-bauer.net>
Tue, 17 Nov 2020 16:04:22 +0000 (17:04 +0100)
Fixes commit 838b412cb527 ("hostapd: add interworking support")

Signed-off-by: David Bauer <mail@david-bauer.net>
package/network/services/hostapd/files/hostapd.sh

index cb7e1d7053f0d6842c2b1356323c2bd8a7addce8..3dbb983170938312b1a6f7515272ffd2e96caa8a 100644 (file)
@@ -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"