]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/wpa_supplicant.c
Use radio work for scan requests
[thirdparty/hostap.git] / wpa_supplicant / wpa_supplicant.c
index fa819ec7e14e7ab0a5366c498d043624dd382f6a..f04d60d499b5e188f161d33b26336c429423e427 100644 (file)
@@ -2903,6 +2903,13 @@ static struct wpa_radio * radio_add_interface(struct wpa_supplicant *wpa_s,
 
 static void radio_work_free(struct wpa_radio_work *work)
 {
+       if (work->wpa_s->scan_work == work) {
+               /* This should not really happen. */
+               wpa_dbg(work->wpa_s, MSG_INFO, "Freeing radio work '%s'@%p (started=%d) that is marked as scan_work",
+                       work->type, work, work->started);
+               work->wpa_s->scan_work = NULL;
+       }
+
        dl_list_del(&work->list);
        os_free(work);
 }