mirror of
https://github.com/gryf/wicd.git
synced 2026-03-26 22:03:32 +01:00
add a 1 second sleep after setting essid but before scanning
This commit is contained in:
@@ -605,6 +605,8 @@ class Wireless(Controller):
|
|||||||
if essid is not None:
|
if essid is not None:
|
||||||
print 'Setting hidden essid' + essid
|
print 'Setting hidden essid' + essid
|
||||||
wiface.SetEssid(essid)
|
wiface.SetEssid(essid)
|
||||||
|
# sleep for a bit; scanning to fast will result in nothing
|
||||||
|
time.sleep(1)
|
||||||
|
|
||||||
aps = wiface.GetNetworks()
|
aps = wiface.GetNetworks()
|
||||||
aps.sort(cmp=comp, reverse=True)
|
aps.sort(cmp=comp, reverse=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user