|
@@ -248,15 +248,12 @@ void ap_list_process_beacon(struct hostapd_iface *iface,
|
|
|
}
|
|
|
|
|
|
|
|
|
-static void ap_list_timer(void *eloop_ctx, void *timeout_ctx)
|
|
|
+void ap_list_timer(struct hostapd_iface *iface)
|
|
|
{
|
|
|
- struct hostapd_iface *iface = eloop_ctx;
|
|
|
struct os_reltime now;
|
|
|
struct ap_info *ap;
|
|
|
int set_beacon = 0;
|
|
|
|
|
|
- eloop_register_timeout(10, 0, ap_list_timer, iface, NULL);
|
|
|
-
|
|
|
if (!iface->ap_list)
|
|
|
return;
|
|
|
|
|
@@ -305,13 +302,11 @@ static void ap_list_timer(void *eloop_ctx, void *timeout_ctx)
|
|
|
|
|
|
int ap_list_init(struct hostapd_iface *iface)
|
|
|
{
|
|
|
- eloop_register_timeout(10, 0, ap_list_timer, iface, NULL);
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
|
|
|
void ap_list_deinit(struct hostapd_iface *iface)
|
|
|
{
|
|
|
- eloop_cancel_timeout(ap_list_timer, iface, NULL);
|
|
|
hostapd_free_aps(iface);
|
|
|
}
|