Fix sched_scan debug print regarding timeout

The debug messages were showing the opposite of what the actual
implementation was doing for sched_scan timeout.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2012-04-17 16:32:40 +03:00 committed by Jouni Malinen
parent 54ddd74369
commit 7d21a223f1

View file

@ -895,13 +895,13 @@ int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s)
wps_ie = wpa_supplicant_extra_ies(wpa_s, &params); wps_ie = wpa_supplicant_extra_ies(wpa_s, &params);
if (ssid || !wpa_s->first_sched_scan) { 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, wpa_dbg(wpa_s, MSG_DEBUG,
"Starting sched scan: interval %d timeout %d", "Starting sched scan: interval %d timeout %d",
wpa_s->sched_scan_interval, wpa_s->sched_scan_timeout); wpa_s->sched_scan_interval, wpa_s->sched_scan_timeout);
} else {
wpa_dbg(wpa_s, MSG_DEBUG,
"Starting sched scan: interval %d (no timeout)",
wpa_s->sched_scan_interval);
} }
ret = wpa_supplicant_start_sched_scan(wpa_s, &params, ret = wpa_supplicant_start_sched_scan(wpa_s, &params,