ap_drv_ops.c File Reference

#include "utils/includes.h"
#include "utils/common.h"
#include "drivers/driver.h"
#include "common/ieee802_11_defs.h"
#include "hostapd.h"
#include "ieee802_11.h"
#include "sta_info.h"
#include "ap_config.h"
Include dependency graph for ap_drv_ops.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int hostapd_driver_commit (struct hostapd_data *hapd)
struct wpa_scan_resultshostapd_driver_get_scan_results (struct hostapd_data *hapd)
int hostapd_driver_scan (struct hostapd_data *hapd, struct wpa_driver_scan_params *params)
int hostapd_drv_none (struct hostapd_data *hapd)
int hostapd_flush (struct hostapd_data *hapd)
struct hostapd_hw_modeshostapd_get_hw_feature_data (struct hostapd_data *hapd, u16 *num_modes, u16 *flags)
static int hostapd_get_inact_sec (struct hostapd_data *hapd, const u8 *addr)
int hostapd_get_seqnum (const char *ifname, struct hostapd_data *hapd, const u8 *addr, int idx, u8 *seq)
int hostapd_get_ssid (struct hostapd_data *hapd, u8 *buf, size_t len)
int hostapd_if_add (struct hostapd_data *hapd, enum wpa_driver_if_type type, const char *ifname, const u8 *addr, void *bss_ctx, void **drv_priv, char *force_ifname, u8 *if_addr)
int hostapd_if_remove (struct hostapd_data *hapd, enum wpa_driver_if_type type, const char *ifname)
static int hostapd_read_sta_data (struct hostapd_data *hapd, struct hostap_sta_driver_data *data, const u8 *addr)
static int hostapd_send_eapol (struct hostapd_data *hapd, const u8 *addr, const u8 *data, size_t data_len, int encrypt)
static int hostapd_send_mgmt_frame (struct hostapd_data *hapd, const void *msg, size_t len)
static int hostapd_set_ap_wps_ie (struct hostapd_data *hapd)
static int hostapd_set_authorized (struct hostapd_data *hapd, struct sta_info *sta, int authorized)
static int hostapd_set_beacon (struct hostapd_data *hapd, const u8 *head, size_t head_len, const u8 *tail, size_t tail_len, int dtim_period, int beacon_int)
static int hostapd_set_bss_params (struct hostapd_data *hapd, int use_protection)
static int hostapd_set_countermeasures (struct hostapd_data *hapd, int enabled)
int hostapd_set_country (struct hostapd_data *hapd, const char *country)
int hostapd_set_cts_protect (struct hostapd_data *hapd, int value)
void hostapd_set_driver_ops (struct hostapd_driver_ops *ops)
static int hostapd_set_drv_ieee8021x (struct hostapd_data *hapd, const char *ifname, int enabled)
int hostapd_set_frag (struct hostapd_data *hapd, int frag)
int hostapd_set_freq (struct hostapd_data *hapd, int mode, int freq, int channel, int ht_enabled, int sec_channel_offset)
int hostapd_set_generic_elem (struct hostapd_data *hapd, const u8 *elem, size_t elem_len)
int hostapd_set_ht_params (struct hostapd_data *hapd, const u8 *ht_capab, size_t ht_capab_len, const u8 *ht_oper, size_t ht_oper_len)
int hostapd_set_ieee8021x (struct hostapd_data *hapd, struct wpa_bss_params *params)
static int hostapd_set_key (const char *ifname, struct hostapd_data *hapd, enum wpa_alg alg, const u8 *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len)
int hostapd_set_preamble (struct hostapd_data *hapd, int value)
int hostapd_set_privacy (struct hostapd_data *hapd, int enabled)
static int hostapd_set_radius_acl_auth (struct hostapd_data *hapd, const u8 *mac, int accepted, u32 session_timeout)
static int hostapd_set_radius_acl_expire (struct hostapd_data *hapd, const u8 *mac)
int hostapd_set_rate_sets (struct hostapd_data *hapd, int *supp_rates, int *basic_rates, int mode)
int hostapd_set_rts (struct hostapd_data *hapd, int rts)
int hostapd_set_short_slot_time (struct hostapd_data *hapd, int value)
int hostapd_set_ssid (struct hostapd_data *hapd, const u8 *buf, size_t len)
static int hostapd_set_sta_flags (struct hostapd_data *hapd, struct sta_info *sta)
static int hostapd_set_sta_vlan (const char *ifname, struct hostapd_data *hapd, const u8 *addr, int vlan_id)
int hostapd_set_tx_queue_params (struct hostapd_data *hapd, int queue, int aifs, int cw_min, int cw_max, int burst_time)
static int hostapd_set_wds_sta (struct hostapd_data *hapd, const u8 *addr, int aid, int val)
static int hostapd_sta_add (struct hostapd_data *hapd, const u8 *addr, u16 aid, u16 capability, const u8 *supp_rates, size_t supp_rates_len, u16 listen_interval, const struct ieee80211_ht_capabilities *ht_capab)
static int hostapd_sta_clear_stats (struct hostapd_data *hapd, const u8 *addr)
static int hostapd_sta_deauth (struct hostapd_data *hapd, const u8 *addr, int reason)
static int hostapd_sta_disassoc (struct hostapd_data *hapd, const u8 *addr, int reason)
static int hostapd_sta_flags_to_drv (int flags)
static int hostapd_sta_remove (struct hostapd_data *hapd, const u8 *addr)
int hostapd_sta_set_flags (struct hostapd_data *hapd, u8 *addr, int total_flags, int flags_or, int flags_and)
int hostapd_valid_bss_mask (struct hostapd_data *hapd, const u8 *addr, const u8 *mask)
static int hostapd_vlan_if_add (struct hostapd_data *hapd, const char *ifname)
static int hostapd_vlan_if_remove (struct hostapd_data *hapd, const char *ifname)

Function Documentation

int hostapd_driver_commit ( struct hostapd_data hapd  ) 

Definition at line 579 of file ap_drv_ops.c.

struct wpa_scan_results* hostapd_driver_get_scan_results ( struct hostapd_data hapd  )  [read]

Definition at line 615 of file ap_drv_ops.c.

int hostapd_driver_scan ( struct hostapd_data hapd,
struct wpa_driver_scan_params params 
)

Definition at line 606 of file ap_drv_ops.c.

int hostapd_drv_none ( struct hostapd_data hapd  ) 

Definition at line 600 of file ap_drv_ops.c.

int hostapd_flush ( struct hostapd_data hapd  ) 

Definition at line 454 of file ap_drv_ops.c.

struct hostapd_hw_modes* hostapd_get_hw_feature_data ( struct hostapd_data hapd,
u16 num_modes,
u16 flags 
) [read]

Definition at line 568 of file ap_drv_ops.c.

static int hostapd_get_inact_sec ( struct hostapd_data hapd,
const u8 addr 
) [static]

Definition at line 284 of file ap_drv_ops.c.

int hostapd_get_seqnum ( const char *  ifname,
struct hostapd_data hapd,
const u8 addr,
int  idx,
u8 seq 
)

Definition at line 444 of file ap_drv_ops.c.

int hostapd_get_ssid ( struct hostapd_data hapd,
u8 buf,
size_t  len 
)

Definition at line 399 of file ap_drv_ops.c.

int hostapd_if_add ( struct hostapd_data hapd,
enum wpa_driver_if_type  type,
const char *  ifname,
const u8 addr,
void *  bss_ctx,
void **  drv_priv,
char *  force_ifname,
u8 if_addr 
)

Definition at line 415 of file ap_drv_ops.c.

int hostapd_if_remove ( struct hostapd_data hapd,
enum wpa_driver_if_type  type,
const char *  ifname 
)

Definition at line 426 of file ap_drv_ops.c.

static int hostapd_read_sta_data ( struct hostapd_data hapd,
struct hostap_sta_driver_data data,
const u8 addr 
) [static]

Definition at line 108 of file ap_drv_ops.c.

static int hostapd_send_eapol ( struct hostapd_data hapd,
const u8 addr,
const u8 data,
size_t  data_len,
int  encrypt 
) [static]

Definition at line 68 of file ap_drv_ops.c.

static int hostapd_send_mgmt_frame ( struct hostapd_data hapd,
const void *  msg,
size_t  len 
) [static]

Definition at line 59 of file ap_drv_ops.c.

static int hostapd_set_ap_wps_ie ( struct hostapd_data hapd  )  [static]

Definition at line 42 of file ap_drv_ops.c.

static int hostapd_set_authorized ( struct hostapd_data hapd,
struct sta_info sta,
int  authorized 
) [static]

Definition at line 79 of file ap_drv_ops.c.

static int hostapd_set_beacon ( struct hostapd_data hapd,
const u8 head,
size_t  head_len,
const u8 tail,
size_t  tail_len,
int  dtim_period,
int  beacon_int 
) [static]

Definition at line 237 of file ap_drv_ops.c.

static int hostapd_set_bss_params ( struct hostapd_data hapd,
int  use_protection 
) [static]

Definition at line 183 of file ap_drv_ops.c.

static int hostapd_set_countermeasures ( struct hostapd_data hapd,
int  enabled 
) [static]

Definition at line 345 of file ap_drv_ops.c.

int hostapd_set_country ( struct hostapd_data hapd,
const char *  country 
)

Definition at line 515 of file ap_drv_ops.c.

int hostapd_set_cts_protect ( struct hostapd_data hapd,
int  value 
)

Definition at line 524 of file ap_drv_ops.c.

void hostapd_set_driver_ops ( struct hostapd_driver_ops ops  ) 

Definition at line 354 of file ap_drv_ops.c.

static int hostapd_set_drv_ieee8021x ( struct hostapd_data hapd,
const char *  ifname,
int  enabled 
) [static]

Definition at line 143 of file ap_drv_ops.c.

int hostapd_set_frag ( struct hostapd_data hapd,
int  frag 
)

Definition at line 487 of file ap_drv_ops.c.

int hostapd_set_freq ( struct hostapd_data hapd,
int  mode,
int  freq,
int  channel,
int  ht_enabled,
int  sec_channel_offset 
)

Definition at line 462 of file ap_drv_ops.c.

int hostapd_set_generic_elem ( struct hostapd_data hapd,
const u8 elem,
size_t  elem_len 
)

Definition at line 390 of file ap_drv_ops.c.

int hostapd_set_ht_params ( struct hostapd_data hapd,
const u8 ht_capab,
size_t  ht_capab_len,
const u8 ht_oper,
size_t  ht_oper_len 
)

Definition at line 587 of file ap_drv_ops.c.

int hostapd_set_ieee8021x ( struct hostapd_data hapd,
struct wpa_bss_params params 
)

Definition at line 435 of file ap_drv_ops.c.

static int hostapd_set_key ( const char *  ifname,
struct hostapd_data hapd,
enum wpa_alg  alg,
const u8 addr,
int  key_idx,
int  set_tx,
const u8 seq,
size_t  seq_len,
const u8 key,
size_t  key_len 
) [static]

Definition at line 95 of file ap_drv_ops.c.

int hostapd_set_preamble ( struct hostapd_data hapd,
int  value 
)

Definition at line 532 of file ap_drv_ops.c.

int hostapd_set_privacy ( struct hostapd_data hapd,
int  enabled 
)

Definition at line 382 of file ap_drv_ops.c.

static int hostapd_set_radius_acl_auth ( struct hostapd_data hapd,
const u8 mac,
int  accepted,
u32  session_timeout 
) [static]

Definition at line 162 of file ap_drv_ops.c.

static int hostapd_set_radius_acl_expire ( struct hostapd_data hapd,
const u8 mac 
) [static]

Definition at line 173 of file ap_drv_ops.c.

int hostapd_set_rate_sets ( struct hostapd_data hapd,
int *  supp_rates,
int *  basic_rates,
int  mode 
)

Definition at line 505 of file ap_drv_ops.c.

int hostapd_set_rts ( struct hostapd_data hapd,
int  rts 
)

Definition at line 479 of file ap_drv_ops.c.

int hostapd_set_short_slot_time ( struct hostapd_data hapd,
int  value 
)

Definition at line 540 of file ap_drv_ops.c.

int hostapd_set_ssid ( struct hostapd_data hapd,
const u8 buf,
size_t  len 
)

Definition at line 407 of file ap_drv_ops.c.

static int hostapd_set_sta_flags ( struct hostapd_data hapd,
struct sta_info sta 
) [static]

Definition at line 126 of file ap_drv_ops.c.

static int hostapd_set_sta_vlan ( const char *  ifname,
struct hostapd_data hapd,
const u8 addr,
int  vlan_id 
) [static]

Definition at line 274 of file ap_drv_ops.c.

int hostapd_set_tx_queue_params ( struct hostapd_data hapd,
int  queue,
int  aifs,
int  cw_min,
int  cw_max,
int  burst_time 
)

Definition at line 548 of file ap_drv_ops.c.

static int hostapd_set_wds_sta ( struct hostapd_data hapd,
const u8 addr,
int  aid,
int  val 
) [static]

Definition at line 265 of file ap_drv_ops.c.

static int hostapd_sta_add ( struct hostapd_data hapd,
const u8 addr,
u16  aid,
u16  capability,
const u8 supp_rates,
size_t  supp_rates_len,
u16  listen_interval,
const struct ieee80211_ht_capabilities ht_capab 
) [static]

Definition at line 312 of file ap_drv_ops.c.

static int hostapd_sta_clear_stats ( struct hostapd_data hapd,
const u8 addr 
) [static]

Definition at line 118 of file ap_drv_ops.c.

static int hostapd_sta_deauth ( struct hostapd_data hapd,
const u8 addr,
int  reason 
) [static]

Definition at line 292 of file ap_drv_ops.c.

static int hostapd_sta_disassoc ( struct hostapd_data hapd,
const u8 addr,
int  reason 
) [static]

Definition at line 302 of file ap_drv_ops.c.

static int hostapd_sta_flags_to_drv ( int  flags  )  [static]

Definition at line 27 of file ap_drv_ops.c.

static int hostapd_sta_remove ( struct hostapd_data hapd,
const u8 addr 
) [static]

Definition at line 337 of file ap_drv_ops.c.

int hostapd_sta_set_flags ( struct hostapd_data hapd,
u8 addr,
int  total_flags,
int  flags_or,
int  flags_and 
)

Definition at line 495 of file ap_drv_ops.c.

int hostapd_valid_bss_mask ( struct hostapd_data hapd,
const u8 addr,
const u8 mask 
)

Definition at line 558 of file ap_drv_ops.c.

static int hostapd_vlan_if_add ( struct hostapd_data hapd,
const char *  ifname 
) [static]

Definition at line 250 of file ap_drv_ops.c.

static int hostapd_vlan_if_remove ( struct hostapd_data hapd,
const char *  ifname 
) [static]

Definition at line 258 of file ap_drv_ops.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:04:09 2013