mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
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:
parent
d0cd750435
commit
44adf014ff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user