projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36d1343
)
Allow roam based on preferred BSSID regardless of signal strength
author
Jouni Malinen
<j@w1.fi>
Sun, 28 Feb 2010 09:09:58 +0000
(11:09 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sun, 28 Feb 2010 09:09:58 +0000
(11:09 +0200)
wpa_supplicant/events.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/events.c
b/wpa_supplicant/events.c
index
6ead501
..
f0efd97
100644
(file)
--- a/
wpa_supplicant/events.c
+++ b/
wpa_supplicant/events.c
@@
-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",
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;
if (current_bss->level < 0) {
if (current_bss->level < -85)