#include <linux/list.h>
#include <linux/types.h>
#include <linux/if_ether.h>
#include <linux/workqueue.h>
#include <linux/average.h>
#include "key.h"
Go to the source code of this file.
#define ADDBA_RESP_INTERVAL HZ |
Definition at line 77 of file kernel-3.2/sta_info.h.
#define for_each_sta_info | ( | local, | |
_addr, | |||
_sta, | |||
nxt | |||
) |
for ( /* initialise loop */ \ _sta = rcu_dereference(local->sta_hash[STA_HASH(_addr)]),\ nxt = _sta ? rcu_dereference(_sta->hnext) : NULL; \ /* typecheck */ \ for_each_sta_info_type_check(local, (_addr), _sta, nxt),\ /* continue condition */ \ _sta; \ /* advance loop */ \ _sta = nxt, \ nxt = _sta ? rcu_dereference(_sta->hnext) : NULL \ ) \ /* run code only if address matches and it's not a dummy sta */ \ if (memcmp(_sta->sta.addr, (_addr), ETH_ALEN) == 0 && \ !_sta->dummy)
Definition at line 442 of file kernel-3.2/sta_info.h.
#define for_each_sta_info_rx | ( | local, | |
_addr, | |||
_sta, | |||
nxt | |||
) |
for ( /* initialise loop */ \ _sta = rcu_dereference(local->sta_hash[STA_HASH(_addr)]),\ nxt = _sta ? rcu_dereference(_sta->hnext) : NULL; \ /* typecheck */ \ for_each_sta_info_type_check(local, (_addr), _sta, nxt),\ /* continue condition */ \ _sta; \ /* advance loop */ \ _sta = nxt, \ nxt = _sta ? rcu_dereference(_sta->hnext) : NULL \ ) \ /* compare address and run code only if it matches */ \ if (memcmp(_sta->sta.addr, (_addr), ETH_ALEN) == 0)
Definition at line 458 of file kernel-3.2/sta_info.h.
#define HT_AGG_MAX_RETRIES 0x3 |
Definition at line 78 of file kernel-3.2/sta_info.h.
#define HT_AGG_STATE_DRV_READY 0 |
Definition at line 80 of file kernel-3.2/sta_info.h.
#define HT_AGG_STATE_OPERATIONAL 2 |
Definition at line 82 of file kernel-3.2/sta_info.h.
#define HT_AGG_STATE_RESPONSE_RECEIVED 1 |
Definition at line 81 of file kernel-3.2/sta_info.h.
#define HT_AGG_STATE_STOPPING 3 |
Definition at line 83 of file kernel-3.2/sta_info.h.
#define HT_AGG_STATE_WANT_START 4 |
Definition at line 84 of file kernel-3.2/sta_info.h.
#define HT_AGG_STATE_WANT_STOP 5 |
Definition at line 85 of file kernel-3.2/sta_info.h.
#define STA_HASH | ( | sta | ) | (sta[5]) |
Definition at line 405 of file kernel-3.2/sta_info.h.
#define STA_HASH_SIZE 256 |
Definition at line 404 of file kernel-3.2/sta_info.h.
#define STA_INFO_CLEANUP_INTERVAL (10 * HZ) |
Definition at line 417 of file kernel-3.2/sta_info.h.
#define STA_MAX_TX_BUFFER 64 |
Definition at line 409 of file kernel-3.2/sta_info.h.
#define STA_TID_NUM 16 |
Definition at line 76 of file kernel-3.2/sta_info.h.
#define STA_TX_BUFFER_EXPIRE (10 * HZ) |
Definition at line 413 of file kernel-3.2/sta_info.h.
enum ieee80211_sta_info_flags - Stations flags
These flags are used with &struct sta_info's member, but only indirectly with set_sta_flag() and friends.
: Station is authenticated. : Station is associated. : Station is in power-save mode : Station is authorized to send/receive traffic. This bit is always checked so needs to be enabled for all stations when virtual port control is not in use. : Station is capable of receiving short-preamble frames. : We're associated to that station, it is an AP. : Station is a QoS-STA. : Station is one of our WDS peers. : Clear PS filter in hardware (using the IEEE80211_TX_CTL_CLEAR_PS_FILT control flag) when the next frame to this station is transmitted. : Management frame protection is used with this STA. : Used to deny ADDBA requests (both TX and RX) during suspend/resume and station removal. : driver requires keeping this station in power-save mode logically to flush frames that might still be in the queues : Station sent PS-poll while driver was keeping station in power-save mode, reply when the driver unblocks. : Station is a TDLS peer. : This TDLS peer is authorized to send direct packets. This means the link is enabled. : Station requested unscheduled SP while driver was keeping station in power-save mode, reply when the driver unblocks the station. : Station is in a service period, so don't try to reply to other uAPSD trigger frames or PS-Poll.
Definition at line 56 of file kernel-3.2/sta_info.h.
static void clear_sta_flag | ( | struct sta_info * | sta, |
enum ieee80211_sta_info_flags | flag | ||
) | [inline, static] |
Definition at line 375 of file kernel-3.2/sta_info.h.
static void for_each_sta_info_type_check | ( | struct ieee80211_local * | local, |
const u8 * | addr, | ||
struct sta_info * | sta, | ||
struct sta_info * | nxt | ||
) | [inline, static] |
Definition at line 435 of file kernel-3.2/sta_info.h.
void ieee80211_assign_tid_tx | ( | struct sta_info * | sta, |
int | tid, | ||
struct tid_ampdu_tx * | tid_tx | ||
) |
Definition at line 138 of file kernel-3.2/agg-tx.c.
void ieee80211_sta_expire | ( | struct ieee80211_sub_if_data * | sdata, |
unsigned long | exp_time | ||
) |
Definition at line 1057 of file kernel-3.2/sta_info.c.
void ieee80211_sta_ps_deliver_poll_response | ( | struct sta_info * | sta | ) |
Definition at line 1415 of file kernel-3.2/sta_info.c.
void ieee80211_sta_ps_deliver_uapsd | ( | struct sta_info * | sta | ) |
Definition at line 1431 of file kernel-3.2/sta_info.c.
void ieee80211_sta_ps_deliver_wakeup | ( | struct sta_info * | sta | ) |
Definition at line 1126 of file kernel-3.2/sta_info.c.
static struct tid_ampdu_tx* rcu_dereference_protected_tid_tx | ( | struct sta_info * | sta, |
int | tid | ||
) | [static, read] |
Definition at line 397 of file kernel-3.2/sta_info.h.
static void set_sta_flag | ( | struct sta_info * | sta, |
enum ieee80211_sta_info_flags | flag | ||
) | [inline, static] |
Definition at line 369 of file kernel-3.2/sta_info.h.
struct sta_info* sta_info_alloc | ( | struct ieee80211_sub_if_data * | sdata, |
u8 * | addr, | ||
gfp_t | gfp | ||
) | [read] |
Definition at line 282 of file kernel-3.2/sta_info.c.
int sta_info_destroy_addr | ( | struct ieee80211_sub_if_data * | sdata, |
const u8 * | addr | ||
) |
Definition at line 961 of file kernel-3.2/sta_info.c.
int sta_info_destroy_addr_bss | ( | struct ieee80211_sub_if_data * | sdata, |
const u8 * | addr | ||
) |
Definition at line 974 of file kernel-3.2/sta_info.c.
int sta_info_flush | ( | struct ieee80211_local * | local, |
struct ieee80211_sub_if_data * | sdata | ||
) |
sta_info_flush - flush matching STA entries from the STA table
Returns the number of removed STA entries.
: local interface data : matching rule for the net device (sta->dev) or NULL to match all STAs
Definition at line 1036 of file kernel-3.2/sta_info.c.
struct sta_info* sta_info_get | ( | struct ieee80211_sub_if_data * | sdata, |
const u8 * | addr | ||
) | [read] |
Definition at line 94 of file kernel-3.2/sta_info.c.
struct sta_info* sta_info_get_bss | ( | struct ieee80211_sub_if_data * | sdata, |
const u8 * | addr | ||
) | [read] |
Definition at line 139 of file kernel-3.2/sta_info.c.
struct sta_info* sta_info_get_bss_rx | ( | struct ieee80211_sub_if_data * | sdata, |
const u8 * | addr | ||
) | [read] |
Definition at line 165 of file kernel-3.2/sta_info.c.
struct sta_info* sta_info_get_by_idx | ( | struct ieee80211_sub_if_data * | sdata, |
int | idx | ||
) | [read] |
Definition at line 186 of file kernel-3.2/sta_info.c.
struct sta_info* sta_info_get_rx | ( | struct ieee80211_sub_if_data * | sdata, |
const u8 * | addr | ||
) | [read] |
Definition at line 115 of file kernel-3.2/sta_info.c.
void sta_info_init | ( | struct ieee80211_local * | local | ) |
Definition at line 1010 of file kernel-3.2/sta_info.c.
int sta_info_insert | ( | struct sta_info * | sta | ) |
Definition at line 609 of file kernel-3.2/sta_info.c.
int sta_info_insert_atomic | ( | struct sta_info * | sta | ) |
int sta_info_insert_rcu | ( | struct sta_info * | sta | ) |
Definition at line 560 of file kernel-3.2/sta_info.c.
void sta_info_recalc_tim | ( | struct sta_info * | sta | ) |
Definition at line 673 of file kernel-3.2/sta_info.c.
int sta_info_reinsert | ( | struct sta_info * | sta | ) |
Definition at line 619 of file kernel-3.2/sta_info.c.
void sta_info_stop | ( | struct ieee80211_local * | local | ) |
Definition at line 1022 of file kernel-3.2/sta_info.c.
static enum nl80211_plink_state sta_plink_state | ( | struct sta_info * | sta | ) | [inline, static] |
Definition at line 361 of file kernel-3.2/sta_info.h.
static int test_and_clear_sta_flag | ( | struct sta_info * | sta, |
enum ieee80211_sta_info_flags | flag | ||
) | [inline, static] |
Definition at line 387 of file kernel-3.2/sta_info.h.
static int test_sta_flag | ( | struct sta_info * | sta, |
enum ieee80211_sta_info_flags | flag | ||
) | [inline, static] |
Definition at line 381 of file kernel-3.2/sta_info.h.