Skip to content

Commit

Permalink
hack to fix thinkpad
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Feb 22, 2018
1 parent 8203cc8 commit d70f43b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/automated/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def _connect_wifi(dongle_id, pw, insecure_okay=False):
MAX_TRIES = 10
while cnt < MAX_TRIES:
print "WIFI: scanning %d" % cnt
if os.system("ifconfig | grep wlp3s0") == 0:
os.system("sudo iwlist wlp3s0 scanning > /dev/null")
os.system("nmcli device wifi rescan")
wifi_scan = filter(lambda x: ssid in x, subprocess.check_output(["nmcli","dev", "wifi", "list"]).split("\n"))
if len(wifi_scan) != 0:
Expand Down

0 comments on commit d70f43b

Please sign in to comment.