]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Minor clean up for GAS test cases
authorJouni Malinen <j@w1.fi>
Sun, 5 Jan 2014 06:19:08 +0000 (08:19 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jan 2014 08:45:10 +0000 (10:45 +0200)
Do not run a full scan in gas_generic since this is not really needed.
Dump pending event messages after long wait to make logs clearer.

Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/test_gas.py

index db30c815d5dc51017f75db16a12a51dcc64ee8e7..5f901c38437fadd00e64a22080f72f7ffe299fef 100644 (file)
@@ -88,7 +88,7 @@ def test_gas_generic(dev, apdev):
     params['hessid'] = bssid
     hostapd.add_ap(apdev[0]['ifname'], params)
 
-    dev[0].scan()
+    dev[0].scan(freq="2412")
     req = dev[0].request("GAS_REQUEST " + bssid + " 00 000102000101")
     if "FAIL" in req:
         raise Exception("GAS query request rejected")
@@ -176,6 +176,7 @@ def test_gas_concurrent_connect(dev, apdev):
 
     logger.debug("Wait six seconds for expiration of connect-without-scan")
     time.sleep(6)
+    dev[0].dump_monitor()
 
     logger.debug("Start concurrent GAS request and connect")
     req = dev[0].request("GAS_REQUEST " + bssid + " 00 000102000101")