summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-12-30 14:02:24 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2012-12-30 14:02:24 +0100
commitcb6404f27347226bc8c30ac432c808729964232d (patch)
tree7263e6d664ecdcf9743a922ff8264d0d162cc1eb /src
parent7ae917a0ea8517ff0ffe03d3884aee64cd7dcfcd (diff)
downloadnetctl-cb6404f27347226bc8c30ac432c808729964232d.tar.gz
netctl-cb6404f27347226bc8c30ac432c808729964232d.tar.xz
Drop the Scan parameter
It was quite useless.
Diffstat (limited to 'src')
-rw-r--r--src/lib/connections/wireless10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/connections/wireless b/src/lib/connections/wireless
index a3b324b..0e7cfe4 100644
--- a/src/lib/connections/wireless
+++ b/src/lib/connections/wireless
@@ -45,15 +45,6 @@ wireless_up() {
return 1
fi
- if is_yes "${Scan:-no}"; then
- if ! wpa_wait_while_state "$TimeoutWPA" "$Interface" "DISCONNECTED" "SCANNING"; then
- report_error "Wireless network '$ESSID' (or access point) not present"
- wpa_stop "$Interface"
- bring_interface_down "$interface"
- return 1
- fi
- fi
-
# Bring interface up after starting wpa_supplicant
# This is important since cards such as iwl3945 do not support
# mode switching when they are already up.
@@ -61,6 +52,7 @@ wireless_up() {
if ! wpa_wait_until_state "$TimeoutWPA" "$Interface" "COMPLETED"; then
report_error "WPA association/authentication failed for interface '$Interface'"
+ report_debug "WPA state for interface '$Interface': $(wpa_get_state "$Interface")"
wpa_stop "$Interface"
bring_interface_down "$Interface"
return 1