]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Include the NAN header file into driver.h to avoid C++ constraints
authorShivani Baranwal <quic_shivbara@quicinc.com>
Tue, 3 Sep 2024 08:38:41 +0000 (14:08 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 11 Sep 2024 10:47:14 +0000 (13:47 +0300)
Include src/common/nan.h file into src/drivers/driver.h to resolve the
compilation issue "ISO C++ forbids forward references to 'enum' types"
by pulling in the full definition of enum nan_service_protocol_type.

Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
src/drivers/driver.h

index 30cbbc5685335fe73e3db5947545a65aed9f04d4..7ec5fb1e1f0cb8b1d9cf279d6890fa25f0982356 100644 (file)
@@ -22,6 +22,7 @@
 #include "common/defs.h"
 #include "common/ieee802_11_defs.h"
 #include "common/wpa_common.h"
+#include "common/nan.h"
 #ifdef CONFIG_MACSEC
 #include "pae/ieee802_1x_kay.h"
 #endif /* CONFIG_MACSEC */
@@ -29,7 +30,6 @@
 
 struct nan_subscribe_params;
 struct nan_publish_params;
-enum nan_service_protocol_type;
 
 #define HOSTAPD_CHAN_DISABLED 0x00000001
 #define HOSTAPD_CHAN_NO_IR 0x00000002