Go to the documentation of this file.
17 #ifndef _wl_cfg80211_h_
18 #define _wl_cfg80211_h_
21 #define WL_DBG_CONN (1 << 5)
22 #define WL_DBG_SCAN (1 << 4)
23 #define WL_DBG_TRACE (1 << 3)
24 #define WL_DBG_INFO (1 << 1)
25 #define WL_DBG_ERR (1 << 0)
26 #define WL_DBG_MASK ((WL_DBG_INFO | WL_DBG_ERR | WL_DBG_TRACE) | \
27 (WL_DBG_SCAN) | (WL_DBG_CONN))
29 #define WL_ERR(fmt, ...) \
31 if (brcmf_dbg_level & WL_DBG_ERR) { \
32 if (net_ratelimit()) { \
33 pr_err("ERROR @%s : " fmt, \
34 __func__, ##__VA_ARGS__); \
40 #define WL_INFO(fmt, ...) \
42 if (brcmf_dbg_level & WL_DBG_INFO) { \
43 if (net_ratelimit()) { \
44 pr_err("INFO @%s : " fmt, \
45 __func__, ##__VA_ARGS__); \
50 #define WL_TRACE(fmt, ...) \
52 if (brcmf_dbg_level & WL_DBG_TRACE) { \
53 if (net_ratelimit()) { \
54 pr_err("TRACE @%s : " fmt, \
55 __func__, ##__VA_ARGS__); \
60 #define WL_SCAN(fmt, ...) \
62 if (brcmf_dbg_level & WL_DBG_SCAN) { \
63 if (net_ratelimit()) { \
64 pr_err("SCAN @%s : " fmt, \
65 __func__, ##__VA_ARGS__); \
70 #define WL_CONN(fmt, ...) \
72 if (brcmf_dbg_level & WL_DBG_CONN) { \
73 if (net_ratelimit()) { \
74 pr_err("CONN @%s : " fmt, \
75 __func__, ##__VA_ARGS__); \
81 #define WL_INFO(fmt, args...)
82 #define WL_TRACE(fmt, args...)
83 #define WL_SCAN(fmt, args...)
84 #define WL_CONN(fmt, args...)
87 #define WL_NUM_SCAN_MAX 1
88 #define WL_NUM_PMKIDS_MAX MAXPMKID
92 #define WL_SCAN_BUF_MAX (1024 * 8)
93 #define WL_TLV_INFO_MAX 1024
94 #define WL_BSS_INFO_MAX 2048
95 #define WL_ASSOC_INFO_MAX 512
100 #define WL_DCMD_LEN_MAX 1024
101 #define WL_EXTRA_BUF_MAX 2048
102 #define WL_ISCAN_BUF_MAX 2048
106 #define WL_ISCAN_TIMER_INTERVAL_MS 3000
107 #define WL_SCAN_ERSULTS_LAST (BRCMF_SCAN_RESULTS_NO_MEM+1)
108 #define WL_AP_MAX 256
112 #define WL_ROAM_TRIGGER_LEVEL -75
113 #define WL_ROAM_DELTA 20
114 #define WL_BEACON_TIMEOUT 3
116 #define WL_SCAN_CHANNEL_TIME 40
117 #define WL_SCAN_UNASSOC_TIME 40
118 #define WL_SCAN_PASSIVE_TIME 120
120 #define WL_ESCAN_BUF_SIZE (1024 * 64)
121 #define WL_ESCAN_TIMER_INTERVAL_MS 8000
123 #define WL_ESCAN_ACTION_START 1
124 #define WL_ESCAN_ACTION_CONTINUE 2
125 #define WL_ESCAN_ACTION_ABORT 3
127 #define WL_AUTH_SHARED_KEY 1
128 #define IE_MAX_LEN 512
471 return w->
wdev->wiphy;
486 return cfg->
wdev->netdev;
494 #define iscan_to_cfg(i) ((struct brcmf_cfg80211_info *)(i->data))
495 #define cfg_to_iscan(w) (w->iscan)