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

Driver interaction with Linux nl80211/cfg80211 Copyright (c) 2003-2004, Instant802 Networks, Inc. Copyright (c) 2005-2006, Devicescape Software, Inc. Copyright (c) 2007, Johannes Berg johan.nosp@m.nes@.nosp@m.sipso.nosp@m.luti.nosp@m.ons.n.nosp@m.et Copyright (c) 2009-2010, Atheros Communications. More...

#include "includes.h"
#include <sys/types.h>
#include <fcntl.h>
#include <net/if.h>
#include <netlink/genl/genl.h>
#include <netlink/genl/ctrl.h>
#include <linux/rtnetlink.h>
#include <netpacket/packet.h>
#include <linux/errqueue.h>
#include "common.h"
#include "eloop.h"
#include "common/qca-vendor.h"
#include "common/qca-vendor-attr.h"
#include "common/ieee802_11_defs.h"
#include "common/ieee802_11_common.h"
#include "l2_packet/l2_packet.h"
#include "netlink.h"
#include "linux_defines.h"
#include "linux_ioctl.h"
#include "radiotap.h"
#include "radiotap_iter.h"
#include "rfkill.h"
#include "driver_nl80211.h"

Data Structures

struct  family_data
 
struct  wiphy_idx_data
 
struct  wdev_info
 
struct  nl80211_pcl
 

Macros

#define ELOOP_SOCKET_INVALID   (intptr_t) 0x88888889ULL
 

Functions

enum chan_width convert2width (int width)
 
int is_ap_interface (enum nl80211_iftype nlmode)
 
int is_sta_interface (enum nl80211_iftype nlmode)
 
struct i802_bssget_bss_ifindex (struct wpa_driver_nl80211_data *drv, int ifindex)
 
void nl80211_mark_disconnected (struct wpa_driver_nl80211_data *drv)
 
int send_and_recv_msgs (struct wpa_driver_nl80211_data *drv, struct nl_msg *msg, int(*valid_handler)(struct nl_msg *, void *), void *valid_data)
 
void * nl80211_cmd (struct wpa_driver_nl80211_data *drv, struct nl_msg *msg, int flags, uint8_t cmd)
 
struct nl_msg * nl80211_cmd_msg (struct i802_bss *bss, int flags, uint8_t cmd)
 
struct nl_msg * nl80211_drv_msg (struct wpa_driver_nl80211_data *drv, int flags, uint8_t cmd)
 
struct nl_msg * nl80211_bss_msg (struct i802_bss *bss, int flags, uint8_t cmd)
 
int nl80211_get_wiphy_index (struct i802_bss *bss)
 
unsigned int nl80211_get_assoc_freq (struct wpa_driver_nl80211_data *drv)
 
int nl80211_get_link_signal (struct wpa_driver_nl80211_data *drv, struct wpa_signal_info *sig)
 
int nl80211_get_link_noise (struct wpa_driver_nl80211_data *drv, struct wpa_signal_info *sig_change)
 
int wpa_driver_nl80211_mlme (struct wpa_driver_nl80211_data *drv, const u8 *addr, int cmd, u16 reason_code, int local_state_change)
 
int wpa_driver_nl80211_authenticate_retry (struct wpa_driver_nl80211_data *drv)
 
void nl80211_remove_iface (struct wpa_driver_nl80211_data *drv, int ifidx)
 
int nl80211_create_iface (struct wpa_driver_nl80211_data *drv, const char *ifname, enum nl80211_iftype iftype, const u8 *addr, int wds, int(*handler)(struct nl_msg *, void *), void *arg, int use_existing)
 
int wpa_driver_nl80211_set_mode (struct i802_bss *bss, enum nl80211_iftype nlmode)
 
const u8 * wpa_driver_nl80211_get_macaddr (void *priv)
 

Variables

const struct wpa_driver_ops wpa_driver_nl80211_ops
 

Detailed Description

Driver interaction with Linux nl80211/cfg80211 Copyright (c) 2003-2004, Instant802 Networks, Inc. Copyright (c) 2005-2006, Devicescape Software, Inc. Copyright (c) 2007, Johannes Berg johan.nosp@m.nes@.nosp@m.sipso.nosp@m.luti.nosp@m.ons.n.nosp@m.et Copyright (c) 2009-2010, Atheros Communications.