diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 782bd0ab2..1dff4d011 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -3063,7 +3063,9 @@ def test_ap_hs20_req_hs20_icon(dev, apdev): hostapd.add_ap(apdev[0], params) dev[0].scan_for_bss(bssid, freq="2412") + run_req_hs20_icon(dev, bssid) +def run_req_hs20_icon(dev, bssid): # First, fetch two icons from the AP to wpa_supplicant if "OK" not in dev[0].request("REQ_HS20_ICON " + bssid + " w1fi_logo"): @@ -3100,6 +3102,56 @@ def test_ap_hs20_req_hs20_icon(dev, apdev): if "OK" not in dev[0].request("DEL_HS20_ICON " + bssid + " test_logo"): raise Exception("DEL_HS20_ICON failed") +def test_ap_hs20_req_operator_icon(dev, apdev): + """Hotspot 2.0 operator icons""" + bssid = apdev[0]['bssid'] + params = hs20_ap_params() + params['hs20_icon'] = [ "128:80:zxx:image/png:w1fi_logo:w1fi_logo.png", + "500:300:fi:image/png:test_logo:auth_serv/sha512-server.pem" ] + params['operator_icon'] = [ "w1fi_logo", "unknown_logo", "test_logo" ] + hostapd.add_ap(apdev[0], params) + + value = struct.pack('