wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
ap_config.c File Reference

hostapd / Configuration helper functions More...

#include "utils/includes.h"
#include "utils/common.h"
#include "crypto/sha1.h"
#include "radius/radius_client.h"
#include "common/ieee802_11_defs.h"
#include "common/eapol_common.h"
#include "eap_common/eap_wsc_common.h"
#include "eap_server/eap.h"
#include "wpa_auth.h"
#include "sta_info.h"
#include "ap_config.h"

Macros

#define ecw2cw(ecw)   ((1 << (ecw)) - 1)
 

Functions

void hostapd_config_defaults_bss (struct hostapd_bss_config *bss)
 
struct hostapd_confighostapd_config_defaults (void)
 
int hostapd_mac_comp (const void *a, const void *b)
 
int hostapd_mac_comp_empty (const void *a)
 
int hostapd_setup_wpa_psk (struct hostapd_bss_config *conf)
 
struct hostapd_radius_attrhostapd_config_get_radius_attr (struct hostapd_radius_attr *attr, u8 type)
 
void hostapd_config_free_eap_user (struct hostapd_eap_user *user)
 
void hostapd_config_clear_wpa_psk (struct hostapd_wpa_psk **l)
 
void hostapd_config_free_bss (struct hostapd_bss_config *conf)
 
void hostapd_config_free (struct hostapd_config *conf)
 Free hostapd configuration. More...
 
int hostapd_maclist_found (struct mac_acl_entry *list, int num_entries, const u8 *addr, int *vlan_id)
 Find a MAC address from a list. More...
 
int hostapd_rate_found (int *list, int rate)
 
int hostapd_vlan_id_valid (struct hostapd_vlan *vlan, int vlan_id)
 
const char * hostapd_get_vlan_id_ifname (struct hostapd_vlan *vlan, int vlan_id)
 
const u8 * hostapd_get_psk (const struct hostapd_bss_config *conf, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk)
 
int hostapd_config_check (struct hostapd_config *conf, int full_config)
 
void hostapd_set_security_params (struct hostapd_bss_config *bss, int full_config)
 

Detailed Description

hostapd / Configuration helper functions

Function Documentation

void hostapd_config_free ( struct hostapd_config conf)

Free hostapd configuration.

Parameters
confConfiguration data from hostapd_config_read().
int hostapd_maclist_found ( struct mac_acl_entry list,
int  num_entries,
const u8 *  addr,
int *  vlan_id 
)

Find a MAC address from a list.

Parameters
listMAC address list
num_entriesNumber of addresses in the list
addrAddress to search for
vlan_idBuffer 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.