unsigned int watch;
};
+static GList *iface_list = NULL;
+
static int get_bssid(struct connman_device *device,
unsigned char *bssid, unsigned int *bssid_len)
{
wifi->watch = connman_rtnl_add_newlink_watch(wifi->index,
wifi_newlink, device);
+ iface_list = g_list_append(iface_list, wifi);
+
return 0;
}
DBG("device %p", device);
+ if (wifi == NULL)
+ return;
+
+ iface_list = g_list_remove(iface_list, wifi);
+
if (wifi->pending_network != NULL) {
connman_network_unref(wifi->pending_network);
wifi->pending_network = NULL;