$search
#include "config_ssid.h"
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_ssid * | wpa_config_add_network (struct wpa_config *config) |
int | wpa_config_add_prio_network (struct wpa_config *config, struct wpa_ssid *ssid) |
struct wpa_config * | wpa_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_blob * | wpa_config_get_blob (struct wpa_config *config, const char *name) |
struct wpa_ssid * | wpa_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_config * | wpa_config_read (const char *name) |
int | wpa_config_write (const char *name, struct wpa_config *config) |
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
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().
struct wpa_config* wpa_config_alloc_empty | ( | const char * | ctrl_interface, | |
const char * | driver_param | |||
) | [read] |
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()
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().
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 | |||
) |
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.
struct wpa_config_blob* wpa_config_get_blob | ( | struct wpa_config * | config, | |
const char * | name | |||
) | [read] |
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
char* wpa_config_get_no_key | ( | struct wpa_ssid * | ssid, | |
const char * | var | |||
) |
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 | |||
) |
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
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 | |||
) |
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.
void wpa_config_set_network_defaults | ( | struct wpa_ssid * | ssid | ) |
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.
void wpa_config_update_psk | ( | struct wpa_ssid * | ssid | ) |
int wpa_config_write | ( | const char * | name, | |
struct wpa_config * | config | |||
) |
Definition at line 903 of file config_file.c.