From 2c78f11a9fd41d6156d4b855ec6ed1dd7f3317d3 Mon Sep 17 00:00:00 2001 From: Sunil Ravi Date: Wed, 4 May 2022 23:25:43 -0700 Subject: [PATCH] Fix compilation due to forward declaration of macaddr_acl enum macaddr_acl is forward declared in wpa_supplicant/ap.h. c++ compiler doesn't allow forward declaration. So to fix the compilation error, moved the enum macaddr_acl declaration out of struct hostapd_bss_config. Signed-off-by: Sunil Ravi --- src/ap/ap_config.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h index 274b6f309..805ea93df 100644 --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h @@ -20,6 +20,12 @@ #include "fst/fst.h" #include "vlan.h" +enum macaddr_acl { + ACCEPT_UNLESS_DENIED = 0, + DENY_UNLESS_ACCEPTED = 1, + USE_EXTERNAL_RADIUS_AUTH = 2 +}; + /** * mesh_conf - local MBSS state and settings */ @@ -335,11 +341,7 @@ struct hostapd_bss_config { bool eap_skip_prot_success; #endif /* CONFIG_TESTING_OPTIONS */ - enum macaddr_acl { - ACCEPT_UNLESS_DENIED = 0, - DENY_UNLESS_ACCEPTED = 1, - USE_EXTERNAL_RADIUS_AUTH = 2 - } macaddr_acl; + enum macaddr_acl macaddr_acl; struct mac_acl_entry *accept_mac; int num_accept_mac; struct mac_acl_entry *deny_mac;