Try to use fast-associate on ENABLE_NETWORK

This makes ENABLE_NETWORK behave similarily to SELECT_NETWORK by
allowing a scan to be skipped if recent scan results are available.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2013-05-21 19:37:55 +03:00 committed by Jouni Malinen
parent b06800170a
commit dad153d16b

View File

@ -1803,7 +1803,8 @@ void wpa_supplicant_enable_network(struct wpa_supplicant *wpa_s,
wpa_supplicant_cancel_sched_scan(wpa_s);
}
wpa_supplicant_req_scan(wpa_s, 0, 0);
if (wpa_supplicant_fast_associate(wpa_s) != 1)
wpa_supplicant_req_scan(wpa_s, 0, 0);
}
}