Allow roam based on preferred BSSID regardless of signal strength

This commit is contained in:
Jouni Malinen 2010-02-28 11:09:58 +02:00
parent 36d1343a4b
commit ac26ebd8b5

View file

@ -820,6 +820,14 @@ static int wpa_supplicant_need_to_roam(struct wpa_supplicant *wpa_s,
wpa_printf(MSG_DEBUG, "Selected BSS: " MACSTR " level=%d", wpa_printf(MSG_DEBUG, "Selected BSS: " MACSTR " level=%d",
MAC2STR(selected->bssid), selected->level); MAC2STR(selected->bssid), selected->level);
if (wpa_s->current_ssid->bssid_set &&
os_memcmp(selected->bssid, wpa_s->current_ssid->bssid, ETH_ALEN) ==
0) {
wpa_printf(MSG_DEBUG, "Allow reassociation - selected BSS has "
"preferred BSSID");
return 1;
}
min_diff = 2; min_diff = 2;
if (current_bss->level < 0) { if (current_bss->level < 0) {
if (current_bss->level < -85) if (current_bss->level < -85)