ubus: filter neighbors by SSID when preparing nr

Only add neighbors with the same SSID to an interface's neighbor report.
While it is possible to offer roaming to a different SSID, it is often
not desired, while at least Apple devices limit the number of entries
they will use to 6.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
Eneas U de Queiroz 2021-07-06 18:09:19 -03:00 committed by Polynomdivision
parent 3db9607b14
commit 555268b91d
2 changed files with 6 additions and 5 deletions

View file

@ -78,7 +78,7 @@ int build_hearing_map_sort_client(struct blob_buf* b);
int build_network_overview(struct blob_buf* b);
int ap_get_nr(struct blob_buf* b, struct dawn_mac own_bssid_addr);
int ap_get_nr(struct blob_buf* b, struct dawn_mac own_bssid_addr, const char *ssid);
int parse_add_mac_to_file(struct blob_attr* msg);