tests: Verify Deauthentication frame transmission to STA in PS mode

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-05-01 23:06:33 +03:00 committed by Jouni Malinen
parent ccca850898
commit bb8e191cca

View File

@ -528,6 +528,11 @@ def run_ap_open_sta_ps(dev, hapd):
if not ok:
raise Exception("STA did not enter power save")
dev[0].dump_monitor()
hapd.dump_monitor()
hapd.request("DEAUTHENTICATE " + dev[0].own_addr())
dev[0].wait_disconnected()
except FileNotFoundError:
raise HwsimSkip("Kernel does not support inspecting HW PS state")