From f0979c4ac96fc95a381c979fbc7fd60562fcd5da Mon Sep 17 00:00:00 2001
From: Jouni Malinen <quic_jouni@quicinc.com>
Date: Wed, 22 Feb 2023 21:21:54 +0200
Subject: [PATCH] tests: Fix python3 processing of Popen output reading

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hwsim/utils.py b/tests/hwsim/utils.py
index 5fd0457a4..769f824c7 100644
--- a/tests/hwsim/utils.py
+++ b/tests/hwsim/utils.py
@@ -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