OBJS += drv_callbacks.o
OBJS += ap_drv_ops.o
+OBJS += ../src/ap/utils.o
OBJS += ../src/ap/ieee802_1x.o
OBJS += ../src/ap/config.o
OBJS += ../src/ap/ieee802_11_auth.o
ifdef CONFIG_WPS
CFLAGS += -DCONFIG_WPS -DEAP_SERVER_WSC
OBJS += ../src/utils/uuid.o
-OBJS += wps_hostapd.o
+OBJS += ../src/ap/wps_hostapd.o
OBJS += ../src/eap_server/eap_wsc.o ../src/eap_common/eap_wsc_common.o
OBJS += ../src/wps/wps.o
OBJS += ../src/wps/wps_common.o
#include "ap/ieee802_11.h"
#include "ap/sta_info.h"
#include "ap/accounting.h"
+#include "ap/wps_hostapd.h"
#include "ctrl_iface.h"
-#include "wps_hostapd.h"
#include "ctrl_iface_ap.h"
#include "ap/wpa.h"
#include "ap/ieee802_11.h"
#include "ap/sta_info.h"
-#include "wps_hostapd.h"
+#include "ap/wps_hostapd.h"
#include "ctrl_iface_ap.h"
#include "ap/ieee802_1x.h"
#include "ap/wpa.h"
#include "ap/wmm.h"
+#include "ap/wps_hostapd.h"
#include "driver_i.h"
#include "iapp.h"
-#include "wps_hostapd.h"
int hostapd_notif_new_sta(struct hostapd_data *hapd, const u8 *addr)
#include "ap/tkip_countermeasures.h"
#include "ap/vlan_init.h"
#include "ap/wpa.h"
+#include "ap/wps_hostapd.h"
#include "hw_features.h"
#include "iapp.h"
#include "driver_i.h"
#include "ctrl_iface.h"
-#include "wps_hostapd.h"
static int hostapd_flush_old_stations(struct hostapd_data *hapd);
}
-int hostapd_register_probereq_cb(struct hostapd_data *hapd,
- void (*cb)(void *ctx, const u8 *sa,
- const u8 *ie, size_t ie_len),
- void *ctx)
-{
- struct hostapd_probereq_cb *n;
-
- n = os_realloc(hapd->probereq_cb, (hapd->num_probereq_cb + 1) *
- sizeof(struct hostapd_probereq_cb));
- if (n == NULL)
- return -1;
-
- hapd->probereq_cb = n;
- n = &hapd->probereq_cb[hapd->num_probereq_cb];
- hapd->num_probereq_cb++;
-
- n->cb = cb;
- n->ctx = ctx;
-
- return 0;
-}
-
-
struct prune_data {
struct hostapd_data *hapd;
const u8 *addr;
if (hapd_iface == NULL)
goto fail;
+ hapd_iface->reload_config = hostapd_reload_config;
hapd_iface->config_read_cb = hostapd_config_read;
hapd_iface->config_fname = os_strdup(config_file);
if (hapd_iface->config_fname == NULL)
struct hostapd_iface {
struct hapd_interfaces *interfaces;
void *owner;
+ int (*reload_config)(struct hostapd_iface *iface);
struct hostapd_config * (*config_read_cb)(const char *config_fname);
char *config_fname;
struct hostapd_config *conf;
struct hostapd_iface *iface = eloop_data;
wpa_printf(MSG_DEBUG, "WPS: Reload configuration data");
- if (hostapd_reload_config(iface) < 0) {
+ if (iface->reload_config(iface) < 0) {
wpa_printf(MSG_WARNING, "WPS: Failed to reload the updated "
"configuration");
}
CFLAGS += -DCONFIG_NO_ACCOUNTING
CFLAGS += -DCONFIG_NO_VLAN
OBJS += ../hostapd/hostapd.o
+OBJS += ../src/ap/utils.o
OBJS += ../src/ap/config.o
OBJS += ../src/utils/ip_addr.o
OBJS += ../src/ap/sta_info.o
endif
ifdef CONFIG_WPS
CFLAGS += -DEAP_SERVER_WSC
-OBJS += ../hostapd/wps_hostapd.o
+OBJS += ../src/ap/wps_hostapd.o
OBJS += ../src/eap_server/eap_wsc.o
endif
endif