aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-07-20 10:33:30 (GMT)
committerJouni Malinen <j@w1.fi>2015-07-20 10:33:30 (GMT)
commit3188aabaf1b04ac40c5baa8270cee72862568205 (patch)
tree3a1ca250e0b71db687ff2a05382e71a68c380e25 /wpa_supplicant/ap.c
parent8c0d0ff22e402977ddf814d798a5c8e02a21199c (diff)
downloadhostap-3188aabaf1b04ac40c5baa8270cee72862568205.zip
hostap-3188aabaf1b04ac40c5baa8270cee72862568205.tar.gz
hostap-3188aabaf1b04ac40c5baa8270cee72862568205.tar.bz2
Add shared periodic cleanup function for AP mode
This new mechanism can be used to combine multiple periodic AP (including P2P GO) task into a single eloop timeout to minimize number of wakeups for the process. hostapd gets its own periodic caller and wpa_supplicant uses the previously added timer to trigger these calls. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index aaea524..ce09c57 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -1369,3 +1369,10 @@ void wpas_event_dfs_cac_nop_finished(struct wpa_supplicant *wpa_s,
radar->chan_width, radar->cf1, radar->cf2);
}
#endif /* NEED_AP_MLME */
+
+
+void ap_periodic(struct wpa_supplicant *wpa_s)
+{
+ if (wpa_s->ap_iface)
+ hostapd_periodic_iface(wpa_s->ap_iface);
+}