Commit 53615fa2 authored by Zeeshan Ali's avatar Zeeshan Ali

wifi: Debug message on removing BSS (AP)

parent edfc62a9
......@@ -372,6 +372,23 @@ on_bss_added (WPAInterface *object,
user_data);
}
static void
remove_bss_from_hashtable (const gchar *path, GHashTable *hash_table)
{
char *ssid;
WPABSS *bss = NULL;
bss = g_hash_table_lookup (hash_table, path);
if (bss == NULL)
return;
ssid = get_ssid_from_bss (bss);
g_debug ("WiFi AP '%s' removed.", ssid);
g_free (ssid);
g_hash_table_remove (hash_table, path);
}
static void
on_bss_removed (WPAInterface *object,
const gchar *path,
......@@ -379,8 +396,8 @@ on_bss_removed (WPAInterface *object,
{
GClueWifiPrivate *priv = GCLUE_WIFI (user_data)->priv;
g_hash_table_remove (priv->bss_proxies, path);
g_hash_table_remove (priv->ignored_bss_proxies, path);
remove_bss_from_hashtable (path, priv->bss_proxies);
remove_bss_from_hashtable (path, priv->ignored_bss_proxies);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment