Fix compiler warning with CONFIG_NO_SCAN_PROCESSING=y

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2011-12-11 18:14:09 +02:00
parent 76202aed23
commit 5928411e91

View file

@ -1618,12 +1618,14 @@ static void wpa_supplicant_event_disassoc(struct wpa_supplicant *wpa_s,
sme_disassoc_while_authenticating(wpa_s, prev_pending_bssid);
if (fast_reconnect) {
#ifndef CONFIG_NO_SCAN_PROCESSING
wpa_dbg(wpa_s, MSG_DEBUG, "Try to reconnect to the same BSS");
if (wpa_supplicant_connect(wpa_s, fast_reconnect,
fast_reconnect_ssid) < 0) {
/* Recover through full scan */
wpa_supplicant_req_scan(wpa_s, 0, 100000);
}
#endif /* CONFIG_NO_SCAN_PROCESSING */
}
}