]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Hidden SSID using zero octets as payload
authorJouni Malinen <j@w1.fi>
Fri, 31 Jan 2014 20:33:39 +0000 (22:33 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 4 Feb 2014 11:10:57 +0000 (13:10 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/test_ssid.py

index 3384975ea30b3e501af404b7265d0a6ae17f29d3..8dca7f62088126fb87fe786747c0ae8ad53384b4 100644 (file)
@@ -62,6 +62,17 @@ def test_ssid_hidden(dev, apdev):
     if ev is not None:
         raise Exception("Unexpected connection")
 
+def test_ssid_hidden2(dev, apdev):
+    """Hidden SSID using zero octets as payload"""
+    hostapd.add_ap(apdev[0]['ifname'], { "ssid": 'secret2',
+                                         "ignore_broadcast_ssid": "2" })
+    dev[1].connect("secret2", key_mgmt="NONE", scan_freq="2412",
+                   wait_connect=False)
+    dev[0].connect("secret2", key_mgmt="NONE", scan_freq="2412", scan_ssid="1")
+    ev = dev[1].wait_event(["CTRL-EVENT-CONNECTED"], timeout=1)
+    if ev is not None:
+        raise Exception("Unexpected connection")
+
 def test_ssid_hidden_wpa2(dev, apdev):
     """Hidden SSID with WPA2-PSK"""
     params = hostapd.wpa2_params(ssid="secret", passphrase="12345678")