Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rtl871x_mlme.h File Reference
#include "osdep_service.h"
#include "drv_types.h"
#include "wlan_bssdef.h"

Go to the source code of this file.

Data Structures

struct  sitesurvey_ctrl
 
struct  mlme_priv
 

Macros

#define MAX_BSS_CNT   64
 
#define MAX_JOIN_TIMEOUT   6000
 
#define SCANNING_TIMEOUT   4500
 
#define SCANQUEUE_LIFETIME   20 /* unit:sec */
 
#define WIFI_NULL_STATE   0x00000000
 
#define WIFI_ASOC_STATE   0x00000001 /* Under Linked state...*/
 
#define WIFI_REASOC_STATE   0x00000002
 
#define WIFI_SLEEP_STATE   0x00000004
 
#define WIFI_STATION_STATE   0x00000008
 
#define WIFI_AP_STATE   0x00000010
 
#define WIFI_ADHOC_STATE   0x00000020
 
#define WIFI_ADHOC_MASTER_STATE   0x00000040
 
#define WIFI_UNDER_LINKING   0x00000080
 
#define WIFI_SITE_MONITOR
 
#define WIFI_MP_STATE   0x00010000
 
#define WIFI_MP_CTX_BACKGROUND   0x00020000 /* in cont. tx background*/
 
#define WIFI_MP_CTX_ST
 
#define WIFI_MP_CTX_BACKGROUND_PENDING
 
#define WIFI_MP_CTX_CCK_HW   0x00100000 /* in continuous tx*/
 
#define WIFI_MP_CTX_CCK_CS
 
#define WIFI_MP_LPBK_STATE   0x00400000
 
#define _FW_UNDER_LINKING   WIFI_UNDER_LINKING
 
#define _FW_LINKED   WIFI_ASOC_STATE
 
#define _FW_UNDER_SURVEY   WIFI_SITE_MONITOR
 
#define traffic_threshold   10
 
#define traffic_scan_period   500
 

Functions

void r8712_survey_event_callback (struct _adapter *adapter, u8 *pbuf)
 
void r8712_surveydone_event_callback (struct _adapter *adapter, u8 *pbuf)
 
void r8712_joinbss_event_callback (struct _adapter *adapter, u8 *pbuf)
 
void r8712_stassoc_event_callback (struct _adapter *adapter, u8 *pbuf)
 
void r8712_stadel_event_callback (struct _adapter *adapter, u8 *pbuf)
 
void r8712_atimdone_event_callback (struct _adapter *adapter, u8 *pbuf)
 
void r8712_cpwm_event_callback (struct _adapter *adapter, u8 *pbuf)
 
void r8712_wpspbc_event_callback (struct _adapter *adapter, u8 *pbuf)
 
void r8712_free_network_queue (struct _adapter *adapter)
 
int r8712_init_mlme_priv (struct _adapter *adapter)
 
void r8712_free_mlme_priv (struct mlme_priv *pmlmepriv)
 
sint r8712_select_and_join_from_scan (struct mlme_priv *pmlmepriv)
 
sint r8712_set_key (struct _adapter *adapter, struct security_priv *psecuritypriv, sint keyid)
 
sint r8712_set_auth (struct _adapter *adapter, struct security_priv *psecuritypriv)
 
uint r8712_get_ndis_wlan_bssid_ex_sz (struct ndis_wlan_bssid_ex *bss)
 
void r8712_generate_random_ibss (u8 *pibss)
 
u8r8712_get_capability_from_ie (u8 *ie)
 
struct wlan_networkr8712_get_oldest_wlan_network (struct __queue *scanned_queue)
 
void r8712_free_assoc_resources (struct _adapter *adapter)
 
void r8712_ind_disconnect (struct _adapter *adapter)
 
void r8712_indicate_connect (struct _adapter *adapter)
 
int r8712_restruct_sec_ie (struct _adapter *adapter, u8 *in_ie, u8 *out_ie, uint in_len)
 
int r8712_restruct_wmm_ie (struct _adapter *adapter, u8 *in_ie, u8 *out_ie, uint in_len, uint initial_out_len)
 
void r8712_init_registrypriv_dev_network (struct _adapter *adapter)
 
void r8712_update_registrypriv_dev_network (struct _adapter *adapter)
 
void _r8712_sitesurvey_ctrl_handler (struct _adapter *adapter)
 
void _r8712_join_timeout_handler (struct _adapter *adapter)
 
void r8712_scan_timeout_handler (struct _adapter *adapter)
 
void _r8712_dhcp_timeout_handler (struct _adapter *adapter)
 
void _r8712_wdg_timeout_handler (struct _adapter *adapter)
 
struct wlan_network_r8712_alloc_network (struct mlme_priv *pmlmepriv)
 
sint r8712_if_up (struct _adapter *padapter)
 
void r8712_joinbss_reset (struct _adapter *padapter)
 
unsigned int r8712_restructure_ht_ie (struct _adapter *padapter, u8 *in_ie, u8 *out_ie, uint in_len, uint *pout_len)
 
void r8712_issue_addbareq_cmd (struct _adapter *padapter, int priority)
 
int r8712_is_same_ibss (struct _adapter *adapter, struct wlan_network *pnetwork)
 

Macro Definition Documentation

#define _FW_LINKED   WIFI_ASOC_STATE

Definition at line 59 of file rtl871x_mlme.h.

#define _FW_UNDER_LINKING   WIFI_UNDER_LINKING

Definition at line 58 of file rtl871x_mlme.h.

#define _FW_UNDER_SURVEY   WIFI_SITE_MONITOR

Definition at line 60 of file rtl871x_mlme.h.

#define MAX_BSS_CNT   64

Definition at line 33 of file rtl871x_mlme.h.

#define MAX_JOIN_TIMEOUT   6000

Definition at line 34 of file rtl871x_mlme.h.

#define SCANNING_TIMEOUT   4500

Definition at line 36 of file rtl871x_mlme.h.

#define SCANQUEUE_LIFETIME   20 /* unit:sec */

Definition at line 38 of file rtl871x_mlme.h.

#define traffic_scan_period   500

Definition at line 73 of file rtl871x_mlme.h.

#define traffic_threshold   10

Definition at line 72 of file rtl871x_mlme.h.

#define WIFI_ADHOC_MASTER_STATE   0x00000040

Definition at line 47 of file rtl871x_mlme.h.

#define WIFI_ADHOC_STATE   0x00000020

Definition at line 46 of file rtl871x_mlme.h.

#define WIFI_AP_STATE   0x00000010

Definition at line 45 of file rtl871x_mlme.h.

#define WIFI_ASOC_STATE   0x00000001 /* Under Linked state...*/

Definition at line 41 of file rtl871x_mlme.h.

#define WIFI_MP_CTX_BACKGROUND   0x00020000 /* in cont. tx background*/

Definition at line 51 of file rtl871x_mlme.h.

#define WIFI_MP_CTX_BACKGROUND_PENDING
Value:
0x00080000 /* pending in cont, tx
* background due to out of skb*/

Definition at line 53 of file rtl871x_mlme.h.

#define WIFI_MP_CTX_CCK_CS
Value:
0x00200000 /* in cont, tx with carrier
* suppression*/

Definition at line 55 of file rtl871x_mlme.h.

#define WIFI_MP_CTX_CCK_HW   0x00100000 /* in continuous tx*/

Definition at line 54 of file rtl871x_mlme.h.

#define WIFI_MP_CTX_ST
Value:
0x00040000 /* in cont. tx with
* single-tone*/

Definition at line 52 of file rtl871x_mlme.h.

#define WIFI_MP_LPBK_STATE   0x00400000

Definition at line 56 of file rtl871x_mlme.h.

#define WIFI_MP_STATE   0x00010000

Definition at line 50 of file rtl871x_mlme.h.

#define WIFI_NULL_STATE   0x00000000

Definition at line 40 of file rtl871x_mlme.h.

#define WIFI_REASOC_STATE   0x00000002

Definition at line 42 of file rtl871x_mlme.h.

#define WIFI_SITE_MONITOR
Value:
0x00000800 /* to indicate the station
* is under site surveying*/

Definition at line 49 of file rtl871x_mlme.h.

#define WIFI_SLEEP_STATE   0x00000004

Definition at line 43 of file rtl871x_mlme.h.

#define WIFI_STATION_STATE   0x00000008

Definition at line 44 of file rtl871x_mlme.h.

#define WIFI_UNDER_LINKING   0x00000080

Definition at line 48 of file rtl871x_mlme.h.

Function Documentation

struct wlan_network* _r8712_alloc_network ( struct mlme_priv pmlmepriv)
read

Definition at line 84 of file rtl871x_mlme.c.

void _r8712_dhcp_timeout_handler ( struct _adapter adapter)

Definition at line 1124 of file rtl871x_mlme.c.

void _r8712_join_timeout_handler ( struct _adapter adapter)

Definition at line 1092 of file rtl871x_mlme.c.

void _r8712_sitesurvey_ctrl_handler ( struct _adapter adapter)

Definition at line 1071 of file rtl871x_mlme.c.

void _r8712_wdg_timeout_handler ( struct _adapter adapter)

Definition at line 1133 of file rtl871x_mlme.c.

void r8712_atimdone_event_callback ( struct _adapter adapter,
u8 pbuf 
)

Definition at line 501 of file rtl871x_mlme.c.

void r8712_cpwm_event_callback ( struct _adapter adapter,
u8 pbuf 
)

Definition at line 1025 of file rtl871x_mlme.c.

void r8712_free_assoc_resources ( struct _adapter adapter)

Definition at line 639 of file rtl871x_mlme.c.

void r8712_free_mlme_priv ( struct mlme_priv pmlmepriv)

Definition at line 235 of file rtl871x_mlme.c.

void r8712_free_network_queue ( struct _adapter adapter)

Definition at line 251 of file rtl871x_mlme.c.

void r8712_generate_random_ibss ( u8 pibss)

Definition at line 198 of file rtl871x_mlme.c.

u8* r8712_get_capability_from_ie ( u8 ie)

Definition at line 225 of file rtl871x_mlme.c.

uint r8712_get_ndis_wlan_bssid_ex_sz ( struct ndis_wlan_bssid_ex bss)

Definition at line 210 of file rtl871x_mlme.c.

struct wlan_network* r8712_get_oldest_wlan_network ( struct __queue scanned_queue)
read

Definition at line 310 of file rtl871x_mlme.c.

sint r8712_if_up ( struct _adapter padapter)

Definition at line 186 of file rtl871x_mlme.c.

void r8712_ind_disconnect ( struct _adapter adapter)

Definition at line 691 of file rtl871x_mlme.c.

void r8712_indicate_connect ( struct _adapter adapter)

Definition at line 675 of file rtl871x_mlme.c.

int r8712_init_mlme_priv ( struct _adapter adapter)

Definition at line 230 of file rtl871x_mlme.c.

void r8712_init_registrypriv_dev_network ( struct _adapter adapter)

Definition at line 1621 of file rtl871x_mlme.c.

int r8712_is_same_ibss ( struct _adapter adapter,
struct wlan_network pnetwork 
)

Definition at line 271 of file rtl871x_mlme.c.

void r8712_issue_addbareq_cmd ( struct _adapter padapter,
int  priority 
)

Definition at line 1808 of file rtl871x_mlme.c.

void r8712_joinbss_event_callback ( struct _adapter adapter,
u8 pbuf 
)

Definition at line 718 of file rtl871x_mlme.c.

void r8712_joinbss_reset ( struct _adapter padapter)

Definition at line 1682 of file rtl871x_mlme.c.

int r8712_restruct_sec_ie ( struct _adapter adapter,
u8 in_ie,
u8 out_ie,
uint  in_len 
)

Definition at line 1372 of file rtl871x_mlme.c.

int r8712_restruct_wmm_ie ( struct _adapter adapter,
u8 in_ie,
u8 out_ie,
uint  in_len,
uint  initial_out_len 
)

Definition at line 1314 of file rtl871x_mlme.c.

unsigned int r8712_restructure_ht_ie ( struct _adapter padapter,
u8 in_ie,
u8 out_ie,
uint  in_len,
uint pout_len 
)

Definition at line 1704 of file rtl871x_mlme.c.

void r8712_scan_timeout_handler ( struct _adapter adapter)

Definition at line 1113 of file rtl871x_mlme.c.

sint r8712_select_and_join_from_scan ( struct mlme_priv pmlmepriv)

Definition at line 1138 of file rtl871x_mlme.c.

sint r8712_set_auth ( struct _adapter adapter,
struct security_priv psecuritypriv 
)

Definition at line 1216 of file rtl871x_mlme.c.

sint r8712_set_key ( struct _adapter adapter,
struct security_priv psecuritypriv,
sint  keyid 
)

Definition at line 1246 of file rtl871x_mlme.c.

void r8712_stadel_event_callback ( struct _adapter adapter,
u8 pbuf 
)

Definition at line 972 of file rtl871x_mlme.c.

void r8712_stassoc_event_callback ( struct _adapter adapter,
u8 pbuf 
)

Definition at line 932 of file rtl871x_mlme.c.

void r8712_survey_event_callback ( struct _adapter adapter,
u8 pbuf 
)

Definition at line 505 of file rtl871x_mlme.c.

void r8712_surveydone_event_callback ( struct _adapter adapter,
u8 pbuf 
)

Definition at line 576 of file rtl871x_mlme.c.

void r8712_update_registrypriv_dev_network ( struct _adapter adapter)

Definition at line 1640 of file rtl871x_mlme.c.

void r8712_wpspbc_event_callback ( struct _adapter adapter,
u8 pbuf 
)

Definition at line 1065 of file rtl871x_mlme.c.