]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix compiler warning with CONFIG_NO_STDOUT_DEBUG=y
authorJouni Malinen <j@w1.fi>
Sun, 11 Dec 2011 16:13:51 +0000 (18:13 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 11 Dec 2011 16:13:51 +0000 (18:13 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/scan.c

index 8e97283484d4baa8ce7372ce8420b387875ebbaa..4abc9dada5d833d928b2c27acc80fe02a131c778 100644 (file)
@@ -1168,6 +1168,7 @@ static int wpa_scan_result_wps_compar(const void *a, const void *b)
 
 static void dump_scan_res(struct wpa_scan_results *scan_res)
 {
+#ifndef CONFIG_NO_STDOUT_DEBUG
        size_t i;
 
        if (scan_res->res == NULL || scan_res->num == 0)
@@ -1192,6 +1193,7 @@ static void dump_scan_res(struct wpa_scan_results *scan_res)
                                   r->noise, r->level, r->flags);
                }
        }
+#endif /* CONFIG_NO_STDOUT_DEBUG */
 }