aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/wpa_auth_glue.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-25 18:12:26 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-25 18:12:26 (GMT)
commit1b56c26c408d3d04cd5ab8eb46d8a0b5ee8a2f7e (patch)
tree0e05c0dfe6d0db16a42c19e8791fd5e0cbb4e8e7 /src/ap/wpa_auth_glue.c
parent70db2ab30816bb55d9fd9f9a94461480f22bd622 (diff)
downloadhostap-1b56c26c408d3d04cd5ab8eb46d8a0b5ee8a2f7e.zip
hostap-1b56c26c408d3d04cd5ab8eb46d8a0b5ee8a2f7e.tar.gz
hostap-1b56c26c408d3d04cd5ab8eb46d8a0b5ee8a2f7e.tar.bz2
Get rid of direct hostapd_for_each_interface() calls
src/ap/*.c must not call functions in hostapd or wpa_supplicant directories directly, so avoid this by using a callback function pointer.
Diffstat (limited to 'src/ap/wpa_auth_glue.c')
-rw-r--r--src/ap/wpa_auth_glue.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c
index b2da79a..1c7b875 100644
--- a/src/ap/wpa_auth_glue.c
+++ b/src/ap/wpa_auth_glue.c
@@ -281,10 +281,12 @@ static int hostapd_wpa_auth_for_each_auth(
{
struct hostapd_data *hapd = ctx;
struct wpa_auth_iface_iter_data data;
+ if (hapd->iface->for_each_interface == NULL)
+ return -1;
data.cb = cb;
data.cb_ctx = cb_ctx;
- return hostapd_for_each_interface(hapd->iface->interfaces,
- wpa_auth_iface_iter, &data);
+ return hapd->iface->for_each_interface(hapd->iface->interfaces,
+ wpa_auth_iface_iter, &data);
}