From cb6404f27347226bc8c30ac432c808729964232d Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Sun, 30 Dec 2012 14:02:24 +0100 Subject: Drop the Scan parameter It was quite useless. --- docs/netctl.profile.5.txt | 5 ----- src/lib/connections/wireless | 10 +--------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/docs/netctl.profile.5.txt b/docs/netctl.profile.5.txt index 21ea52c..6c3c4a7 100644 --- a/docs/netctl.profile.5.txt +++ b/docs/netctl.profile.5.txt @@ -211,11 +211,6 @@ of the `wireless' type: Whether or not the specified network is a hidden network. Defaults to ``no`'. -'Scan=':: - Whether or not to scan for the presence of a network before - attempting to connect. Hidden networks do not appear in a scan. - Defaults to ``no`'. - 'AdHoc=':: Whether or not to use ad-hoc mode. Defaults to ``no`'. 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 -- cgit v1.2.3-24-g4f1b