]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: [UTF-8] flag in scan results
authorJouni Malinen <j@w1.fi>
Wed, 2 Jan 2019 15:38:27 +0000 (17:38 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jan 2019 15:58:42 +0000 (17:58 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ssid.py

index 598e2dafb631665dde9d36d9a5e971257d648825..68034e2c978b0d21563b030f6dce44587166c165 100644 (file)
@@ -72,6 +72,11 @@ def test_ssid_utf8(dev, apdev):
     if len(sta3) != 0:
         raise Exception("Unexpected STA iteration result (did not stop)")
 
+    if "[UTF-8]" not in dev[0].get_bss(hapd.own_addr())['flags']:
+        raise Exception("[UTF-8] flag not included in BSS")
+    if "[UTF-8]" not in dev[0].request("SCAN_RESULTS"):
+        raise Exception("[UTF-8] flag not included in SCAN_RESULTS")
+
 def clear_scan_cache(hapd, dev):
     # clear BSS table to avoid issues in following test cases
     dev[0].request("REMOVE_NETWORK all")