wpas.global_request("SET p2p_no_group_iface 1")
autogo(wpas, freq=2417)
connect_cli(wpas, dev[1])
- res = wpas.group_request("CHAN_SWITCH 5 2422")
+ res = wpas.group_request("CHAN_SWITCH 5 2422 ht")
if "FAIL" in res:
# for now, skip test since mac80211_hwsim support is not yet widely
# deployed
if ev is None:
raise Exception("CSA finished event timed out")
if "freq=2422" not in ev:
- raise Exception("Unexpected cahnnel in CSA finished event")
+ raise Exception("Unexpected channel in CSA finished event")
+ ev = dev[1].wait_event(["CTRL-EVENT-CHANNEL-SWITCH"], timeout=2)
+ if ev is None:
+ raise Exception("Channel switch not reported on P2P Client")
+ if "freq=2422" not in ev:
+ raise Exception("Unexpected channel in CS event")
wpas.dump_monitor()
dev[1].dump_monitor()
time.sleep(0.1)