From: Andrej Shadura Date: Tue, 25 Feb 2020 16:08:32 +0000 (+0100) Subject: common: Provide the BIT() macro locally X-Git-Tag: hostap_2_10~1738 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f10f716af1d0954f5955552c946137f7494a90c;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h index 48002be6c..12906708a 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