aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_atheros.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_atheros.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_atheros.c')
-rw-r--r--src/drivers/driver_atheros.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index f3387d8..0db58e2 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -58,7 +58,6 @@
#include "wireless_copy.h"
-#include "../hostapd/sta_flags.h"
#include "driver.h"
#include "eloop.h"
#include "priv_netlink.h"
@@ -375,9 +374,9 @@ madwifi_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 madwifi_set_sta_authorized(priv, addr, 1);
- if (!(flags_and & WLAN_STA_AUTHORIZED))
+ if (!(flags_and & WPA_STA_AUTHORIZED))
return madwifi_set_sta_authorized(priv, addr, 0);
return 0;
}