wait_connect=False)
dev[0].dump_monitor()
# Clear cfg80211 BSS table.
- subprocess.call(['iw', dev[0].ifname, 'scan', 'trigger',
- 'freq', '2457', 'flush'])
+ try:
+ subprocess.check_call(['iw', dev[0].ifname, 'scan', 'trigger',
+ 'freq', '2457', 'flush'])
+ except subprocess.CalledProcessError, e:
+ raise HwsimSkip("iw scan trigger flush not supported")
ev = dev[0].wait_event(["CTRL-EVENT-SCAN-RESULTS"], 5)
if ev is None:
raise Exception("External flush scan timed out")
dev[0].dump_monitor()
hapd.disable()
# Clear cfg80211 BSS table.
- subprocess.call(['iw', dev[0].ifname, 'scan', 'trigger',
- 'freq', '2457', 'flush'])
+ try:
+ subprocess.check_call(['iw', dev[0].ifname, 'scan', 'trigger',
+ 'freq', '2457', 'flush'])
+ except subprocess.CalledProcessError, e:
+ raise HwsimSkip("iw scan trigger flush not supported")
ev = dev[0].wait_event(["CTRL-EVENT-SCAN-RESULTS"], 5)
if ev is None:
raise Exception("External flush scan timed out")
auth_alg="SHARED", scan_freq="2412", wait_connect=False)
dev[0].dump_monitor()
# Clear cfg80211 BSS table.
- subprocess.call(['iw', dev[0].ifname, 'scan', 'trigger',
- 'freq', '2457', 'flush'])
+ try:
+ subprocess.check_call(['iw', dev[0].ifname, 'scan', 'trigger',
+ 'freq', '2457', 'flush'])
+ except subprocess.CalledProcessError, e:
+ raise HwsimSkip("iw scan trigger flush not supported")
ev = dev[0].wait_event(["CTRL-EVENT-SCAN-RESULTS"], 5)
if ev is None:
raise Exception("External flush scan timed out")