diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py index 2d0556cc4..ca44056d7 100644 --- a/tests/hwsim/test_gas.py +++ b/tests/hwsim/test_gas.py @@ -416,6 +416,28 @@ def test_gas_anqp_get_oom(dev, apdev): if "FAIL" not in dev[0].request("REQ_HS20_ICON " + bssid + " w1fi_logo"): raise Exception("REQ_HS20_ICON command accepted during OOM") +def test_gas_anqp_icon_binary_proto(dev, apdev): + """GAS/ANQP and icon binary protocol testing""" + hapd = start_ap(apdev[0]) + bssid = apdev[0]['bssid'] + + dev[0].scan_for_bss(bssid, freq="2412", force_scan=True) + hapd.set("ext_mgmt_frame_handling", "1") + + tests = [ '010000', '01000000', '00000000', '00030000', '00020000', + '00000100', '0001ff0100ee', '0001ff0200ee' ] + for test in tests: + dev[0].request("HS20_ICON_REQUEST " + bssid + " w1fi_logo") + query = gas_rx(hapd) + gas = parse_gas(query['payload']) + resp = action_response(query) + data = binascii.unhexlify(test) + data = binascii.unhexlify('506f9a110b00') + data + data = struct.pack('