wpa_supplicant.sh: always use parameters from the current section
authorFelix Fietkau <nbd@openwrt.org>
Sun, 16 Dec 2012 13:33:58 +0000 (13:33 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 16 Dec 2012 13:33:58 +0000 (13:33 +0000)
commit2e78f994777f6a359e4dd34d38f35cdf5c0005ce
tree57e8ff8e0d4135ad475abb13c8431f552e4e6d42
parent7fb64fb649f26b5cc7621079d79c1c363c6caef2
wpa_supplicant.sh: always use parameters from the current section

Using variables from the outer scope unnecessarily complicates the code and
leads to issues.

This patch fixes the bug when having an "adhoc" wifi-iface section before a
"sta" section prevents wpa_supplicant from using the key specified in the
corresponding section as it tries to use the "adhoc" key instead (1 by
default).

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Backport of r34716

SVN-Revision: 34717
package/hostapd/files/wpa_supplicant.sh