config.c File Reference

hostapd / Configuration file More...

#include "includes.h"
#include <grp.h>
#include "hostapd.h"
#include "drivers/driver.h"
#include "sha1.h"
#include "eap_server/eap.h"
#include "radius/radius_client.h"
#include "wpa_common.h"
#include "wpa.h"
#include "uuid.h"
#include "eap_common/eap_wsc_common.h"
#include "sta_info.h"
#include "config.h"

Defines

#define MAX_STA_COUNT   2007

Enumerations

enum  {
  IEEE80211_TX_QUEUE_DATA0 = 0, IEEE80211_TX_QUEUE_DATA1 = 1, IEEE80211_TX_QUEUE_DATA2 = 2, IEEE80211_TX_QUEUE_DATA3 = 3,
  IEEE80211_TX_QUEUE_DATA4 = 4, IEEE80211_TX_QUEUE_AFTER_BEACON = 6, IEEE80211_TX_QUEUE_BEACON = 7
}

Functions

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_confighostapd_config_read (const char *fname)
 Read and parse a configuration file.
int hostapd_wep_key_cmp (struct hostapd_wep_keys *a, struct hostapd_wep_keys *b)
void hostapd_config_free (struct hostapd_config *conf)
 Free hostapd configuration.
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.
int hostapd_rate_found (int *list, int rate)
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 *prev_psk)
struct hostapd_eap_userhostapd_get_eap_user (const struct hostapd_bss_config *conf, const u8 *identity, size_t identity_len, int phase2)

Variables

struct wpa_driver_opswpa_drivers []

Detailed Description

hostapd / Configuration file

Copyright
Copyright (c) 2003-2008, Jouni Malinen <j@w1.fi> Copyright (c) 2007-2008, Intel Corporation

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.


Function Documentation

void hostapd_config_free ( struct hostapd_config conf  ) 

Free hostapd configuration.

Parameters:
conf Configuration data from hostapd_config_read().
struct hostapd_config* hostapd_config_read ( const char *  fname  )  [read]

Read and parse a configuration file.

Parameters:
fname Configuration file name (including path, if needed)
Returns:
Allocated configuration data structure
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:
list MAC address list
num_entries Number of addresses in the list
addr Address to search for
vlan_id 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.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 28 23:07:49 2009 for wpa_supplicant/hostapd by  doxygen 1.6.1