#include <ctype.h>
static GSList *bss_info_list = NULL;
-static guint scan_timer = 0;
static unsigned char samsung_oui[3] = {0x00, 0x16, 0x32};
-static gboolean __netconfig_scan_timeout(gpointer data)
-{
- __netconfig_notify_netlink_scan_done();
-
- return FALSE;
-}
-
-static void __netconfig_start_scan_timer(void)
-{
- if (scan_timer == 0) {
- netconfig_start_timer_seconds(5, __netconfig_scan_timeout, NULL, &scan_timer);
- INFO("Get scan data timer started: %d", scan_timer);
- }
-}
-
-static void __netconfig_stop_scan_timer(void)
-{
- netconfig_stop_timer(&scan_timer);
- INFO("Get scan data timer stopped: %d", scan_timer);
-}
-
void __netconfig_notify_netlink_scan_done(void)
{
GVariantBuilder *builder = NULL;
g_slist_free_full(bss_info_list, g_free);
bss_info_list = NULL;
- __netconfig_stop_scan_timer();
INFO("NetlinkScanCompleted");
return;
else
bss_info_list = g_slist_append(bss_info_list, bss_info);
- if (scan_timer == 0) {
- DBG("Start scan timer");
- __netconfig_start_scan_timer();
- }
}
return NL_SKIP;
}
wifi_complete_netlink_scan(wifi, context);
+ __netconfig_notify_netlink_scan_done();
+
return 1;
}