From ab5fd961c84765c76b4aa5feefd442796145002c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 3 Feb 2021 11:14:30 -0600 Subject: [PATCH] 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 --- src/station.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/station.c b/src/station.c index 1b5aa622..23ea48ca 100644 --- a/src/station.c +++ b/src/station.c @@ -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,