1 #ifndef B43legacy_XMIT_H_
2 #define B43legacy_XMIT_H_
7 #define _b43legacy_declare_plcp_hdr(size) \
8 struct b43legacy_plcp_hdr##size { \
20 #undef _b43legacy_declare_plcp_hdr
41 struct b43legacy_plcp_hdr6
plcp;
45 #define B43legacy_TX4_MAC_KEYIDX 0x0FF00000
46 #define B43legacy_TX4_MAC_KEYIDX_SHIFT 20
47 #define B43legacy_TX4_MAC_KEYALG 0x00070000
48 #define B43legacy_TX4_MAC_KEYALG_SHIFT 16
49 #define B43legacy_TX4_MAC_LIFETIME 0x00001000
50 #define B43legacy_TX4_MAC_FRAMEBURST 0x00000800
51 #define B43legacy_TX4_MAC_SENDCTS 0x00000400
52 #define B43legacy_TX4_MAC_AMPDU 0x00000300
53 #define B43legacy_TX4_MAC_AMPDU_SHIFT 8
54 #define B43legacy_TX4_MAC_CTSFALLBACKOFDM 0x00000200
55 #define B43legacy_TX4_MAC_FALLBACKOFDM 0x00000100
56 #define B43legacy_TX4_MAC_5GHZ 0x00000080
57 #define B43legacy_TX4_MAC_IGNPMQ 0x00000020
58 #define B43legacy_TX4_MAC_HWSEQ 0x00000010
59 #define B43legacy_TX4_MAC_STMSDU 0x00000008
60 #define B43legacy_TX4_MAC_SENDRTS 0x00000004
61 #define B43legacy_TX4_MAC_LONGFRAME 0x00000002
62 #define B43legacy_TX4_MAC_ACK 0x00000001
65 #define B43legacy_TX4_EFT_FBOFDM 0x0001
66 #define B43legacy_TX4_EFT_RTSOFDM 0x0004
67 #define B43legacy_TX4_EFT_RTSFBOFDM 0x0010
70 #define B43legacy_TX4_PHY_ENC 0x0003
71 #define B43legacy_TX4_PHY_ENC_CCK 0x0000
72 #define B43legacy_TX4_PHY_ENC_OFDM 0x0001
73 #define B43legacy_TX4_PHY_SHORTPRMBL 0x0010
74 #define B43legacy_TX4_PHY_ANT 0x03C0
75 #define B43legacy_TX4_PHY_ANT0 0x0000
76 #define B43legacy_TX4_PHY_ANT1 0x0100
77 #define B43legacy_TX4_PHY_ANTLAST 0x0300
83 const unsigned char *fragment_data,
84 unsigned int fragment_len,
145 #define B43legacy_RX_PHYST0_GAINCTL 0x4000
146 #define B43legacy_RX_PHYST0_PLCPHCF 0x0200
147 #define B43legacy_RX_PHYST0_PLCPFV 0x0100
148 #define B43legacy_RX_PHYST0_SHORTPRMBL 0x0080
149 #define B43legacy_RX_PHYST0_LCRS 0x0040
150 #define B43legacy_RX_PHYST0_ANT 0x0020
151 #define B43legacy_RX_PHYST0_UNSRATE 0x0010
152 #define B43legacy_RX_PHYST0_CLIP 0x000C
153 #define B43legacy_RX_PHYST0_CLIP_SHIFT 2
154 #define B43legacy_RX_PHYST0_FTYPE 0x0003
155 #define B43legacy_RX_PHYST0_CCK 0x0000
156 #define B43legacy_RX_PHYST0_OFDM 0x0001
157 #define B43legacy_RX_PHYST0_PRE_N 0x0002
158 #define B43legacy_RX_PHYST0_STD_N 0x0003
161 #define B43legacy_RX_PHYST2_LNAG 0xC000
162 #define B43legacy_RX_PHYST2_LNAG_SHIFT 14
163 #define B43legacy_RX_PHYST2_PNAG 0x3C00
164 #define B43legacy_RX_PHYST2_PNAG_SHIFT 10
165 #define B43legacy_RX_PHYST2_FOFF 0x03FF
168 #define B43legacy_RX_PHYST3_DIGG 0x1800
169 #define B43legacy_RX_PHYST3_DIGG_SHIFT 11
170 #define B43legacy_RX_PHYST3_TRSTATE 0x0400
173 #define B43legacy_RX_MAC_BEACONSENT 0x00008000
174 #define B43legacy_RX_MAC_KEYIDX 0x000007E0
175 #define B43legacy_RX_MAC_KEYIDX_SHIFT 5
176 #define B43legacy_RX_MAC_DECERR 0x00000010
177 #define B43legacy_RX_MAC_DEC 0x00000008
178 #define B43legacy_RX_MAC_PADDING 0x00000004
179 #define B43legacy_RX_MAC_RESP 0x00000002
180 #define B43legacy_RX_MAC_FCSERR 0x00000001
183 #define B43legacy_RX_CHAN_GAIN 0xFC00
184 #define B43legacy_RX_CHAN_GAIN_SHIFT 10
185 #define B43legacy_RX_CHAN_ID 0x03FC
186 #define B43legacy_RX_CHAN_ID_SHIFT 2
187 #define B43legacy_RX_CHAN_PHYTYPE 0x0003
211 #define B43legacy_NR_QOSPARMS 22
233 return (dev->
fw.rev >= 351);
239 if (b43legacy_new_kidx_api(dev))
240 firmware_kidx = raw_kidx;
243 firmware_kidx = raw_kidx - 4;
245 firmware_kidx = raw_kidx;
247 return firmware_kidx;
253 if (b43legacy_new_kidx_api(dev))
254 raw_kidx = firmware_kidx;
257 raw_kidx = firmware_kidx + 4;