Go to the documentation of this file.
25 #define BRCMS_NUMRATES 16
32 #define PHY_TYPE_SSN 6
33 #define PHY_TYPE_LCN 8
34 #define PHY_TYPE_LCNXN 9
38 #define BRCMS_10_MHZ 10
39 #define BRCMS_20_MHZ 20
40 #define BRCMS_40_MHZ 40
42 #define BRCMS_RSSI_MINVAL -200
43 #define BRCMS_RSSI_NO_SIGNAL -91
44 #define BRCMS_RSSI_VERY_LOW -80
45 #define BRCMS_RSSI_LOW -70
46 #define BRCMS_RSSI_GOOD -68
47 #define BRCMS_RSSI_VERY_GOOD -58
48 #define BRCMS_RSSI_EXCELLENT -57
53 #define BRCMS_TXPWR_MAX (127)
56 #define BRCMS_RATE_FLAG 0x80
57 #define BRCMS_RATE_MASK 0x7f
60 #define ANT_RX_DIV_FORCE_0 0
61 #define ANT_RX_DIV_FORCE_1 1
62 #define ANT_RX_DIV_START_1 2
63 #define ANT_RX_DIV_START_0 3
64 #define ANT_RX_DIV_ENABLE 3
66 #define ANT_RX_DIV_DEF ANT_RX_DIV_START_0
70 #define ANT_TX_FORCE_0 0
72 #define ANT_TX_FORCE_1 1
74 #define ANT_TX_LAST_RX 3
80 #define TXCHAIN_DEF 0x1
82 #define TXCHAIN_DEF_NPHY 0x3
84 #define TXCHAIN_DEF_HTPHY 0x7
86 #define RXCHAIN_DEF 0x1
88 #define RXCHAIN_DEF_NPHY 0x3
90 #define RXCHAIN_DEF_HTPHY 0x7
92 #define ANTSWITCH_NONE 0
94 #define ANTSWITCH_TYPE_1 1
96 #define ANTSWITCH_TYPE_2 2
98 #define ANTSWITCH_TYPE_3 3
100 #define RXBUFSZ PKTBUFSZ
102 #define MAX_STREAMS_SUPPORTED 4
122 #define AMPDU_DEF_MPDU_DENSITY 6
137 #define MAC80211_PROMISC_BCNS (1 << 0)
138 #define MAC80211_SCAN (1 << 1)
193 #define ENAB_1x1 0x01
194 #define ENAB_2x2 0x02
195 #define ENAB_3x3 0x04
196 #define ENAB_4x4 0x08
197 #define SUPPORT_11N (ENAB_1x1|ENAB_2x2)
198 #define SUPPORT_HT (ENAB_1x1|ENAB_2x2|ENAB_3x3)
201 #define AMPDU_AGG_HOST 1
207 #define BRCMS_PRIO_TO_PREC(pri) wlc_prio2prec_map[(pri) & 7]
209 #define BRCMS_PREC_COUNT 16
212 #define BRCMS_PREC_BMP_ALL MAXBITVAL(BRCMS_PREC_COUNT)
219 #define BRCMS_PRIO_TO_HI_PREC(pri) min(BRCMS_PRIO_TO_PREC(pri) + 1,\
220 BRCMS_PREC_COUNT - 1)
223 #define BRCMS_PREC_BMP_AC_BE (NBITVAL(BRCMS_PRIO_TO_PREC(PRIO_8021D_BE)) | \
224 NBITVAL(BRCMS_PRIO_TO_HI_PREC(PRIO_8021D_BE)) | \
225 NBITVAL(BRCMS_PRIO_TO_PREC(PRIO_8021D_EE)) | \
226 NBITVAL(BRCMS_PRIO_TO_HI_PREC(PRIO_8021D_EE)))
227 #define BRCMS_PREC_BMP_AC_BK (NBITVAL(BRCMS_PRIO_TO_PREC(PRIO_8021D_BK)) | \
228 NBITVAL(BRCMS_PRIO_TO_HI_PREC(PRIO_8021D_BK)) | \
229 NBITVAL(BRCMS_PRIO_TO_PREC(PRIO_8021D_NONE)) | \
230 NBITVAL(BRCMS_PRIO_TO_HI_PREC(PRIO_8021D_NONE)))
231 #define BRCMS_PREC_BMP_AC_VI (NBITVAL(BRCMS_PRIO_TO_PREC(PRIO_8021D_CL)) | \
232 NBITVAL(BRCMS_PRIO_TO_HI_PREC(PRIO_8021D_CL)) | \
233 NBITVAL(BRCMS_PRIO_TO_PREC(PRIO_8021D_VI)) | \
234 NBITVAL(BRCMS_PRIO_TO_HI_PREC(PRIO_8021D_VI)))
235 #define BRCMS_PREC_BMP_AC_VO (NBITVAL(BRCMS_PRIO_TO_PREC(PRIO_8021D_VO)) | \
236 NBITVAL(BRCMS_PRIO_TO_HI_PREC(PRIO_8021D_VO)) | \
237 NBITVAL(BRCMS_PRIO_TO_PREC(PRIO_8021D_NC)) | \
238 NBITVAL(BRCMS_PRIO_TO_HI_PREC(PRIO_8021D_NC)))
241 #define BRCMS_PROT_G_SPEC 1
242 #define BRCMS_PROT_G_OVR 2
243 #define BRCMS_PROT_G_USER 3
244 #define BRCMS_PROT_OVERLAP 4
245 #define BRCMS_PROT_N_USER 10
246 #define BRCMS_PROT_N_CFG 11
247 #define BRCMS_PROT_N_CFG_OVR 12
248 #define BRCMS_PROT_N_NONGF 13
249 #define BRCMS_PROT_N_NONGF_OVR 14
250 #define BRCMS_PROT_N_PAM_OVR 15
251 #define BRCMS_PROT_N_OBSS 16
285 #define GMODE_LEGACY_B 0
288 #define GMODE_B_DEFERRED 3
289 #define GMODE_PERFORMANCE 4
294 #define HIGHEST_SINGLE_STREAM_MCS 7
299 #define ANT_SELCFG_MAX 4
309 bool piomode,
uint *perr);
332 int match_reg_offset,
341 u8 ba_wsize,
uint max_rx_ampdu_bytes);
344 int (*down_fn)(
void *
handle));