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

hostapd / IEEE 802.11 Management More...

#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "crypto/crypto.h"
#include "crypto/sha256.h"
#include "crypto/random.h"
#include "common/ieee802_11_defs.h"
#include "common/ieee802_11_common.h"
#include "common/wpa_ctrl.h"
#include "common/sae.h"
#include "radius/radius.h"
#include "radius/radius_client.h"
#include "p2p/p2p.h"
#include "wps/wps.h"
#include "fst/fst.h"
#include "hostapd.h"
#include "beacon.h"
#include "ieee802_11_auth.h"
#include "sta_info.h"
#include "ieee802_1x.h"
#include "wpa_auth.h"
#include "pmksa_cache_auth.h"
#include "wmm.h"
#include "ap_list.h"
#include "accounting.h"
#include "ap_config.h"
#include "ap_mlme.h"
#include "p2p_hostapd.h"
#include "ap_drv_ops.h"
#include "wnm_ap.h"
#include "hw_features.h"
#include "ieee802_11.h"
#include "dfs.h"

Functions

u8 * hostapd_eid_supp_rates (struct hostapd_data *hapd, u8 *eid)
 
u8 * hostapd_eid_ext_supp_rates (struct hostapd_data *hapd, u8 *eid)
 
u16 hostapd_own_capab_info (struct hostapd_data *hapd)
 
int ieee802_11_mgmt (struct hostapd_data *hapd, const u8 *buf, size_t len, struct hostapd_frame_info *fi)
 process incoming IEEE 802.11 management frames More...
 
void ieee802_11_mgmt_cb (struct hostapd_data *hapd, const u8 *buf, size_t len, u16 stype, int ok)
 Process management frame TX status callback. More...
 
int ieee802_11_get_mib (struct hostapd_data *hapd, char *buf, size_t buflen)
 
int ieee802_11_get_mib_sta (struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen)
 
void hostapd_tx_status (struct hostapd_data *hapd, const u8 *addr, const u8 *buf, size_t len, int ack)
 
void hostapd_eapol_tx_status (struct hostapd_data *hapd, const u8 *dst, const u8 *data, size_t len, int ack)
 
void hostapd_client_poll_ok (struct hostapd_data *hapd, const u8 *addr)
 
void ieee802_11_rx_from_unknown (struct hostapd_data *hapd, const u8 *src, int wds)
 

Detailed Description

hostapd / IEEE 802.11 Management

Function Documentation

int ieee802_11_mgmt ( struct hostapd_data hapd,
const u8 *  buf,
size_t  len,
struct hostapd_frame_info fi 
)

process incoming IEEE 802.11 management frames

Parameters
hapdhostapd BSS data structure (the BSS to which the management frame was sent to)
bufmanagement frame data (starting from IEEE 802.11 header)
lenlength of frame data in octets
fimeta data about received frame (signal level, etc.)

Process all incoming IEEE 802.11 management frames. This will be called for each frame received from the kernel driver through wlan::ap interface. In addition, it can be called to re-inserted pending frames (e.g., when using external RADIUS server as an MAC ACL).

void ieee802_11_mgmt_cb ( struct hostapd_data hapd,
const u8 *  buf,
size_t  len,
u16  stype,
int  ok 
)

Process management frame TX status callback.

Parameters
hapdhostapd BSS data structure (the BSS from which the management frame was sent from)
bufmanagement frame data (starting from IEEE 802.11 header)
lenlength of frame data in octets
stypemanagement frame subtype from frame control field
okWhether the frame was ACK'ed