]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: SSID with 32 octets with nul at the end
authorJouni Malinen <jouni@codeaurora.org>
Wed, 10 Oct 2018 21:10:54 +0000 (00:10 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 11 Oct 2018 09:12:30 +0000 (12:12 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_ssid.py

index 738c7828bfedcd71cdd57e51ac267d8e77a4af94..598e2dafb631665dde9d36d9a5e971257d648825 100644 (file)
@@ -45,6 +45,13 @@ def test_ssid_32_octets(dev, apdev):
     dev[0].connect("1234567890abcdef1234567890ABCDEF", key_mgmt="NONE",
                    scan_freq="2412")
 
+def test_ssid_32_octets_nul_term(dev, apdev):
+    """SSID with 32 octets with nul at the end"""
+    ssid = 'P"1234567890abcdef1234567890ABCDE\\x00"'
+    hostapd.add_ap(apdev[0],
+                   { "ssid2": ssid })
+    dev[0].connect(ssid2=ssid, key_mgmt="NONE", scan_freq="2412")
+
 @remote_compatible
 def test_ssid_utf8(dev, apdev):
     """SSID with UTF8 encoding"""