aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_bsd.c
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@FreeBSD.org>2013-08-07 08:02:55 (GMT)
committerJouni Malinen <j@w1.fi>2013-08-07 08:02:55 (GMT)
commit32dc6a319e0f2ecbe1f3940412da11ee21344ce1 (patch)
tree2f35fc2c9a00cabb3ba55dba9948883639aae16d /src/drivers/driver_bsd.c
parent70a867c26814da1957f926e7e2d6dc21b7d331b4 (diff)
downloadhostap-32dc6a319e0f2ecbe1f3940412da11ee21344ce1.zip
hostap-32dc6a319e0f2ecbe1f3940412da11ee21344ce1.tar.gz
hostap-32dc6a319e0f2ecbe1f3940412da11ee21344ce1.tar.bz2
bsd: Mark define sta_set_flags() only for hostapd
Signed-hostap: Rui Paulo <rpaulo@FreeBSD.org>
Diffstat (limited to 'src/drivers/driver_bsd.c')
-rw-r--r--src/drivers/driver_bsd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index cb898c1..ec67dfd 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -514,6 +514,7 @@ bsd_set_ieee8021x(void *priv, struct wpa_bss_params *params)
return bsd_ctrl_iface(priv, 1);
}
+#ifdef HOSTAPD
static int
bsd_set_sta_authorized(void *priv, const u8 *addr,
int total_flags, int flags_or, int flags_and)
@@ -533,6 +534,7 @@ bsd_set_sta_authorized(void *priv, const u8 *addr,
IEEE80211_MLME_AUTHORIZE :
IEEE80211_MLME_UNAUTHORIZE, 0, addr);
}
+#endif /* HOSTAPD */
static void
bsd_new_sta(void *priv, void *ctx, u8 addr[IEEE80211_ADDR_LEN])
@@ -1597,6 +1599,7 @@ const struct wpa_driver_ops wpa_driver_bsd_ops = {
.read_sta_data = bsd_read_sta_driver_data,
.sta_disassoc = bsd_sta_disassoc,
.sta_deauth = bsd_sta_deauth,
+ .sta_set_flags = bsd_set_sta_authorized,
#else /* HOSTAPD */
.init = wpa_driver_bsd_init,
.deinit = wpa_driver_bsd_deinit,
@@ -1615,6 +1618,5 @@ const struct wpa_driver_ops wpa_driver_bsd_ops = {
.hapd_set_ssid = bsd_set_ssid,
.hapd_get_ssid = bsd_get_ssid,
.hapd_send_eapol = bsd_send_eapol,
- .sta_set_flags = bsd_set_sta_authorized,
.set_generic_elem = bsd_set_opt_ie,
};