Make sched_scan debug clearer on timeout use

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2011-11-28 17:52:02 +02:00 committed by Jouni Malinen
parent 6ad9c91100
commit a8cb5a8897

View file

@ -795,9 +795,15 @@ int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s)
if (wpa_s->wps)
wps_ie = wpa_supplicant_extra_ies(wpa_s, &params);
wpa_dbg(wpa_s, MSG_DEBUG,
"Starting sched scan: interval %d timeout %d",
wpa_s->sched_scan_interval, wpa_s->sched_scan_timeout);
if (ssid || !wpa_s->first_sched_scan) {
wpa_dbg(wpa_s, MSG_DEBUG,
"Starting sched scan: interval %d (no timeout)",
wpa_s->sched_scan_interval);
} else {
wpa_dbg(wpa_s, MSG_DEBUG,
"Starting sched scan: interval %d timeout %d",
wpa_s->sched_scan_interval, wpa_s->sched_scan_timeout);
}
ret = wpa_supplicant_start_sched_scan(wpa_s, &params,
wpa_s->sched_scan_interval);