[PATCH] tests: owe: allow hex integers from tshark

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Old versions of tshark would dump these values as hex. Allow parsing as
either decimal or hex.

Signed-off-by: Brian Norris <briannorris@xxxxxxxxxxxx>
---
 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 ee0318204b8e..091e91756391 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):
-- 
2.24.0.rc1.363.gb1bccd3e3d-goog


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux