aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-10-03 08:34:35 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-03 08:34:35 (GMT)
commit9d3f4a74b6940aaa7920370da8dab3ca401e7101 (patch)
tree6166ab089594f2c0df4e28acd2a7c1586061b907
parent98529f3857d0c135a865d07e2df4bf607d447d65 (diff)
downloadhostap-9d3f4a74b6940aaa7920370da8dab3ca401e7101.zip
hostap-9d3f4a74b6940aaa7920370da8dab3ca401e7101.tar.gz
hostap-9d3f4a74b6940aaa7920370da8dab3ca401e7101.tar.bz2
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>
-rw-r--r--wpa_supplicant/autoscan.c9
-rw-r--r--wpa_supplicant/ctrl_iface.c3
2 files changed, 10 insertions, 2 deletions
diff --git a/wpa_supplicant/autoscan.c b/wpa_supplicant/autoscan.c
index 072a1d5..5056a93 100644
--- a/wpa_supplicant/autoscan.c
+++ b/wpa_supplicant/autoscan.c
@@ -47,11 +47,16 @@ int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan)
struct sched_scan_plan *scan_plans;
/* 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;
+ }
- 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;
+ }
if (name == NULL)
return 0;
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index d814fdf..bfe8efe 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -6762,6 +6762,9 @@ static int wpa_supplicant_ctrl_iface_autoscan(struct wpa_supplicant *wpa_s,
autoscan_init(wpa_s, 1);
else if (state == WPA_SCANNING)
wpa_supplicant_reinit_autoscan(wpa_s);
+ else
+ wpa_printf(MSG_DEBUG, "No autoscan update in state %s",
+ wpa_supplicant_state_txt(state));
return 0;
}