Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
wl_cfg80211.h File Reference

Go to the source code of this file.

Data Structures

struct  brcmf_cfg80211_conf
 
struct  brcmf_cfg80211_event_loop
 
struct  brcmf_cfg80211_scan_req
 
struct  brcmf_cfg80211_ie
 
struct  brcmf_cfg80211_event_q
 
struct  brcmf_cfg80211_security
 
struct  brcmf_cfg80211_ibss
 
struct  brcmf_cfg80211_profile
 
struct  brcmf_cfg80211_iscan_eloop
 
struct  brcmf_cfg80211_iscan_ctrl
 
struct  brcmf_cfg80211_connect_info
 
struct  brcmf_cfg80211_assoc_ielen_le
 
struct  brcmf_cfg80211_pmk_list
 
struct  escan_info
 
struct  ap_info
 
struct  brcmf_pno_param_le
 
struct  brcmf_pno_net_param_le
 
struct  brcmf_pno_net_info_le
 
struct  brcmf_pno_scanresults_le
 
struct  brcmf_cfg80211_info
 

Macros

#define WL_DBG_NONE   0
 
#define WL_DBG_CONN   (1 << 5)
 
#define WL_DBG_SCAN   (1 << 4)
 
#define WL_DBG_TRACE   (1 << 3)
 
#define WL_DBG_INFO   (1 << 1)
 
#define WL_DBG_ERR   (1 << 0)
 
#define WL_DBG_MASK
 
#define WL_ERR(fmt,...)
 
#define WL_INFO(fmt, args...)
 
#define WL_TRACE(fmt, args...)
 
#define WL_SCAN(fmt, args...)
 
#define WL_CONN(fmt, args...)
 
#define WL_NUM_SCAN_MAX   1
 
#define WL_NUM_PMKIDS_MAX
 
#define WL_SCAN_BUF_MAX   (1024 * 8)
 
#define WL_TLV_INFO_MAX   1024
 
#define WL_BSS_INFO_MAX   2048
 
#define WL_ASSOC_INFO_MAX
 
#define WL_DCMD_LEN_MAX   1024
 
#define WL_EXTRA_BUF_MAX   2048
 
#define WL_ISCAN_BUF_MAX
 
#define WL_ISCAN_TIMER_INTERVAL_MS   3000
 
#define WL_SCAN_ERSULTS_LAST   (BRCMF_SCAN_RESULTS_NO_MEM+1)
 
#define WL_AP_MAX
 
#define WL_ROAM_TRIGGER_LEVEL   -75
 
#define WL_ROAM_DELTA   20
 
#define WL_BEACON_TIMEOUT   3
 
#define WL_SCAN_CHANNEL_TIME   40
 
#define WL_SCAN_UNASSOC_TIME   40
 
#define WL_SCAN_PASSIVE_TIME   120
 
#define WL_ESCAN_BUF_SIZE   (1024 * 64)
 
#define WL_ESCAN_TIMER_INTERVAL_MS   8000 /* E-Scan timeout */
 
#define WL_ESCAN_ACTION_START   1
 
#define WL_ESCAN_ACTION_CONTINUE   2
 
#define WL_ESCAN_ACTION_ABORT   3
 
#define WL_AUTH_SHARED_KEY   1 /* d11 shared authentication */
 
#define IE_MAX_LEN   512
 
#define iscan_to_cfg(i)   ((struct brcmf_cfg80211_info *)(i->data))
 
#define cfg_to_iscan(w)   (w->iscan)
 

Enumerations

enum  wl_status {
  WL_STATUS_READY, WL_STATUS_SCANNING, WL_STATUS_SCAN_ABORTING, WL_STATUS_CONNECTING,
  WL_STATUS_CONNECTED, WL_STATUS_AP_CREATING, WL_STATUS_AP_CREATED
}
 
enum  wl_mode { WL_MODE_BSS, WL_MODE_IBSS, WL_MODE_AP }
 
enum  wl_prof_list {
  WL_PROF_MODE, WL_PROF_SSID, WL_PROF_SEC, WL_PROF_IBSS,
  WL_PROF_BAND, WL_PROF_BSSID, WL_PROF_ACT, WL_PROF_BEACONINT,
  WL_PROF_DTIMPERIOD
}
 
enum  wl_iscan_state { WL_ISCAN_STATE_IDLE, WL_ISCAN_STATE_SCANING }
 
enum  wl_escan_state { WL_ESCAN_STATE_IDLE, WL_ESCAN_STATE_SCANNING }
 

Functions

struct brcmf_cfg80211_infobrcmf_cfg80211_attach (struct net_device *ndev, struct device *busdev, struct brcmf_pub *drvr)
 
void brcmf_cfg80211_detach (struct brcmf_cfg80211_info *cfg)
 
void brcmf_cfg80211_event (struct net_device *ndev, const struct brcmf_event_msg *e, void *data)
 
s32 brcmf_cfg80211_up (struct brcmf_cfg80211_info *cfg)
 
s32 brcmf_cfg80211_down (struct brcmf_cfg80211_info *cfg)
 

Macro Definition Documentation

#define cfg_to_iscan (   w)    (w->iscan)

Definition at line 483 of file wl_cfg80211.h.

#define IE_MAX_LEN   512

Definition at line 116 of file wl_cfg80211.h.

#define iscan_to_cfg (   i)    ((struct brcmf_cfg80211_info *)(i->data))

Definition at line 482 of file wl_cfg80211.h.

#define WL_AP_MAX
Value:
256 /* virtually unlimitted as long
* as kernel memory allows
*/

Definition at line 98 of file wl_cfg80211.h.

#define WL_ASSOC_INFO_MAX
Value:
512 /*
* needs to grab assoc info from dongle to
* report it to cfg80211 through "connect"
* event
*/

Definition at line 92 of file wl_cfg80211.h.

#define WL_AUTH_SHARED_KEY   1 /* d11 shared authentication */

Definition at line 115 of file wl_cfg80211.h.

#define WL_BEACON_TIMEOUT   3

Definition at line 102 of file wl_cfg80211.h.

#define WL_BSS_INFO_MAX   2048

Definition at line 91 of file wl_cfg80211.h.

#define WL_CONN (   fmt,
  args... 
)

Definition at line 84 of file wl_cfg80211.h.

#define WL_DBG_CONN   (1 << 5)

Definition at line 21 of file wl_cfg80211.h.

#define WL_DBG_ERR   (1 << 0)

Definition at line 25 of file wl_cfg80211.h.

#define WL_DBG_INFO   (1 << 1)

Definition at line 24 of file wl_cfg80211.h.

#define WL_DBG_MASK
Value:

Definition at line 26 of file wl_cfg80211.h.

#define WL_DBG_NONE   0

Definition at line 20 of file wl_cfg80211.h.

#define WL_DBG_SCAN   (1 << 4)

Definition at line 22 of file wl_cfg80211.h.

#define WL_DBG_TRACE   (1 << 3)

Definition at line 23 of file wl_cfg80211.h.

#define WL_DCMD_LEN_MAX   1024

Definition at line 93 of file wl_cfg80211.h.

#define WL_ERR (   fmt,
  ... 
)
Value:
do { \
if (brcmf_dbg_level & WL_DBG_ERR) { \
if (net_ratelimit()) { \
pr_err("ERROR @%s : " fmt, \
__func__, ##__VA_ARGS__); \
} \
} \
} while (0)

Definition at line 29 of file wl_cfg80211.h.

#define WL_ESCAN_ACTION_ABORT   3

Definition at line 113 of file wl_cfg80211.h.

#define WL_ESCAN_ACTION_CONTINUE   2

Definition at line 112 of file wl_cfg80211.h.

#define WL_ESCAN_ACTION_START   1

Definition at line 111 of file wl_cfg80211.h.

#define WL_ESCAN_BUF_SIZE   (1024 * 64)

Definition at line 108 of file wl_cfg80211.h.

#define WL_ESCAN_TIMER_INTERVAL_MS   8000 /* E-Scan timeout */

Definition at line 109 of file wl_cfg80211.h.

#define WL_EXTRA_BUF_MAX   2048

Definition at line 94 of file wl_cfg80211.h.

#define WL_INFO (   fmt,
  args... 
)

Definition at line 81 of file wl_cfg80211.h.

#define WL_ISCAN_BUF_MAX
Value:
2048 /*
* the buf length can be BRCMF_DCMD_MAXLEN
* to reduce iteration
*/

Definition at line 95 of file wl_cfg80211.h.

#define WL_ISCAN_TIMER_INTERVAL_MS   3000

Definition at line 96 of file wl_cfg80211.h.

#define WL_NUM_PMKIDS_MAX
Value:
MAXPMKID /* will be used
* for 2.6.33 kernel
* or later
*/

Definition at line 88 of file wl_cfg80211.h.

#define WL_NUM_SCAN_MAX   1

Definition at line 87 of file wl_cfg80211.h.

#define WL_ROAM_DELTA   20

Definition at line 101 of file wl_cfg80211.h.

#define WL_ROAM_TRIGGER_LEVEL   -75

Definition at line 100 of file wl_cfg80211.h.

#define WL_SCAN (   fmt,
  args... 
)

Definition at line 83 of file wl_cfg80211.h.

#define WL_SCAN_BUF_MAX   (1024 * 8)

Definition at line 89 of file wl_cfg80211.h.

#define WL_SCAN_CHANNEL_TIME   40

Definition at line 104 of file wl_cfg80211.h.

#define WL_SCAN_ERSULTS_LAST   (BRCMF_SCAN_RESULTS_NO_MEM+1)

Definition at line 97 of file wl_cfg80211.h.

#define WL_SCAN_PASSIVE_TIME   120

Definition at line 106 of file wl_cfg80211.h.

#define WL_SCAN_UNASSOC_TIME   40

Definition at line 105 of file wl_cfg80211.h.

#define WL_TLV_INFO_MAX   1024

Definition at line 90 of file wl_cfg80211.h.

#define WL_TRACE (   fmt,
  args... 
)

Definition at line 82 of file wl_cfg80211.h.

Enumeration Type Documentation

Enumerator:
WL_ESCAN_STATE_IDLE 
WL_ESCAN_STATE_SCANNING 

Definition at line 267 of file wl_cfg80211.h.

Enumerator:
WL_ISCAN_STATE_IDLE 
WL_ISCAN_STATE_SCANING 

Definition at line 150 of file wl_cfg80211.h.

enum wl_mode
Enumerator:
WL_MODE_BSS 
WL_MODE_IBSS 
WL_MODE_AP 

Definition at line 130 of file wl_cfg80211.h.

Enumerator:
WL_PROF_MODE 
WL_PROF_SSID 
WL_PROF_SEC 
WL_PROF_IBSS 
WL_PROF_BAND 
WL_PROF_BSSID 
WL_PROF_ACT 
WL_PROF_BEACONINT 
WL_PROF_DTIMPERIOD 

Definition at line 137 of file wl_cfg80211.h.

enum wl_status
Enumerator:
WL_STATUS_READY 
WL_STATUS_SCANNING 
WL_STATUS_SCAN_ABORTING 
WL_STATUS_CONNECTING 
WL_STATUS_CONNECTED 
WL_STATUS_AP_CREATING 
WL_STATUS_AP_CREATED 

Definition at line 119 of file wl_cfg80211.h.

Function Documentation

struct brcmf_cfg80211_info* brcmf_cfg80211_attach ( struct net_device ndev,
struct device busdev,
struct brcmf_pub drvr 
)
read

Definition at line 5146 of file wl_cfg80211.c.

void brcmf_cfg80211_detach ( struct brcmf_cfg80211_info cfg)

Definition at line 5184 of file wl_cfg80211.c.

s32 brcmf_cfg80211_down ( struct brcmf_cfg80211_info cfg)

Definition at line 5526 of file wl_cfg80211.c.

void brcmf_cfg80211_event ( struct net_device ndev,
const struct brcmf_event_msg e,
void data 
)

Definition at line 5191 of file wl_cfg80211.c.

s32 brcmf_cfg80211_up ( struct brcmf_cfg80211_info cfg)

Definition at line 5515 of file wl_cfg80211.c.