mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-09 00:12:36 +01:00
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:
parent
9af25d937d
commit
ab5fd961c8
@ -3371,6 +3371,7 @@ int station_hide_network(struct station *station, struct network *network)
|
|||||||
l_hashmap_remove(station->networks, path);
|
l_hashmap_remove(station->networks, path);
|
||||||
|
|
||||||
while ((bss = network_bss_list_pop(network))) {
|
while ((bss = network_bss_list_pop(network))) {
|
||||||
|
memset(bss->ssid, 0, bss->ssid_len);
|
||||||
l_queue_remove_if(station->hidden_bss_list_sorted,
|
l_queue_remove_if(station->hidden_bss_list_sorted,
|
||||||
bss_match_bssid, bss->addr);
|
bss_match_bssid, bss->addr);
|
||||||
l_queue_insert(station->hidden_bss_list_sorted, bss,
|
l_queue_insert(station->hidden_bss_list_sorted, bss,
|
||||||
|
Loading…
Reference in New Issue
Block a user