aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-03-26 17:16:39 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-26 20:53:58 (GMT)
commit4d2c28746693ca6ed74e9c53bb626e5991039156 (patch)
treeb0ae099c34cae7f6d56dd5edaa0b701890b63b62
parent542c68a688c945512b6668f346084e3660000a9a (diff)
downloadhostap-4d2c28746693ca6ed74e9c53bb626e5991039156.zip
hostap-4d2c28746693ca6ed74e9c53bb626e5991039156.tar.gz
hostap-4d2c28746693ca6ed74e9c53bb626e5991039156.tar.bz2
tests: Information element parsing - extra coverage
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_ap_params.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_params.py b/tests/hwsim/test_ap_params.py
index 50d968e..87fc1dc 100644
--- a/tests/hwsim/test_ap_params.py
+++ b/tests/hwsim/test_ap_params.py
@@ -67,6 +67,18 @@ def test_ap_vendor_elements(dev, apdev):
if "dd051122330203" not in bss['ie']:
raise Exception("New vendor element not shown in scan results")
+def test_ap_element_parse(dev, apdev):
+ """Information element parsing - extra coverage"""
+ bssid = apdev[0]['bssid']
+ ssid = "test-wpa2-psk"
+ params = { 'ssid': ssid,
+ 'vendor_elements': "380501020304059e009e009e009e009e009e00" }
+ hapd = hostapd.add_ap(apdev[0]['ifname'], params)
+ dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412")
+ bss = dev[0].get_bss(bssid)
+ if "38050102030405" not in bss['ie']:
+ raise Exception("Timeout element not shown in scan results")
+
def test_ap_country(dev, apdev):
"""WPA2-PSK AP setting country code and using 5 GHz band"""
try: