From: Sunil Ravi Date: Thu, 5 May 2022 06:25:43 +0000 (-0700) Subject: Fix compilation due to forward declaration of macaddr_acl X-Git-Tag: hostap_2_11~1953 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c78f11a9fd41d6156d4b855ec6ed1dd7f3317d3;p=thirdparty%2Fhostap.git 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 --- 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;