summaryrefslogtreecommitdiffstats
path: root/src/8021x
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-06-18 09:52:44 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-06-18 09:52:44 +0200
commit6140564a3463e949ba1f00b03a45ba94802353f6 (patch)
tree94d26b3fab0affdc7cce04aa18acc8a459b62c72 /src/8021x
parentd2656b7dab538dcb7b5e49c6ac4aa5833a883a8c (diff)
downloadnetctl-6140564a3463e949ba1f00b03a45ba94802353f6.tar.gz
netctl-6140564a3463e949ba1f00b03a45ba94802353f6.tar.xz
Increase base wifi scan wait
Sometimes no results responses have been collected within 2 seconds.
Diffstat (limited to 'src/8021x')
-rw-r--r--src/8021x6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/8021x b/src/8021x
index 3aadec9..1dd0408 100644
--- a/src/8021x
+++ b/src/8021x
@@ -143,10 +143,10 @@ wpa_supplicant_scan_info() {
fi
wpa_cli -p "$WPA_CTRL_PATH" -i "$INTERFACE" scan &> /dev/null
- # Wait at least 2 seconds for scan results
- sleep 2
+ # Wait at least 3 seconds for scan results
+ sleep 3
# Sometimes, that is not enough (FS#29946)
- for (( scan_wait = 2; scan_wait < 10; scan_wait++ )); do
+ for (( scan_wait = 3; scan_wait < 10; scan_wait++ )); do
wpa_cli -p "$WPA_CTRL_PATH" -i "$INTERFACE" status | grep -q "wpa_state=SCANNING" || break
sleep 1
done