]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix he_supported() check with python3
authorJouni Malinen <j@w1.fi>
Sat, 28 Dec 2019 17:52:17 +0000 (19:52 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Dec 2019 17:52:47 +0000 (19:52 +0200)
This was making error paths on HE test cases fail with:
TypeError: a bytes-like object is required, not 'str'

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_he.py

index f042d7162a417471a824073035048187e6c01008..d86e2423af1a40ebcdba5d5b1f581391a1227f02 100644 (file)
@@ -79,7 +79,7 @@ def test_he_params(dev, apdev):
 
 def he_supported():
     cmd = subprocess.Popen(["iw", "reg", "get"], stdout=subprocess.PIPE)
-    reg = cmd.stdout.read()
+    reg = cmd.stdout.read().decode()
     if "@ 80)" in reg or "@ 160)" in reg:
         return True
     return False