]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix python3 processing of Popen output reading
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 22 Feb 2023 19:21:54 +0000 (21:21 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 22 Feb 2023 19:34:53 +0000 (21:34 +0200)
Need to decode cmd.stdout.read() output before using it as a string.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/utils.py

index 5fd0457a4476564493785ff93f9200a17a9fe33d..769f824c7be6ed534fefe412a7916ef9d74b8275 100644 (file)
@@ -146,7 +146,7 @@ def check_tls_tod(dev):
 
 def vht_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