]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify Deauthentication frame transmission to STA in PS mode
authorJouni Malinen <jouni@codeaurora.org>
Fri, 1 May 2020 20:06:33 +0000 (23:06 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 3 May 2020 21:37:45 +0000 (00:37 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_ap_open.py

index 44286827309f18e4fd9acffc1a396cf49190d617..62b44461bf2331139fbc29efcc23387c72d2d234 100644 (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")