From 490d90db40049357cb7a1a3543efed069e3821b4 Mon Sep 17 00:00:00 2001 From: Vamsi Krishna Date: Tue, 4 Feb 2020 23:23:08 +0530 Subject: [PATCH] Define macro BIT() in qca_vendor.h As qca_vendor.h alone can be included by other applications, define macro BIT() in qca_vendor.h itself if not yet defined, e.g., by including utils/common.h before qca_vendor.h. Signed-off-by: Jouni Malinen --- src/common/qca-vendor.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 61164f026..f21e966d6 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -19,6 +19,10 @@ #define OUI_QCA 0x001374 +#ifndef BIT +#define BIT(x) (1U << (x)) +#endif + /** * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs */ -- 2.39.2