mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-02-12 08:41:51 +00:00
ubus.c: only add nr entries matching our own SSID
The preferred neighbors list may have BSSIDs with different SSIDs. Add only those that match the interface's SSID. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
parent
181549f7bb
commit
e596ff1317
1 changed files with 1 additions and 1 deletions
|
@ -2236,7 +2236,7 @@ int ap_get_nr(struct blob_buf* b_local, struct dawn_mac own_bssid_addr, const ch
|
||||||
for (struct mac_entry_s* n = preferred_list; n; n = n->next_mac) {
|
for (struct mac_entry_s* n = preferred_list; n; n = n->next_mac) {
|
||||||
dawn_mutex_require(&ap_array_mutex);
|
dawn_mutex_require(&ap_array_mutex);
|
||||||
ap* j = ap_array_get_ap(n->mac);
|
ap* j = ap_array_get_ap(n->mac);
|
||||||
if (j)
|
if (j && !strncmp((char*)j->ssid, ssid, SSID_MAX_LEN))
|
||||||
blobmsg_add_nr(b_local, j);
|
blobmsg_add_nr(b_local, j);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue