raise Exception("Unexpected channel in CSA finished event")
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"], timeout=0.5)
if ev is not None:
- # This looks like a mac80211/cfg80211 bug - don't record FAIL until
- # that gets fixed.
- #raise Exception("Unexpected STA disconnection during CSA")
- logger.info("Unexpected STA disconnection during CSA")
- dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=5)
+ raise Exception("Unexpected STA disconnection during CSA")
hwsim_utils.test_connectivity(dev[0], hapd)
hapd.request("CHAN_SWITCH 5 5180 ht sec_channel_offset=1 bandwidth=40")
raise Exception("Unexpected channel in CSA finished event")
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"], timeout=0.5)
if ev is not None:
- # This looks like a mac80211/cfg80211 bug - don't record FAIL until
- # that gets fixed.
- #raise Exception("Unexpected STA disconnection during CSA")
- logger.info("Unexpected STA disconnection during CSA")
- dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=5)
+ raise Exception("Unexpected STA disconnection during CSA")
hwsim_utils.test_connectivity(dev[0], hapd)
finally:
subprocess.call(['sudo', 'iw', 'reg', 'set', '00'])
raise Exception("Unexpected channel in CSA finished event")
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"], timeout=0.5)
if ev is not None:
- # This looks like a mac80211/cfg80211 bug - don't record FAIL until
- # that gets fixed.
- #raise Exception("Unexpected STA disconnection during CSA")
- logger.info("Unexpected STA disconnection during CSA")
- dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=5)
+ raise Exception("Unexpected STA disconnection during CSA")
hwsim_utils.test_connectivity(dev[0], hapd)
hapd.request("CHAN_SWITCH 5 5180 ht sec_channel_offset=1 bandwidth=40")
raise Exception("Unexpected channel in CSA finished event")
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"], timeout=0.5)
if ev is not None:
- # This looks like a mac80211/cfg80211 bug - don't record FAIL until
- # that gets fixed.
- #raise Exception("Unexpected STA disconnection during CSA")
- logger.info("Unexpected STA disconnection during CSA")
- dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=5)
+ raise Exception("Unexpected STA disconnection during CSA")
hwsim_utils.test_connectivity(dev[0], hapd)
finally:
subprocess.call(['sudo', 'iw', 'reg', 'set', '00'])