station: Also reset the SSID when hiding

Make the SSID all zeros when hiding a network.  This makes sure that the
BSS isn't inadvertently confused for a non-hidden one
This commit is contained in:
Denis Kenzior 2021-02-03 11:14:30 -06:00
parent 9af25d937d
commit ab5fd961c8
1 changed files with 1 additions and 0 deletions

View File

@ -3371,6 +3371,7 @@ int station_hide_network(struct station *station, struct network *network)
l_hashmap_remove(station->networks, path);
while ((bss = network_bss_list_pop(network))) {
memset(bss->ssid, 0, bss->ssid_len);
l_queue_remove_if(station->hidden_bss_list_sorted,
bss_match_bssid, bss->addr);
l_queue_insert(station->hidden_bss_list_sorted, bss,