Same output in wicd-cli even if fail or not
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wicd |
New
|
Undecided
|
Unassigned |
Bug Description
This is the only output of wicd-cli even if a connection success or fail
[piccolo@aspire wicd]$ wicd-cli -ySl
# BSSID Channel ESSID
0 00:1B:2F:98:BB:DA 11 NETGEAR
1 00:24:89:37:0D:95 6 Vodafone-11027936
2 00:0C:F6:4A:40:01 11 Sitecom4A4001
3 00:0C:F6:50:89:42 11 Sitecom508942
4 00:0E:8E:7F:79:DA 3 WLAN1603
5 00:18:4D:68:FA:A2 11 ANALISISERVICEW
6 00:0C:F6:39:BD:52 11 Sitecom
7 00:90:D0:EC:24:78 6 SpeedTouch8350DB
[piccolo@aspire wicd]$ wicd-cli -y -c -n 1
Connecting to Vodafone-11027936 with None on wlan0
done!
[piccolo@aspire wicd]$ wicd-cli -y -c -n 0
Connecting to NETGEAR with None on wlan0
done!
[piccolo@aspire wicd]$ wicd-cli -y -c -n 3
Connecting to Sitecom508942 with wep-hex on wlan0
interface down...
resetting ip address...
flushing routing table...
interface up...
generating wpa config...
validating authentication...
running dhcp...
done!
[piccolo@aspire wicd]$ wicd-cli -y -c -n 0
Connecting to NETGEAR with None on wlan0
done!
[piccolo@aspire wicd]$ wicd-cli -y -c -n 2
Connecting to Sitecom4A4001 with None on wlan0
done!
[piccolo@aspire wicd]$ wicd-cli -y -c -n 3
Connecting to Sitecom508942 with wep-hex on wlan0
done!
[piccolo@aspire wicd]$ wicd-cli -y -c -n 3
Connecting to Sitecom508942 with wep-hex on wlan0
done!
wicd 1.7.0-6
Arch Linux
Kernel 2.6.37-ARCH
I encountered this bug also. From what I can tell the problem is that the connection is not synchronous; the connect call spawns a thread to actually connect and until that thread is initialized the CheckIfWiredCon necting or CheckIfWireless Connecting calls return false. My (hack) solution was to insert this line
time.sleep(0.1)
into the script before the check calls are made. The correct solution is for the CheckIfBlahConn ecting calls to return the right value during the interval between the Connect call and when the thread starts running.