aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorAndrej Shadura <andrew.shadura@collabora.co.uk>2020-02-25 16:08:32 (GMT)
committerJouni Malinen <j@w1.fi>2020-02-28 09:03:05 (GMT)
commit3f10f716af1d0954f5955552c946137f7494a90c (patch)
tree52751cc9325503fa321e6e80a99b1e57564c66a1 /src/common
parentf5849f1c7ce03f7429189af105a8439e56076757 (diff)
downloadhostap-3f10f716af1d0954f5955552c946137f7494a90c.zip
hostap-3f10f716af1d0954f5955552c946137f7494a90c.tar.gz
hostap-3f10f716af1d0954f5955552c946137f7494a90c.tar.bz2
common: Provide the BIT() macro locally
wpa_ctrl.h can be installed separately with libwpa_client, so utils/common.h won't be available to its users. Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/wpa_ctrl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h
index 48002be..1290670 100644
--- a/src/common/wpa_ctrl.h
+++ b/src/common/wpa_ctrl.h
@@ -380,6 +380,10 @@ extern "C" {
#define WDS_STA_INTERFACE_ADDED "WDS-STA-INTERFACE-ADDED "
#define WDS_STA_INTERFACE_REMOVED "WDS-STA-INTERFACE-REMOVED "
+#ifndef BIT
+#define BIT(x) (1U << (x))
+#endif
+
/* BSS command information masks */
#define WPA_BSS_MASK_ALL 0xFFFDFFFF