]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/interworking.c
HS 2.0: Allow CANCEL_FETCH_OSU to stop at scan completion
[thirdparty/hostap.git] / wpa_supplicant / interworking.c
index 8c4ea3468dbd8bf198748b1cd569bf08d0b42a45..116df052888cc55482a866c4ee5af2b892face40 100644 (file)
@@ -2530,6 +2530,7 @@ 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->fetch_osu_waiting_scan &&
                            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);