]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix compilation due to forward declaration of macaddr_acl
authorSunil Ravi <sunilravi@google.com>
Thu, 5 May 2022 06:25:43 +0000 (23:25 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 5 May 2022 10:04:13 +0000 (13:04 +0300)
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 <sunilravi@google.com>
src/ap/ap_config.h

index 274b6f3097a49f917ae6a2665f771d17f08d8da0..805ea93df7317eaed44c7bf38e1cf2db47cac29f 100644 (file)
 #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;