aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_bsd.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-13 09:35:39 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-13 09:35:39 (GMT)
commit0de39516aeb185d54cd755e366dde2f2cc149e50 (patch)
treeaed324356d8cd50d834878f20cfcb722cf7c80b5 /src/drivers/driver_bsd.c
parenta34325dde9d88ec379f5b2c960ad1ef9182a2f33 (diff)
downloadhostap-0de39516aeb185d54cd755e366dde2f2cc149e50.zip
hostap-0de39516aeb185d54cd755e366dde2f2cc149e50.tar.gz
hostap-0de39516aeb185d54cd755e366dde2f2cc149e50.tar.bz2
Map STA flags into values defined in driver.h
This removes need for including hostapd/sta_flags.h into driver wrappers and removes any remaining dependencies between driver flags and internal hostapd flags.
Diffstat (limited to 'src/drivers/driver_bsd.c')
-rw-r--r--src/drivers/driver_bsd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index 400c7b0..aa523d6 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -154,7 +154,6 @@ bsd_set_ssid(int s, const char *ifname, const u8 *ssid, size_t ssid_len)
#undef WPA_OUI_TYPE
#include "l2_packet/l2_packet.h"
-#include "../../hostapd/sta_flags.h"
struct bsd_driver_data {
struct hostapd_data *hapd; /* back pointer */
@@ -382,9 +381,9 @@ bsd_sta_set_flags(void *priv, const u8 *addr, int total_flags, int flags_or,
int flags_and)
{
/* For now, only support setting Authorized flag */
- if (flags_or & WLAN_STA_AUTHORIZED)
+ if (flags_or & WPA_STA_AUTHORIZED)
return bsd_set_sta_authorized(priv, addr, 1);
- if (!(flags_and & WLAN_STA_AUTHORIZED))
+ if (!(flags_and & WPA_STA_AUTHORIZED))
return bsd_set_sta_authorized(priv, addr, 0);
return 0;
}