1 Don't do broadcast SSID scans, if all configured SSIDs use scan_ssid=1. Improves background scanning in supplicant-managed roaming.
3 Index: wpa_supplicant-0.6.3/wpa_supplicant/scan.c
4 ===================================================================
5 --- wpa_supplicant-0.6.3.orig/wpa_supplicant/scan.c 2008-07-09 18:53:28.000000000 +0200
6 +++ wpa_supplicant-0.6.3/wpa_supplicant/scan.c 2008-07-09 19:00:55.000000000 +0200
8 int enabled, scan_req = 0, ret;
9 const u8 *extra_ie = NULL;
10 size_t extra_ie_len = 0;
11 + int scan_ssid_all = 1;
13 if (wpa_s->disconnected && !wpa_s->scan_req)
18 + /* check if all configured ssids should be scanned directly */
19 + ssid = wpa_s->conf->ssid;
21 + if (!ssid->scan_ssid) {
28 ssid = wpa_s->conf->ssid;
30 if (!ssid->disabled) {
35 + if (scan_ssid_all && !ssid) {
36 + ssid = wpa_s->conf->ssid;
39 wpa_printf(MSG_DEBUG, "Starting AP scan (%s SSID)",
40 ssid ? "specific": "broadcast");