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

hostapd / Station table More...

#include "list.h"

Go to the source code of this file.

Data Structures

struct  sta_info
 

Macros

#define WLAN_STA_AUTH   BIT(0)
 
#define WLAN_STA_ASSOC   BIT(1)
 
#define WLAN_STA_AUTHORIZED   BIT(5)
 
#define WLAN_STA_PENDING_POLL   BIT(6) /* pending activity poll not ACKed */
 
#define WLAN_STA_SHORT_PREAMBLE   BIT(7)
 
#define WLAN_STA_PREAUTH   BIT(8)
 
#define WLAN_STA_WMM   BIT(9)
 
#define WLAN_STA_MFP   BIT(10)
 
#define WLAN_STA_HT   BIT(11)
 
#define WLAN_STA_WPS   BIT(12)
 
#define WLAN_STA_MAYBE_WPS   BIT(13)
 
#define WLAN_STA_WDS   BIT(14)
 
#define WLAN_STA_ASSOC_REQ_OK   BIT(15)
 
#define WLAN_STA_WPS2   BIT(16)
 
#define WLAN_STA_GAS   BIT(17)
 
#define WLAN_STA_VHT   BIT(18)
 
#define WLAN_STA_WNM_SLEEP_MODE   BIT(19)
 
#define WLAN_STA_VHT_OPMODE_ENABLED   BIT(20)
 
#define WLAN_STA_VENDOR_VHT   BIT(21)
 
#define WLAN_STA_PENDING_DISASSOC_CB   BIT(29)
 
#define WLAN_STA_PENDING_DEAUTH_CB   BIT(30)
 
#define WLAN_STA_NONERP   BIT(31)
 
#define WLAN_SUPP_RATES_MAX   32
 
#define AP_MAX_INACTIVITY   (5 * 60)
 
#define AP_DISASSOC_DELAY   (1)
 
#define AP_DEAUTH_DELAY   (1)
 
#define AP_MAX_INACTIVITY_AFTER_DISASSOC   (1 * 30)
 
#define AP_MAX_INACTIVITY_AFTER_DEAUTH   (1 * 5)
 

Functions

int ap_for_each_sta (struct hostapd_data *hapd, int(*cb)(struct hostapd_data *hapd, struct sta_info *sta, void *ctx), void *ctx)
 
struct sta_infoap_get_sta (struct hostapd_data *hapd, const u8 *sta)
 
struct sta_infoap_get_sta_p2p (struct hostapd_data *hapd, const u8 *addr)
 
void ap_sta_hash_add (struct hostapd_data *hapd, struct sta_info *sta)
 
void ap_free_sta (struct hostapd_data *hapd, struct sta_info *sta)
 
void ap_sta_ip6addr_del (struct hostapd_data *hapd, struct sta_info *sta)
 
void hostapd_free_stas (struct hostapd_data *hapd)
 
void ap_handle_timer (void *eloop_ctx, void *timeout_ctx)
 Per STA timer handler. More...
 
void ap_sta_replenish_timeout (struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout)
 
void ap_sta_session_timeout (struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout)
 
void ap_sta_no_session_timeout (struct hostapd_data *hapd, struct sta_info *sta)
 
void ap_sta_session_warning_timeout (struct hostapd_data *hapd, struct sta_info *sta, int warning_time)
 
struct sta_infoap_sta_add (struct hostapd_data *hapd, const u8 *addr)
 
void ap_sta_disassociate (struct hostapd_data *hapd, struct sta_info *sta, u16 reason)
 
void ap_sta_deauthenticate (struct hostapd_data *hapd, struct sta_info *sta, u16 reason)
 
int ap_sta_bind_vlan (struct hostapd_data *hapd, struct sta_info *sta)
 
void ap_sta_start_sa_query (struct hostapd_data *hapd, struct sta_info *sta)
 
void ap_sta_stop_sa_query (struct hostapd_data *hapd, struct sta_info *sta)
 
int ap_check_sa_query_timeout (struct hostapd_data *hapd, struct sta_info *sta)
 
void ap_sta_disconnect (struct hostapd_data *hapd, struct sta_info *sta, const u8 *addr, u16 reason)
 
void ap_sta_set_authorized (struct hostapd_data *hapd, struct sta_info *sta, int authorized)
 
void ap_sta_deauth_cb (struct hostapd_data *hapd, struct sta_info *sta)
 
void ap_sta_disassoc_cb (struct hostapd_data *hapd, struct sta_info *sta)
 
int ap_sta_flags_txt (u32 flags, char *buf, size_t buflen)
 

Detailed Description

hostapd / Station table

Function Documentation

void ap_handle_timer ( void *  eloop_ctx,
void *  timeout_ctx 
)

Per STA timer handler.

Parameters
eloop_ctxstruct hostapd_data *
timeout_ctxstruct sta_info *

This function is called to check station activity and to remove inactive stations.