Classes | Defines | Typedefs | Enumerations | Functions
ap_config.h File Reference
#include "common/defs.h"
#include "ip_addr.h"
#include "common/wpa_common.h"
Include dependency graph for ap_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hostapd_bss_config
struct  hostapd_config
struct  hostapd_eap_user
struct  hostapd_ssid
struct  hostapd_tx_queue_params
struct  hostapd_vlan
struct  hostapd_wep_keys
struct  hostapd_wmm_ac_params
struct  hostapd_wpa_psk
struct  mac_acl_entry

Defines

#define DYNAMIC_VLAN_DISABLED   0
#define DYNAMIC_VLAN_OPTIONAL   1
#define DYNAMIC_VLAN_REQUIRED   2
#define EAP_USER_MAX_METHODS   8
#define HOSTAPD_MAX_SSID_LEN   32
#define MAX_STA_COUNT   2007
#define MAX_VLAN_ID   4094
#define NUM_TX_QUEUES   8
#define NUM_WEP_KEYS   4
#define PMK_LEN   32
#define VLAN_ID_WILDCARD   -1

Typedefs

typedef u8 macaddr [ETH_ALEN]
typedef enum hostap_security_policy secpolicy

Enumerations

enum  hostap_security_policy {
  SECURITY_PLAINTEXT = 0, SECURITY_STATIC_WEP = 1, SECURITY_IEEE_802_1X = 2, SECURITY_WPA_PSK = 3,
  SECURITY_WPA = 4
}

Functions

struct hostapd_confighostapd_config_defaults (void)
void hostapd_config_defaults_bss (struct hostapd_bss_config *bss)
void hostapd_config_free (struct hostapd_config *conf)
struct hostapd_eap_userhostapd_get_eap_user (const struct hostapd_bss_config *conf, const u8 *identity, size_t identity_len, int phase2)
const u8 * hostapd_get_psk (const struct hostapd_bss_config *conf, const u8 *addr, const u8 *prev_psk)
const char * hostapd_get_vlan_id_ifname (struct hostapd_vlan *vlan, int vlan_id)
int hostapd_mac_comp (const void *a, const void *b)
int hostapd_mac_comp_empty (const void *a)
int hostapd_maclist_found (struct mac_acl_entry *list, int num_entries, const u8 *addr, int *vlan_id)
int hostapd_rate_found (int *list, int rate)
int hostapd_setup_wpa_psk (struct hostapd_bss_config *conf)
int hostapd_wep_key_cmp (struct hostapd_wep_keys *a, struct hostapd_wep_keys *b)

Define Documentation

#define DYNAMIC_VLAN_DISABLED   0

Definition at line 69 of file ap_config.h.

#define DYNAMIC_VLAN_OPTIONAL   1

Definition at line 70 of file ap_config.h.

#define DYNAMIC_VLAN_REQUIRED   2

Definition at line 71 of file ap_config.h.

#define EAP_USER_MAX_METHODS   8

Definition at line 106 of file ap_config.h.

#define HOSTAPD_MAX_SSID_LEN   32

Definition at line 36 of file ap_config.h.

#define MAX_STA_COUNT   2007

Definition at line 22 of file ap_config.h.

#define MAX_VLAN_ID   4094

Definition at line 23 of file ap_config.h.

#define NUM_TX_QUEUES   8

Definition at line 126 of file ap_config.h.

#define NUM_WEP_KEYS   4

Definition at line 38 of file ap_config.h.

#define PMK_LEN   32

Definition at line 98 of file ap_config.h.

#define VLAN_ID_WILDCARD   -1

Definition at line 81 of file ap_config.h.


Typedef Documentation

typedef u8 macaddr[ETH_ALEN]

Definition at line 25 of file ap_config.h.


Enumeration Type Documentation

Enumerator:
SECURITY_PLAINTEXT 
SECURITY_STATIC_WEP 
SECURITY_IEEE_802_1X 
SECURITY_WPA_PSK 
SECURITY_WPA 

Definition at line 47 of file ap_config.h.


Function Documentation

struct hostapd_config* hostapd_config_defaults ( void  ) [read]

Definition at line 90 of file ap_config.c.

Definition at line 45 of file ap_config.c.

void hostapd_config_free ( struct hostapd_config conf)

hostapd_config_free - Free hostapd configuration : Configuration data from hostapd_config_read().

Definition at line 454 of file ap_config.c.

struct hostapd_eap_user* hostapd_get_eap_user ( const struct hostapd_bss_config conf,
const u8 *  identity,
size_t  identity_len,
int  phase2 
) [read]

Definition at line 554 of file ap_config.c.

const u8* hostapd_get_psk ( const struct hostapd_bss_config conf,
const u8 *  addr,
const u8 *  prev_psk 
)

Definition at line 534 of file ap_config.c.

const char* hostapd_get_vlan_id_ifname ( struct hostapd_vlan vlan,
int  vlan_id 
)

Definition at line 522 of file ap_config.c.

int hostapd_mac_comp ( const void *  a,
const void *  b 
)

Definition at line 146 of file ap_config.c.

int hostapd_mac_comp_empty ( const void *  a)

Definition at line 152 of file ap_config.c.

int hostapd_maclist_found ( struct mac_acl_entry list,
int  num_entries,
const u8 *  addr,
int *  vlan_id 
)

hostapd_maclist_found - Find a MAC address from a list : MAC address list : Number of addresses in the list : Address to search for : Buffer for returning VLAN ID or NULL if not needed Returns: 1 if address is in the list or 0 if not.

Perform a binary search for given MAC address from a pre-sorted list.

Definition at line 481 of file ap_config.c.

int hostapd_rate_found ( int *  list,
int  rate 
)

Definition at line 507 of file ap_config.c.

int hostapd_setup_wpa_psk ( struct hostapd_bss_config conf)

Definition at line 269 of file ap_config.c.

int hostapd_wep_key_cmp ( struct hostapd_wep_keys a,
struct hostapd_wep_keys b 
)

Definition at line 296 of file ap_config.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:37