aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-01-05 06:19:08 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-07 08:45:10 (GMT)
commitadf277a007473f4b4bda7dc1c6eab619b7768ccb (patch)
treec17cdacd4a0df24b3675b71616b48e8e8474fed6
parentd45e417f7b935c1c9d007f1b31e953ed3999075f (diff)
downloadhostap-adf277a007473f4b4bda7dc1c6eab619b7768ccb.zip
hostap-adf277a007473f4b4bda7dc1c6eab619b7768ccb.tar.gz
hostap-adf277a007473f4b4bda7dc1c6eab619b7768ccb.tar.bz2
tests: Minor clean up for GAS test cases
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>
-rw-r--r--tests/hwsim/test_gas.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py
index db30c81..5f901c3 100644
--- a/tests/hwsim/test_gas.py
+++ b/tests/hwsim/test_gas.py
@@ -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")