From: Rui Paulo Date: Wed, 7 Aug 2013 08:02:55 +0000 (+0300) Subject: bsd: Mark define sta_set_flags() only for hostapd X-Git-Tag: aosp-kk-from-upstream~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32dc6a319e0f2ecbe1f3940412da11ee21344ce1;p=thirdparty%2Fhostap.git bsd: Mark define sta_set_flags() only for hostapd Signed-hostap: Rui Paulo --- diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c index cb898c13d..ec67dfdc9 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, };