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 <sunilravi@google.com>
This commit is contained in:
parent
c8e822801d
commit
2c78f11a9f
1 changed files with 7 additions and 5 deletions
|
@ -20,6 +20,12 @@
|
||||||
#include "fst/fst.h"
|
#include "fst/fst.h"
|
||||||
#include "vlan.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
|
* mesh_conf - local MBSS state and settings
|
||||||
*/
|
*/
|
||||||
|
@ -335,11 +341,7 @@ struct hostapd_bss_config {
|
||||||
bool eap_skip_prot_success;
|
bool eap_skip_prot_success;
|
||||||
#endif /* CONFIG_TESTING_OPTIONS */
|
#endif /* CONFIG_TESTING_OPTIONS */
|
||||||
|
|
||||||
enum macaddr_acl {
|
enum macaddr_acl macaddr_acl;
|
||||||
ACCEPT_UNLESS_DENIED = 0,
|
|
||||||
DENY_UNLESS_ACCEPTED = 1,
|
|
||||||
USE_EXTERNAL_RADIUS_AUTH = 2
|
|
||||||
} macaddr_acl;
|
|
||||||
struct mac_acl_entry *accept_mac;
|
struct mac_acl_entry *accept_mac;
|
||||||
int num_accept_mac;
|
int num_accept_mac;
|
||||||
struct mac_acl_entry *deny_mac;
|
struct mac_acl_entry *deny_mac;
|
||||||
|
|
Loading…
Add table
Reference in a new issue