Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ieee80211_softmac.c File Reference
#include "ieee80211.h"
#include <linux/random.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include <linux/etherdevice.h>
#include "dot11d.h"

Go to the source code of this file.

Macros

#define DRV_NAME   "Ieee80211"
 
#define AUTH_ALG_OPEN_SYSTEM   0x1
 
#define AUTH_ALG_SHARED_KEY   0x2
 

Functions

short ieee80211_is_54g (const struct ieee80211_network *net)
 
short ieee80211_is_shortslot (const struct ieee80211_network *net)
 
unsigned int ieee80211_MFIE_rate_len (struct ieee80211_device *ieee)
 
void ieee80211_MFIE_Brate (struct ieee80211_device *ieee, u8 **tag_p)
 
void ieee80211_MFIE_Grate (struct ieee80211_device *ieee, u8 **tag_p)
 
void ieee80211_WMM_Info (struct ieee80211_device *ieee, u8 **tag_p)
 
void enqueue_mgmt (struct ieee80211_device *ieee, struct sk_buff *skb)
 
struct sk_buffdequeue_mgmt (struct ieee80211_device *ieee)
 
void init_mgmt_queue (struct ieee80211_device *ieee)
 
u8 MgntQuery_MgntFrameTxRate (struct ieee80211_device *ieee)
 
void ieee80211_sta_wakeup (struct ieee80211_device *ieee, short nl)
 
void softmac_mgmt_xmit (struct sk_buff *skb, struct ieee80211_device *ieee)
 
void softmac_ps_mgmt_xmit (struct sk_buff *skb, struct ieee80211_device *ieee)
 
struct sk_buffieee80211_probe_req (struct ieee80211_device *ieee)
 
struct sk_buffieee80211_get_beacon_ (struct ieee80211_device *ieee)
 
void ieee80211_send_beacon (struct ieee80211_device *ieee)
 
void ieee80211_send_beacon_cb (unsigned long _ieee)
 
void ieee80211_send_probe (struct ieee80211_device *ieee)
 
void ieee80211_send_probe_requests (struct ieee80211_device *ieee)
 
void ieee80211_softmac_scan_syncro (struct ieee80211_device *ieee)
 
void ieee80211_softmac_scan_wq (struct work_struct *work)
 
void ieee80211_beacons_start (struct ieee80211_device *ieee)
 
void ieee80211_beacons_stop (struct ieee80211_device *ieee)
 
void ieee80211_stop_send_beacons (struct ieee80211_device *ieee)
 
void ieee80211_start_send_beacons (struct ieee80211_device *ieee)
 
void ieee80211_softmac_stop_scan (struct ieee80211_device *ieee)
 
void ieee80211_stop_scan (struct ieee80211_device *ieee)
 
void ieee80211_start_scan (struct ieee80211_device *ieee)
 
void ieee80211_start_scan_syncro (struct ieee80211_device *ieee)
 
struct sk_buffieee80211_authentication_req (struct ieee80211_network *beacon, struct ieee80211_device *ieee, int challengelen)
 
struct sk_buffieee80211_assoc_resp (struct ieee80211_device *ieee, u8 *dest)
 
struct sk_buffieee80211_auth_resp (struct ieee80211_device *ieee, int status, u8 *dest)
 
struct sk_buffieee80211_null_func (struct ieee80211_device *ieee, short pwr)
 
void ieee80211_resp_to_assoc_rq (struct ieee80211_device *ieee, u8 *dest)
 
void ieee80211_resp_to_auth (struct ieee80211_device *ieee, int s, u8 *dest)
 
void ieee80211_resp_to_probe (struct ieee80211_device *ieee, u8 *dest)
 
struct sk_buffieee80211_association_req (struct ieee80211_network *beacon, struct ieee80211_device *ieee)
 
void ieee80211_associate_abort (struct ieee80211_device *ieee)
 
void ieee80211_associate_abort_cb (unsigned long dev)
 
void ieee80211_associate_step1 (struct ieee80211_device *ieee)
 
void ieee80211_auth_challenge (struct ieee80211_device *ieee, u8 *challenge, int chlen)
 
void ieee80211_associate_step2 (struct ieee80211_device *ieee)
 
void ieee80211_associate_complete_wq (struct work_struct *work)
 
void ieee80211_associate_complete (struct ieee80211_device *ieee)
 
void ieee80211_associate_procedure_wq (struct work_struct *work)
 
void ieee80211_softmac_new_net (struct ieee80211_device *ieee, struct ieee80211_network *net)
 
void ieee80211_softmac_check_all_nets (struct ieee80211_device *ieee)
 
int auth_rq_parse (struct sk_buff *skb, u8 *dest)
 
int assoc_rq_parse (struct sk_buff *skb, u8 *dest)
 
void ieee80211_sta_ps_send_null_frame (struct ieee80211_device *ieee, short pwr)
 
short ieee80211_sta_ps_sleep (struct ieee80211_device *ieee, u32 *time_h, u32 *time_l)
 
void ieee80211_sta_ps (struct ieee80211_device *ieee)
 
void ieee80211_ps_tx_ack (struct ieee80211_device *ieee, short success)
 
void ieee80211_process_action (struct ieee80211_device *ieee, struct sk_buff *skb)
 
int ieee80211_rx_frame_softmac (struct ieee80211_device *ieee, struct sk_buff *skb, struct ieee80211_rx_stats *rx_stats, u16 type, u16 stype)
 
void ieee80211_softmac_xmit (struct ieee80211_txb *txb, struct ieee80211_device *ieee)
 
void ieee80211_resume_tx (struct ieee80211_device *ieee)
 
void ieee80211_reset_queue (struct ieee80211_device *ieee)
 
void ieee80211_wake_queue (struct ieee80211_device *ieee)
 
void ieee80211_stop_queue (struct ieee80211_device *ieee)
 
void ieee80211_randomize_cell (struct ieee80211_device *ieee)
 
void ieee80211_start_master_bss (struct ieee80211_device *ieee)
 
void ieee80211_start_monitor_mode (struct ieee80211_device *ieee)
 
void ieee80211_start_ibss_wq (struct work_struct *work)
 
void ieee80211_start_ibss (struct ieee80211_device *ieee)
 
void ieee80211_start_bss (struct ieee80211_device *ieee)
 
void ieee80211_disassociate (struct ieee80211_device *ieee)
 
void ieee80211_associate_retry_wq (struct work_struct *work)
 
struct sk_buffieee80211_get_beacon (struct ieee80211_device *ieee)
 
void ieee80211_softmac_stop_protocol (struct ieee80211_device *ieee)
 
void ieee80211_stop_protocol (struct ieee80211_device *ieee)
 
void ieee80211_softmac_start_protocol (struct ieee80211_device *ieee)
 
void ieee80211_start_protocol (struct ieee80211_device *ieee)
 
void ieee80211_softmac_init (struct ieee80211_device *ieee)
 
void ieee80211_softmac_free (struct ieee80211_device *ieee)
 
void ieee80211_wpa_assoc_frame (struct ieee80211_device *ieee, char *wpa_ie, int wpa_ie_len)
 
struct sk_buffieee80211_disassociate_skb (struct ieee80211_network *beacon, struct ieee80211_device *ieee, u8 asRsn)
 
void SendDisassociation (struct ieee80211_device *ieee, u8 *asSta, u8 asRsn)
 
int ieee80211_wpa_supplicant_ioctl (struct ieee80211_device *ieee, struct iw_point *p)
 
void notify_wx_assoc_event (struct ieee80211_device *ieee)
 
 EXPORT_SYMBOL (ieee80211_get_beacon)
 
 EXPORT_SYMBOL (ieee80211_wake_queue)
 
 EXPORT_SYMBOL (ieee80211_stop_queue)
 
 EXPORT_SYMBOL (ieee80211_reset_queue)
 
 EXPORT_SYMBOL (ieee80211_softmac_stop_protocol)
 
 EXPORT_SYMBOL (ieee80211_softmac_start_protocol)
 
 EXPORT_SYMBOL (ieee80211_is_shortslot)
 
 EXPORT_SYMBOL (ieee80211_is_54g)
 
 EXPORT_SYMBOL (ieee80211_wpa_supplicant_ioctl)
 
 EXPORT_SYMBOL (ieee80211_ps_tx_ack)
 
 EXPORT_SYMBOL (ieee80211_softmac_xmit)
 
 EXPORT_SYMBOL (ieee80211_stop_send_beacons)
 
 EXPORT_SYMBOL (notify_wx_assoc_event)
 
 EXPORT_SYMBOL (SendDisassociation)
 
 EXPORT_SYMBOL (ieee80211_disassociate)
 
 EXPORT_SYMBOL (ieee80211_start_send_beacons)
 
 EXPORT_SYMBOL (ieee80211_stop_scan)
 
 EXPORT_SYMBOL (ieee80211_send_probe_requests)
 
 EXPORT_SYMBOL (ieee80211_softmac_scan_syncro)
 
 EXPORT_SYMBOL (ieee80211_start_scan_syncro)
 

Variables

u8 rsn_authen_cipher_suite [16][4]
 

Macro Definition Documentation

#define AUTH_ALG_OPEN_SYSTEM   0x1

Definition at line 2835 of file ieee80211_softmac.c.

#define AUTH_ALG_SHARED_KEY   0x2

Definition at line 2836 of file ieee80211_softmac.c.

#define DRV_NAME   "Ieee80211"

Definition at line 2669 of file ieee80211_softmac.c.

Function Documentation

int assoc_rq_parse ( struct sk_buff skb,
u8 dest 
)

Definition at line 1621 of file ieee80211_softmac.c.

int auth_rq_parse ( struct sk_buff skb,
u8 dest 
)

Definition at line 1565 of file ieee80211_softmac.c.

struct sk_buff* dequeue_mgmt ( struct ieee80211_device ieee)
read

Definition at line 169 of file ieee80211_softmac.c.

void enqueue_mgmt ( struct ieee80211_device ieee,
struct sk_buff skb 
)

Definition at line 151 of file ieee80211_softmac.c.

EXPORT_SYMBOL ( ieee80211_get_beacon  )
EXPORT_SYMBOL ( ieee80211_wake_queue  )
EXPORT_SYMBOL ( ieee80211_stop_queue  )
EXPORT_SYMBOL ( ieee80211_reset_queue  )
EXPORT_SYMBOL ( ieee80211_softmac_stop_protocol  )
EXPORT_SYMBOL ( ieee80211_softmac_start_protocol  )
EXPORT_SYMBOL ( ieee80211_is_shortslot  )
EXPORT_SYMBOL ( ieee80211_is_54g  )
EXPORT_SYMBOL ( ieee80211_wpa_supplicant_ioctl  )
EXPORT_SYMBOL ( ieee80211_ps_tx_ack  )
EXPORT_SYMBOL ( ieee80211_softmac_xmit  )
EXPORT_SYMBOL ( ieee80211_stop_send_beacons  )
EXPORT_SYMBOL ( notify_wx_assoc_event  )
EXPORT_SYMBOL ( SendDisassociation  )
EXPORT_SYMBOL ( ieee80211_disassociate  )
EXPORT_SYMBOL ( ieee80211_start_send_beacons  )
EXPORT_SYMBOL ( ieee80211_stop_scan  )
EXPORT_SYMBOL ( ieee80211_send_probe_requests  )
EXPORT_SYMBOL ( ieee80211_softmac_scan_syncro  )
EXPORT_SYMBOL ( ieee80211_start_scan_syncro  )
struct sk_buff* ieee80211_assoc_resp ( struct ieee80211_device ieee,
u8 dest 
)
read

Definition at line 844 of file ieee80211_softmac.c.

void ieee80211_associate_abort ( struct ieee80211_device ieee)

Definition at line 1223 of file ieee80211_softmac.c.

void ieee80211_associate_abort_cb ( unsigned long  dev)

Definition at line 1253 of file ieee80211_softmac.c.

void ieee80211_associate_complete ( struct ieee80211_device ieee)

Definition at line 1381 of file ieee80211_softmac.c.

void ieee80211_associate_complete_wq ( struct work_struct work)

Definition at line 1334 of file ieee80211_softmac.c.

void ieee80211_associate_procedure_wq ( struct work_struct work)

Definition at line 1392 of file ieee80211_softmac.c.

void ieee80211_associate_retry_wq ( struct work_struct work)

Definition at line 2504 of file ieee80211_softmac.c.

void ieee80211_associate_step1 ( struct ieee80211_device ieee)

Definition at line 1259 of file ieee80211_softmac.c.

void ieee80211_associate_step2 ( struct ieee80211_device ieee)

Definition at line 1315 of file ieee80211_softmac.c.

struct sk_buff* ieee80211_association_req ( struct ieee80211_network beacon,
struct ieee80211_device ieee 
)
read

Definition at line 981 of file ieee80211_softmac.c.

void ieee80211_auth_challenge ( struct ieee80211_device ieee,
u8 challenge,
int  chlen 
)

Definition at line 1285 of file ieee80211_softmac.c.

struct sk_buff* ieee80211_auth_resp ( struct ieee80211_device ieee,
int  status,
u8 dest 
)
read

Definition at line 899 of file ieee80211_softmac.c.

struct sk_buff* ieee80211_authentication_req ( struct ieee80211_network beacon,
struct ieee80211_device ieee,
int  challengelen 
)
read

Definition at line 649 of file ieee80211_softmac.c.

void ieee80211_beacons_start ( struct ieee80211_device ieee)

Definition at line 541 of file ieee80211_softmac.c.

void ieee80211_beacons_stop ( struct ieee80211_device ieee)

Definition at line 552 of file ieee80211_softmac.c.

void ieee80211_disassociate ( struct ieee80211_device ieee)

Definition at line 2485 of file ieee80211_softmac.c.

struct sk_buff* ieee80211_disassociate_skb ( struct ieee80211_network beacon,
struct ieee80211_device ieee,
u8  asRsn 
)
read

Definition at line 3099 of file ieee80211_softmac.c.

struct sk_buff* ieee80211_get_beacon ( struct ieee80211_device ieee)
read

Definition at line 2564 of file ieee80211_softmac.c.

struct sk_buff* ieee80211_get_beacon_ ( struct ieee80211_device ieee)
read
short ieee80211_is_54g ( const struct ieee80211_network net)

Definition at line 36 of file ieee80211_softmac.c.

short ieee80211_is_shortslot ( const struct ieee80211_network net)

Definition at line 41 of file ieee80211_softmac.c.

void ieee80211_MFIE_Brate ( struct ieee80211_device ieee,
u8 **  tag_p 
)

Definition at line 68 of file ieee80211_softmac.c.

void ieee80211_MFIE_Grate ( struct ieee80211_device ieee,
u8 **  tag_p 
)

Definition at line 85 of file ieee80211_softmac.c.

unsigned int ieee80211_MFIE_rate_len ( struct ieee80211_device ieee)

Definition at line 50 of file ieee80211_softmac.c.

struct sk_buff* ieee80211_null_func ( struct ieee80211_device ieee,
short  pwr 
)
read

Definition at line 927 of file ieee80211_softmac.c.

struct sk_buff* ieee80211_probe_req ( struct ieee80211_device ieee)
read

Definition at line 329 of file ieee80211_softmac.c.

void ieee80211_process_action ( struct ieee80211_device ieee,
struct sk_buff skb 
)

Definition at line 1891 of file ieee80211_softmac.c.

void ieee80211_ps_tx_ack ( struct ieee80211_device ieee,
short  success 
)

Definition at line 1864 of file ieee80211_softmac.c.

void ieee80211_randomize_cell ( struct ieee80211_device ieee)
inline

Definition at line 2288 of file ieee80211_softmac.c.

void ieee80211_reset_queue ( struct ieee80211_device ieee)

Definition at line 2217 of file ieee80211_softmac.c.

void ieee80211_resp_to_assoc_rq ( struct ieee80211_device ieee,
u8 dest 
)

Definition at line 953 of file ieee80211_softmac.c.

void ieee80211_resp_to_auth ( struct ieee80211_device ieee,
int  s,
u8 dest 
)

Definition at line 962 of file ieee80211_softmac.c.

void ieee80211_resp_to_probe ( struct ieee80211_device ieee,
u8 dest 
)

Definition at line 971 of file ieee80211_softmac.c.

void ieee80211_resume_tx ( struct ieee80211_device ieee)

Definition at line 2192 of file ieee80211_softmac.c.

int ieee80211_rx_frame_softmac ( struct ieee80211_device ieee,
struct sk_buff skb,
struct ieee80211_rx_stats rx_stats,
u16  type,
u16  stype 
)
inline

Definition at line 1923 of file ieee80211_softmac.c.

void ieee80211_send_beacon ( struct ieee80211_device ieee)

Definition at line 368 of file ieee80211_softmac.c.

void ieee80211_send_beacon_cb ( unsigned long  _ieee)

Definition at line 394 of file ieee80211_softmac.c.

void ieee80211_send_probe ( struct ieee80211_device ieee)

Definition at line 406 of file ieee80211_softmac.c.

void ieee80211_send_probe_requests ( struct ieee80211_device ieee)

Definition at line 418 of file ieee80211_softmac.c.

void ieee80211_softmac_check_all_nets ( struct ieee80211_device ieee)

Definition at line 1514 of file ieee80211_softmac.c.

void ieee80211_softmac_free ( struct ieee80211_device ieee)

Definition at line 2746 of file ieee80211_softmac.c.

void ieee80211_softmac_init ( struct ieee80211_device ieee)

Definition at line 2670 of file ieee80211_softmac.c.

void ieee80211_softmac_new_net ( struct ieee80211_device ieee,
struct ieee80211_network net 
)
inline

Definition at line 1412 of file ieee80211_softmac.c.

void ieee80211_softmac_scan_syncro ( struct ieee80211_device ieee)

Definition at line 429 of file ieee80211_softmac.c.

void ieee80211_softmac_scan_wq ( struct work_struct work)

Definition at line 497 of file ieee80211_softmac.c.

void ieee80211_softmac_start_protocol ( struct ieee80211_device ieee)

Definition at line 2610 of file ieee80211_softmac.c.

void ieee80211_softmac_stop_protocol ( struct ieee80211_device ieee)

Definition at line 2584 of file ieee80211_softmac.c.

void ieee80211_softmac_stop_scan ( struct ieee80211_device ieee)

Definition at line 584 of file ieee80211_softmac.c.

void ieee80211_softmac_xmit ( struct ieee80211_txb txb,
struct ieee80211_device ieee 
)

Definition at line 2135 of file ieee80211_softmac.c.

void ieee80211_sta_ps ( struct ieee80211_device ieee)
inline

Definition at line 1774 of file ieee80211_softmac.c.

void ieee80211_sta_ps_send_null_frame ( struct ieee80211_device ieee,
short  pwr 
)

Definition at line 1715 of file ieee80211_softmac.c.

short ieee80211_sta_ps_sleep ( struct ieee80211_device ieee,
u32 time_h,
u32 time_l 
)

Definition at line 1726 of file ieee80211_softmac.c.

void ieee80211_sta_wakeup ( struct ieee80211_device ieee,
short  nl 
)
void ieee80211_start_bss ( struct ieee80211_device ieee)

Definition at line 2447 of file ieee80211_softmac.c.

void ieee80211_start_ibss ( struct ieee80211_device ieee)
inline

Definition at line 2441 of file ieee80211_softmac.c.

void ieee80211_start_ibss_wq ( struct work_struct work)

Definition at line 2331 of file ieee80211_softmac.c.

void ieee80211_start_master_bss ( struct ieee80211_device ieee)

Definition at line 2295 of file ieee80211_softmac.c.

void ieee80211_start_monitor_mode ( struct ieee80211_device ieee)

Definition at line 2321 of file ieee80211_softmac.c.

void ieee80211_start_protocol ( struct ieee80211_device ieee)

Definition at line 2618 of file ieee80211_softmac.c.

void ieee80211_start_scan ( struct ieee80211_device ieee)

Definition at line 612 of file ieee80211_softmac.c.

void ieee80211_start_scan_syncro ( struct ieee80211_device ieee)

Definition at line 632 of file ieee80211_softmac.c.

void ieee80211_start_send_beacons ( struct ieee80211_device ieee)

Definition at line 575 of file ieee80211_softmac.c.

void ieee80211_stop_protocol ( struct ieee80211_device ieee)

Definition at line 2593 of file ieee80211_softmac.c.

void ieee80211_stop_queue ( struct ieee80211_device ieee)

Definition at line 2273 of file ieee80211_softmac.c.

void ieee80211_stop_scan ( struct ieee80211_device ieee)

Definition at line 603 of file ieee80211_softmac.c.

void ieee80211_stop_send_beacons ( struct ieee80211_device ieee)

Definition at line 566 of file ieee80211_softmac.c.

void ieee80211_wake_queue ( struct ieee80211_device ieee)

Definition at line 2232 of file ieee80211_softmac.c.

void ieee80211_WMM_Info ( struct ieee80211_device ieee,
u8 **  tag_p 
)

Definition at line 109 of file ieee80211_softmac.c.

void ieee80211_wpa_assoc_frame ( struct ieee80211_device ieee,
char wpa_ie,
int  wpa_ie_len 
)

Definition at line 2775 of file ieee80211_softmac.c.

int ieee80211_wpa_supplicant_ioctl ( struct ieee80211_device ieee,
struct iw_point p 
)

Definition at line 3140 of file ieee80211_softmac.c.

void init_mgmt_queue ( struct ieee80211_device ieee)

Definition at line 184 of file ieee80211_softmac.c.

u8 MgntQuery_MgntFrameTxRate ( struct ieee80211_device ieee)

Definition at line 189 of file ieee80211_softmac.c.

void notify_wx_assoc_event ( struct ieee80211_device ieee)

Definition at line 3200 of file ieee80211_softmac.c.

void SendDisassociation ( struct ieee80211_device ieee,
u8 asSta,
u8  asRsn 
)

Definition at line 3125 of file ieee80211_softmac.c.

void softmac_mgmt_xmit ( struct sk_buff skb,
struct ieee80211_device ieee 
)
inline

Definition at line 226 of file ieee80211_softmac.c.

void softmac_ps_mgmt_xmit ( struct sk_buff skb,
struct ieee80211_device ieee 
)
inline

Definition at line 293 of file ieee80211_softmac.c.

Variable Documentation

u8 rsn_authen_cipher_suite[16][4]
Initial value:
= {
{0x00,0x0F,0xAC,0x00},
{0x00,0x0F,0xAC,0x01},
{0x00,0x0F,0xAC,0x02},
{0x00,0x0F,0xAC,0x03},
{0x00,0x0F,0xAC,0x04},
{0x00,0x0F,0xAC,0x05},
}

Definition at line 27 of file ieee80211_softmac.c.