autoscan: Add more debug prints for cases where autoscan is not used
This makes it easier to figure out why autoscan is not used even when being configured through the control interface. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
98529f3857
commit
9d3f4a74b6
2 changed files with 10 additions and 2 deletions
|
@ -47,11 +47,16 @@ int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan)
|
||||||
struct sched_scan_plan *scan_plans;
|
struct sched_scan_plan *scan_plans;
|
||||||
|
|
||||||
/* Give preference to scheduled scan plans if supported/configured */
|
/* Give preference to scheduled scan plans if supported/configured */
|
||||||
if (wpa_s->sched_scan_plans)
|
if (wpa_s->sched_scan_plans) {
|
||||||
|
wpa_printf(MSG_DEBUG,
|
||||||
|
"autoscan: sched_scan_plans set - use it instead");
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (wpa_s->autoscan && wpa_s->autoscan_priv)
|
if (wpa_s->autoscan && wpa_s->autoscan_priv) {
|
||||||
|
wpa_printf(MSG_DEBUG, "autoscan: Already initialized");
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -6762,6 +6762,9 @@ static int wpa_supplicant_ctrl_iface_autoscan(struct wpa_supplicant *wpa_s,
|
||||||
autoscan_init(wpa_s, 1);
|
autoscan_init(wpa_s, 1);
|
||||||
else if (state == WPA_SCANNING)
|
else if (state == WPA_SCANNING)
|
||||||
wpa_supplicant_reinit_autoscan(wpa_s);
|
wpa_supplicant_reinit_autoscan(wpa_s);
|
||||||
|
else
|
||||||
|
wpa_printf(MSG_DEBUG, "No autoscan update in state %s",
|
||||||
|
wpa_supplicant_state_txt(state));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue