Classes | Defines | Functions
config.h File Reference
#include "config_ssid.h"
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wpa_config

Defines

#define DEFAULT_AP_SCAN   1
#define DEFAULT_BSS_MAX_COUNT   200
#define DEFAULT_EAPOL_VERSION   1
#define DEFAULT_FAST_REAUTH   1

Functions

struct wpa_ssidwpa_config_add_network (struct wpa_config *config)
int wpa_config_add_prio_network (struct wpa_config *config, struct wpa_ssid *ssid)
struct wpa_configwpa_config_alloc_empty (const char *ctrl_interface, const char *driver_param)
void wpa_config_debug_dump_networks (struct wpa_config *config)
void wpa_config_free (struct wpa_config *ssid)
void wpa_config_free_blob (struct wpa_config_blob *blob)
void wpa_config_free_ssid (struct wpa_ssid *ssid)
char * wpa_config_get (struct wpa_ssid *ssid, const char *var)
char ** wpa_config_get_all (struct wpa_ssid *ssid, int get_keys)
struct wpa_config_blobwpa_config_get_blob (struct wpa_config *config, const char *name)
struct wpa_ssidwpa_config_get_network (struct wpa_config *config, int id)
char * wpa_config_get_no_key (struct wpa_ssid *ssid, const char *var)
int wpa_config_remove_blob (struct wpa_config *config, const char *name)
int wpa_config_remove_network (struct wpa_config *config, int id)
int wpa_config_set (struct wpa_ssid *ssid, const char *var, const char *value, int line)
void wpa_config_set_blob (struct wpa_config *config, struct wpa_config_blob *blob)
void wpa_config_set_network_defaults (struct wpa_ssid *ssid)
int wpa_config_update_prio_list (struct wpa_config *config)
void wpa_config_update_psk (struct wpa_ssid *ssid)
: Name of the configuration (e.g., path and file name for the

wpa_config_write - Write or update configuration data

configuration file) : Configuration data from wpa_config_read() Returns: 0 on success, -1 on failure

This function write all configuration data into an external database (e.g., a text file) in a format that can be read with wpa_config_read(). This can be used to allow wpa_supplicant to update its configuration, e.g., when a new network is added or a password is changed.

Each configuration backend needs to implement this function.

struct wpa_configwpa_config_read (const char *name)
int wpa_config_write (const char *name, struct wpa_config *config)

Define Documentation

#define DEFAULT_AP_SCAN   1

Definition at line 22 of file config.h.

#define DEFAULT_BSS_MAX_COUNT   200

Definition at line 25 of file config.h.

#define DEFAULT_EAPOL_VERSION   1

Definition at line 18 of file config.h.

#define DEFAULT_FAST_REAUTH   1

Definition at line 24 of file config.h.


Function Documentation

struct wpa_ssid* wpa_config_add_network ( struct wpa_config config) [read]

wpa_config_add_network - Add a new network with empty configuration : Configuration data from wpa_config_read() Returns: The new network configuration or NULL if operation failed

Definition at line 1751 of file config.c.

int wpa_config_add_prio_network ( struct wpa_config config,
struct wpa_ssid ssid 
)

wpa_config_add_prio_network - Add a network to priority lists : Configuration data from wpa_config_read() : Pointer to the network configuration to be added to the list Returns: 0 on success, -1 on failure

This function is used to add a network block to the priority list of networks. This must be called for each network when reading in the full configuration. In addition, this can be used indirectly when updating priorities by calling wpa_config_update_prio_list().

Definition at line 1539 of file config.c.

struct wpa_config* wpa_config_alloc_empty ( const char *  ctrl_interface,
const char *  driver_param 
) [read]

wpa_config_alloc_empty - Allocate an empty configuration : Control interface parameters, e.g., path to UNIX domain socket : Driver parameters Returns: Pointer to allocated configuration data or NULL on failure

Definition at line 2123 of file config.c.

void wpa_config_debug_dump_networks ( struct wpa_config config)

wpa_config_debug_dump_networks - Debug dump of configured networks : Configuration data from wpa_config_read()

Definition at line 2150 of file config.c.

void wpa_config_free ( struct wpa_config config)

wpa_config_free - Free configuration data : Configuration data from wpa_config_read()

This function frees all resources allocated for the configuration data by wpa_config_read().

Definition at line 1684 of file config.c.

void wpa_config_free_blob ( struct wpa_config_blob blob)

wpa_config_free_blob - Free blob data : Pointer to blob to be freed

Definition at line 2078 of file config.c.

void wpa_config_free_ssid ( struct wpa_ssid ssid)

wpa_config_free_ssid - Free network/ssid configuration data : Configuration data for the network

This function frees all resources allocated for the network configuration data.

Definition at line 1662 of file config.c.

char* wpa_config_get ( struct wpa_ssid ssid,
const char *  var 
)

Definition at line 1951 of file config.c.

char** wpa_config_get_all ( struct wpa_ssid ssid,
int  get_keys 
)

wpa_config_get_all - Get all options from network configuration : Pointer to network configuration data : Determines if keys/passwords will be included in returned list Returns: NULL terminated list of all set keys and their values in the form of [key1, val1, key2, val2, ... , NULL]

This function can be used to get list of all configured network properties. The caller is responsible for freeing the returned list and all its elements.

Definition at line 1890 of file config.c.

struct wpa_config_blob* wpa_config_get_blob ( struct wpa_config config,
const char *  name 
) [read]

Definition at line 2043 of file config.c.

struct wpa_ssid* wpa_config_get_network ( struct wpa_config config,
int  id 
) [read]

wpa_config_get_network - Get configured network based on id : Configuration data from wpa_config_read() : Unique network id to search for Returns: Network configuration or NULL if not found

Definition at line 1731 of file config.c.

char* wpa_config_get_no_key ( struct wpa_ssid ssid,
const char *  var 
)

Definition at line 1984 of file config.c.

struct wpa_config* wpa_config_read ( const char *  name) [read]

Definition at line 505 of file config_file.c.

int wpa_config_remove_blob ( struct wpa_config config,
const char *  name 
)

Definition at line 2094 of file config.c.

int wpa_config_remove_network ( struct wpa_config config,
int  id 
)

wpa_config_remove_network - Remove a configured network based on id : Configuration data from wpa_config_read() : Unique network id to search for Returns: 0 on success, or -1 if the network was not found

Definition at line 1787 of file config.c.

int wpa_config_set ( struct wpa_ssid ssid,
const char *  var,
const char *  value,
int  line 
)

Definition at line 1844 of file config.c.

void wpa_config_set_blob ( struct wpa_config config,
struct wpa_config_blob blob 
)

wpa_config_set_blob - Set or add a named configuration blob : Configuration data from wpa_config_read() : New value for the blob

Adds a new configuration blob or replaces the current value of an existing blob.

Definition at line 2065 of file config.c.

void wpa_config_set_network_defaults ( struct wpa_ssid ssid)

wpa_config_set_network_defaults - Set network default values : Pointer to network configuration data

Definition at line 1817 of file config.c.

int wpa_config_update_prio_list ( struct wpa_config config)

wpa_config_update_prio_list - Update network priority list : Configuration data from wpa_config_read() Returns: 0 on success, -1 on failure

This function is called to update the priority list of networks in the configuration when a network is being added or removed. This is also called if a priority for a network is changed.

Definition at line 1590 of file config.c.

void wpa_config_update_psk ( struct wpa_ssid ssid)

wpa_config_update_psk - Update WPA PSK based on passphrase and SSID : Pointer to network configuration data

This function must be called to update WPA PSK when either SSID or the passphrase has changed for the network configuration.

Definition at line 2023 of file config.c.

int wpa_config_write ( const char *  name,
struct wpa_config config 
)

Definition at line 903 of file config_file.c.



wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:22