commit ab5fd961c84765c76b4aa5feefd442796145002c
parent 9af25d937dee15717a753daaa128faaf598074d9
Author: Denis Kenzior <denkenz@gmail.com>
Date: Wed, 3 Feb 2021 11:14:30 -0600
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
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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,