Signed-off-by: Johannes Berg --- src/drivers/driver_nl80211.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 328e063..0cbfb90 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5410,8 +5410,9 @@ static int i802_sta_clear_stats(void *priv, const u8 *addr) #endif return 0; } +#endif /* HOSTAPD */ - +#if defined(HOSTAPD) || defined(CONFIG_AP) static int i802_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr, int reason) { @@ -5449,7 +5450,9 @@ static int i802_sta_disassoc(void *priv, const u8 *own_addr, const u8 *addr, sizeof(mgmt.u.disassoc)); } +#endif /* HOSTAPD || CONFIG_AP */ +#ifdef HOSTAPD static int i802_check_bridge(struct wpa_driver_nl80211_data *drv, const char *brname, const char *ifname) { @@ -6357,8 +6360,12 @@ const struct wpa_driver_ops wpa_driver_nl80211_ops = { .get_seqnum = i802_get_seqnum, .flush = i802_flush, .read_sta_data = i802_read_sta_data, +#endif /* HOSTAPD */ +#if defined(HOSTAPD) || defined(CONFIG_AP) .sta_deauth = i802_sta_deauth, .sta_disassoc = i802_sta_disassoc, +#endif /* HOSTAPD || CONFIG_AP */ +#ifdef HOSTAPD .get_inact_sec = i802_get_inact_sec, .sta_clear_stats = i802_sta_clear_stats, .set_rts = i802_set_rts, -- 1.7.2.3