aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-03-30 15:06:50 (GMT)
committerJouni Malinen <j@w1.fi>2013-03-30 15:06:50 (GMT)
commit69554d78f6b8778c66ab688617225e62983c50fa (patch)
tree1223245559d5b1048f393404deeb5612a88948c1
parent08c99cafd2418eedb1d814212fab53b46e412fa4 (diff)
downloadhostap-69554d78f6b8778c66ab688617225e62983c50fa.zip
hostap-69554d78f6b8778c66ab688617225e62983c50fa.tar.gz
hostap-69554d78f6b8778c66ab688617225e62983c50fa.tar.bz2
ap_list: Remove unused functions
Signed-hostap: Jouni Malinen <j@w1.fi>
-rw-r--r--src/ap/ap_list.c21
-rw-r--r--src/ap/ap_list.h3
2 files changed, 1 insertions, 23 deletions
diff --git a/src/ap/ap_list.c b/src/ap/ap_list.c
index 585328c..4260466 100644
--- a/src/ap/ap_list.c
+++ b/src/ap/ap_list.c
@@ -50,7 +50,7 @@ static int ap_list_beacon_olbc(struct hostapd_iface *iface, struct ap_info *ap)
}
-struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *ap)
+static struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *ap)
{
struct ap_info *s;
@@ -142,25 +142,6 @@ static void hostapd_free_aps(struct hostapd_iface *iface)
}
-int ap_ap_for_each(struct hostapd_iface *iface,
- int (*func)(struct ap_info *s, void *data), void *data)
-{
- struct ap_info *s;
- int ret = 0;
-
- s = iface->ap_list;
-
- while (s) {
- ret = func(s, data);
- if (ret)
- break;
- s = s->next;
- }
-
- return ret;
-}
-
-
static struct ap_info * ap_ap_add(struct hostapd_iface *iface, const u8 *addr)
{
struct ap_info *ap;
diff --git a/src/ap/ap_list.h b/src/ap/ap_list.h
index 24606cc..d0529a1 100644
--- a/src/ap/ap_list.h
+++ b/src/ap/ap_list.h
@@ -32,9 +32,6 @@ struct ap_info {
struct ieee802_11_elems;
struct hostapd_frame_info;
-struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *sta);
-int ap_ap_for_each(struct hostapd_iface *iface,
- int (*func)(struct ap_info *s, void *data), void *data);
void ap_list_process_beacon(struct hostapd_iface *iface,
const struct ieee80211_mgmt *mgmt,
struct ieee802_11_elems *elems,