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

wpa_supplicant ctrl_iface helpers Copyright (c) 2011-2012, Qualcomm Atheros, Inc. More...

#include "includes.h"
#include <time.h>
#include "common.h"
#include "wpa_ctrl.h"
#include "wpa_helpers.h"

Functions

int wpa_command (const char *ifname, const char *cmd)
 
int wpa_command_resp (const char *ifname, const char *cmd, char *resp, size_t resp_size)
 
struct wpa_ctrlopen_wpa_mon (const char *ifname)
 
int get_wpa_cli_event2 (struct wpa_ctrl *mon, const char *event, const char *event2, char *buf, size_t buf_size)
 
int get_wpa_cli_event (struct wpa_ctrl *mon, const char *event, char *buf, size_t buf_size)
 
int get_wpa_status (const char *ifname, const char *field, char *obuf, size_t obuf_size)
 
int wait_ip_addr (const char *ifname, int timeout)
 
int add_network (const char *ifname)
 
int set_network (const char *ifname, int id, const char *field, const char *value)
 
int set_network_quoted (const char *ifname, int id, const char *field, const char *value)
 
int add_cred (const char *ifname)
 
int set_cred (const char *ifname, int id, const char *field, const char *value)
 
int set_cred_quoted (const char *ifname, int id, const char *field, const char *value)
 

Variables

char * wpas_ctrl_path = "/var/run/wpa_supplicant/"
 

Detailed Description

wpa_supplicant ctrl_iface helpers Copyright (c) 2011-2012, Qualcomm Atheros, Inc.