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)
commit5fda5a54126bb9fd224542d3aa25d616a5f8edd8
tree395a8ab85d86c56b961b9a7abac7ee1ced7f4184
parent405f8f443c8b34ae01a3441471043492ab76f174
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