aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/autoscan.c
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 /wpa_supplicant/autoscan.c
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>
Diffstat (limited to 'wpa_supplicant/autoscan.c')
-rw-r--r--wpa_supplicant/autoscan.c9
1 files changed, 7 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;