wpa_supplicant.sh: always use parameters from the current section
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 16 Dec 2012 13:23:37 +0000 (13:23 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 16 Dec 2012 13:23:37 +0000 (13:23 +0000)
commit2b38b9a3e63e5a8be3aad3edca2918880ecf327f
treedc35dfe0201cc8309da8af9d35cf0f5dd6c1631e
parent63ec409d275bee94a23347a0787b346349aeda9c
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34716 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/services/hostapd/files/wpa_supplicant.sh