Fix sched_scan debug print regarding timeout
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 17 Apr 2012 13:32:40 +0000 (16:32 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 17 Apr 2012 13:32:40 +0000 (16:32 +0300)
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>

wpa_supplicant/scan.c

index 6f16baa..ab11f7f 100644 (file)
@@ -896,12 +896,12 @@ int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s)
 
        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, &params,