tests: Fix he_supported() check with python3

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>
This commit is contained in:
Jouni Malinen 2019-12-28 19:52:17 +02:00
parent d0cd750435
commit 44adf014ff

View 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