Signed-off-by: Masashi Honma <masashi.honma@xxxxxxxxx> --- tests/hwsim/test_ocv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/hwsim/test_ocv.py b/tests/hwsim/test_ocv.py index 49fb8f0b5..08e681331 100644 --- a/tests/hwsim/test_ocv.py +++ b/tests/hwsim/test_ocv.py @@ -22,7 +22,7 @@ from test_ap_psk import parse_eapol, build_eapol, pmk_to_ptk, eapol_key_mic, rec def make_ocikde(op_class, channel, seg1_idx): WLAN_EID_VENDOR_SPECIFIC = 221 - RSN_KEY_DATA_OCI = "\x00\x0f\xac\x0d" + RSN_KEY_DATA_OCI = b"\x00\x0f\xac\x0d" data = RSN_KEY_DATA_OCI + struct.pack("<BBB", op_class, channel, seg1_idx) ocikde = struct.pack("<BB", WLAN_EID_VENDOR_SPECIFIC, len(data)) + data @@ -403,7 +403,7 @@ class APConnection: def test_bad_oci(self, logmsg, op_class, channel, seg1_idx): logger.debug("Bad OCI element: " + logmsg) if op_class is None: - ocikde = "" + ocikde = bytes() else: ocikde = make_ocikde(op_class, channel, seg1_idx) @@ -768,7 +768,7 @@ class STAConnection: def test_bad_oci(self, logmsg, op_class, channel, seg1_idx, errmsg): logger.info("Bad OCI element: " + logmsg) if op_class is None: - ocikde = "" + ocikde = bytes() else: ocikde = make_ocikde(op_class, channel, seg1_idx) -- 2.17.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap