diff --git a/sbin/wlan_setup b/sbin/wlan_setup index f1db5fd..dbc3bbb 100755 --- a/sbin/wlan_setup +++ b/sbin/wlan_setup @@ -68,7 +68,7 @@ for AP in `iwlist $DEV scan 2>/dev/null|\ while [ $OPTION ]; do case $OPTION in WPA2|WPA) - wpa_supplicant -i wlan0 -D ${ARG1} -c /etc/sysconfig/wpa_supplicant/${AP} -B + wpa_supplicant -i ${DEV} -D ${ARG1} -c /etc/sysconfig/wpa_supplicant/${AP} -B ;; KEY) echo -n "Configuring Wireless Interface KEY"