]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/interworking.c
HS 2.0R2: Try to scan multiple times for OSU providers
[thirdparty/hostap.git] / wpa_supplicant / interworking.c
index fcfa63970e8a9aebdfda8698c8b288a1a0d06261..abf5dee1ff1bd462c2da6d557843b394cc6c620d 100644 (file)
@@ -2474,6 +2474,12 @@ static void interworking_next_anqp_fetch(struct wpa_supplicant *wpa_s)
 
        if (found == 0) {
                if (wpa_s->fetch_osu_info) {
+                       if (wpa_s->num_prov_found == 0 &&
+                           wpa_s->num_osu_scans < 3) {
+                               wpa_printf(MSG_DEBUG, "HS 2.0: No OSU providers seen - try to scan again");
+                               hs20_start_osu_scan(wpa_s);
+                               return;
+                       }
                        wpa_printf(MSG_DEBUG, "Interworking: Next icon");
                        hs20_osu_icon_fetch(wpa_s);
                        return;