diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2016-04-08 16:38:52 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2016-04-08 21:30:49 (GMT) |
commit | cb285151a9961f16e0d11d0ac54d8c0a7a3830b9 (patch) | |
tree | b90547cdd88c9da9315f7adbfe5e902cd8153e66 /tests | |
parent | 1854eeca19e0e83a4d8d1cf055be39e8b8d80655 (diff) | |
download | hostap-cb285151a9961f16e0d11d0ac54d8c0a7a3830b9.zip hostap-cb285151a9961f16e0d11d0ac54d8c0a7a3830b9.tar.gz hostap-cb285151a9961f16e0d11d0ac54d8c0a7a3830b9.tar.bz2 |
tests: AP with open mode and STA poll
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hwsim/test_ap_open.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_open.py b/tests/hwsim/test_ap_open.py index d23ba2a..59e4289 100644 --- a/tests/hwsim/test_ap_open.py +++ b/tests/hwsim/test_ap_open.py @@ -537,3 +537,17 @@ def test_ap_open_sta_statistics(dev, apdev): # Cannot require specific inactive_msec changes without getting rid of all # unrelated traffic, so for now, just print out the results in the log for # manual checks. + +def test_ap_open_poll_sta(dev, apdev): + """AP with open mode and STA poll""" + hapd = hostapd.add_ap(apdev[0], { "ssid": "open" }) + dev[0].connect("open", key_mgmt="NONE", scan_freq="2412") + addr = dev[0].own_addr() + + if "OK" not in hapd.request("POLL_STA " + addr): + raise Exception("POLL_STA failed") + ev = hapd.wait_event(["AP-STA-POLL-OK"], timeout=5) + if ev is None: + raise Exception("Poll response not seen") + if addr not in ev: + raise Exception("Unexpected poll response: " + ev) |