commit 8846191dd3931616007cd803f9aabce93bf4c487 parent 6155a5e0d95af4172526e67fffdd128d5717c73f Author: clamiax <smoppy@gmail.com> Date: Thu, 21 May 2015 13:04:07 +0200 Remove the explicit driver from wpa_supplicant Diffstat:
M | iwpick | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/iwpick b/iwpick @@ -21,7 +21,7 @@ connect() { proto=RSN WPA pairwise=CCMP TKIP }" >> $tmp - wpa_supplicant -D nl80211 -i $iface -c "$tmp" -dd -B 2>&1 > /dev/null + wpa_supplicant -i $iface -c "$tmp" -dd -B 2>&1 > /dev/null rm $tmp fi @@ -72,7 +72,7 @@ main() { key="$(echo $s |cut -sd: -f2)" else # If explicitly specified, check if the ESSID do exists - valid="$(iwlist wlan0 scan |grep ESSID |grep -wc $essid)" + valid="$(iwlist $iface scan |grep ESSID |grep -wc $essid)" [ $valid -eq 0 ] && die "essid '$essid' is not valid" fi