From e371d3771c7b16fcc9f5007b231f2294e3db0272 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Tue, 5 Nov 2019 15:58:10 -0800 Subject: [PATCH] tests: OWE: allow hex integers from tshark Old versions of tshark would dump these values as hex. Allow parsing as either decimal or hex. Signed-off-by: Brian Norris --- tests/hwsim/test_owe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_owe.py b/tests/hwsim/test_owe.py index ee0318204..091e91756 100644 --- a/tests/hwsim/test_owe.py +++ b/tests/hwsim/test_owe.py @@ -414,7 +414,8 @@ def test_owe_limited_group_set_pmf(dev, apdev, params): logger.info("Association Response frame status codes: " + str(status)) if len(status) != 3: raise Exception("Unexpected number of Association Response frames") - if int(status[0]) != 77 or int(status[1]) != 77 or int(status[2]) != 0: + if (int(status[0], base=0) != 77 or int(status[1], base=0) != 77 or + int(status[2], base=0) != 0): raise Exception("Unexpected Association Response frame status code") def test_owe_group_negotiation(dev, apdev):