From: Jouni Malinen Date: Tue, 17 Apr 2012 13:32:40 +0000 (+0300) Subject: Fix sched_scan debug print regarding timeout X-Git-Tag: hostap_2_0~723 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d21a223f1544641436b1f8e04eecceada267027;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index 6f16baaff..ab11f7f6a 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -895,13 +895,13 @@ int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s) wps_ie = wpa_supplicant_extra_ies(wpa_s, ¶ms); 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); + } 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, ¶ms,