aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-02-16 19:46:27 +0200
committerJouni Malinen <j@w1.fi>2012-02-16 19:46:27 +0200
commit07bcdbb150bfd41acb271198e1babe5a9df93204 (patch)
treead74b5cb6c85499581743a40b915786a453f285e /hostapd
parent9e7d033ef4a17b25af5e9798c2edfc9a95a4829a (diff)
downloadexternal_wpa_supplicant_8_ti-07bcdbb150bfd41acb271198e1babe5a9df93204.zip
external_wpa_supplicant_8_ti-07bcdbb150bfd41acb271198e1babe5a9df93204.tar.gz
external_wpa_supplicant_8_ti-07bcdbb150bfd41acb271198e1babe5a9df93204.tar.bz2
Move hostapd_for_each_interface() and hapd_interfaces into src/ap
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/main.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index 2748c61..f33a160 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -42,29 +42,6 @@ struct hapd_global {
static struct hapd_global global;
-struct hapd_interfaces {
- size_t count;
- struct hostapd_iface **iface;
-};
-
-
-static int hostapd_for_each_interface(struct hapd_interfaces *interfaces,
- int (*cb)(struct hostapd_iface *iface,
- void *ctx), void *ctx)
-{
- size_t i;
- int ret;
-
- for (i = 0; i < interfaces->count; i++) {
- ret = cb(interfaces->iface[i], ctx);
- if (ret)
- return ret;
- }
-
- return 0;
-}
-
-
#ifndef CONFIG_NO_HOSTAPD_LOGGER
static void hostapd_logger_cb(void *ctx, const u8 *addr, unsigned int module,
int level, const char *txt, size_t len)