Remove direct driver calls from ieee802_11.c
[libeap.git] / hostapd / config.h
index 5202645..b8ce830 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * hostapd / Configuration file
+ * hostapd / Configuration definitions and helpers functions
  * Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi>
  *
  * This program is free software; you can redistribute it and/or modify
  * See README and COPYING for more details.
  */
 
-#ifndef CONFIG_H
-#define CONFIG_H
+#ifndef HOSTAPD_CONFIG_H
+#define HOSTAPD_CONFIG_H
 
 #include "common/defs.h"
 #include "ip_addr.h"
 #include "common/wpa_common.h"
 
+#define MAX_STA_COUNT 2007
+#define MAX_VLAN_ID 4094
+
 typedef u8 macaddr[ETH_ALEN];
 
 struct mac_acl_entry {
@@ -194,6 +197,7 @@ struct hostapd_bss_config {
        int num_accept_mac;
        struct mac_acl_entry *deny_mac;
        int num_deny_mac;
+       int wds_sta;
 
        int auth_algs; /* bitfield of allowed IEEE 802.11 authentication
                        * algorithms, WPA_AUTH_ALG_{OPEN,SHARED,LEAP} */
@@ -370,7 +374,7 @@ struct hostapd_config {
 int hostapd_mac_comp(const void *a, const void *b);
 int hostapd_mac_comp_empty(const void *a);
 struct hostapd_config * hostapd_config_defaults(void);
-struct hostapd_config * hostapd_config_read(const char *fname);
+void hostapd_config_defaults_bss(struct hostapd_bss_config *bss);
 void hostapd_config_free(struct hostapd_config *conf);
 int hostapd_maclist_found(struct mac_acl_entry *list, int num_entries,
                          const u8 *addr, int *vlan_id);
@@ -386,4 +390,4 @@ const struct hostapd_eap_user *
 hostapd_get_eap_user(const struct hostapd_bss_config *conf, const u8 *identity,
                     size_t identity_len, int phase2);
 
-#endif /* CONFIG_H */
+#endif /* HOSTAPD_CONFIG_H */