Browse Source

tests: WPS and DISABLE/ENABLE AP

This is a regression test case for the issue fixed by the previous
commit (hapd->num_probereq_cb not getting cleared on deinit).

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen 9 years ago
parent
commit
53bd8653c2
1 changed files with 7 additions and 0 deletions
  1. 7 0
      tests/hwsim/test_ap_wps.py

+ 7 - 0
tests/hwsim/test_ap_wps.py

@@ -9057,3 +9057,10 @@ def test_wps_ext_m1_workaround(dev, apdev):
 
     logger.debug("Receive M2 from AP")
     msg, m2_attrs, raw_m2_attrs = recv_wsc_msg(hapd, WSC_MSG, WPS_M2)
+
+def test_ap_wps_disable_enable(dev, apdev):
+    """WPS and DISABLE/ENABLE AP"""
+    hapd = wps_start_ap(apdev[0])
+    hapd.disable()
+    hapd.enable()
+    dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412")