Parcourir la source

tests: Verify FAIL-BUSY return on SCAN during gas_comeback_delay

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen il y a 9 ans
Parent
commit
5a145a55a1
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      tests/hwsim/test_gas.py

+ 3 - 1
tests/hwsim/test_gas.py

@@ -257,12 +257,14 @@ def test_gas_fragment(dev, apdev):
         raise Exception("Unexpected ANQP result: " + ev)
 
 def test_gas_comeback_delay(dev, apdev):
-    """GAS fragmentation"""
+    """GAS comeback delay"""
     hapd = start_ap(apdev[0])
     hapd.set("gas_comeback_delay", "500")
 
     dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412", force_scan=True)
     dev[0].request("FETCH_ANQP")
+    if "FAIL-BUSY" not in dev[0].request("SCAN"):
+        raise Exception("SCAN accepted during FETCH_ANQP")
     for i in range(0, 6):
         ev = dev[0].wait_event(["RX-ANQP"], timeout=5)
         if ev is None: