[PATCH 39/50] tests: Modify pmksa_cache test sets for python3

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

 



Signed-off-by: Masashi Honma <masashi.honma@xxxxxxxxx>
---
 tests/hwsim/test_pmksa_cache.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/hwsim/test_pmksa_cache.py b/tests/hwsim/test_pmksa_cache.py
index 9353ae1dd..5e46c1176 100644
--- a/tests/hwsim/test_pmksa_cache.py
+++ b/tests/hwsim/test_pmksa_cache.py
@@ -1038,8 +1038,8 @@ def test_rsn_preauth_processing(dev, apdev):
                          socket.htons(0x88c7))
     sock.bind(("lo", socket.htons(0x88c7)))
 
-    foreign = "\x02\x03\x04\x05\x06\x07"
-    proto = "\x88\xc7"
+    foreign = b"\x02\x03\x04\x05\x06\x07"
+    proto = b"\x88\xc7"
     tests = []
     # RSN: too short pre-auth packet (len=14)
     tests += [ _bssid + foreign + proto ]
@@ -1077,9 +1077,9 @@ def test_rsn_preauth_local_errors(dev, apdev):
                          socket.htons(0x88c7))
     sock.bind(("lo", socket.htons(0x88c7)))
 
-    foreign = "\x02\x03\x04\x05\x06\x07"
-    foreign2 = "\x02\x03\x04\x05\x06\x08"
-    proto = "\x88\xc7"
+    foreign = b"\x02\x03\x04\x05\x06\x07"
+    foreign2 = b"\x02\x03\x04\x05\x06\x08"
+    proto = b"\x88\xc7"
 
     with alloc_fail(hapd, 1, "ap_sta_add;rsn_preauth_receive"):
         sock.send(_bssid + foreign + proto + struct.pack('>BBH', 2, 1, 0))
-- 
2.17.1


_______________________________________________
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