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>
This commit is contained in:
Andrej Shadura 2020-02-25 17:08:32 +01:00 committed by Jouni Malinen
parent f5849f1c7c
commit 3f10f716af

View file

@ -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