From: Jouni Malinen Date: Wed, 10 Oct 2018 21:10:54 +0000 (+0300) Subject: tests: SSID with 32 octets with nul at the end X-Git-Tag: hostap_2_7~144 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44fa13b17fbdcf75c5c6f64f4edd00217aeda5ea;p=thirdparty%2Fhostap.git tests: SSID with 32 octets with nul at the end Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ssid.py b/tests/hwsim/test_ssid.py index 738c7828b..598e2dafb 100644 --- a/tests/hwsim/test_ssid.py +++ b/tests/hwsim/test_ssid.py @@ -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"""