30 0x00, 0x00, 0x0a, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00,
31 0x00, 0x37, 0x8b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8f, 0x00,
32 0x00, 0x00, 0x6e, 0x00, 0x8a, 0x00, 0x00, 0x00, 0x00, 0x00,
33 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x00, 0x00, 0x00,
34 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x89, 0x00,
35 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
36 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
37 0x00, 0x00, 0x8d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
38 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
39 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00,
40 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c
46 {6500, 13500,
CEIL(6500 * 10, 9),
CEIL(13500 * 10, 9), 0x00,
49 {13000, 27000,
CEIL(13000 * 10, 9),
CEIL(27000 * 10, 9), 0x08,
52 {19500, 40500,
CEIL(19500 * 10, 9),
CEIL(40500 * 10, 9), 0x0A,
55 {26000, 54000,
CEIL(26000 * 10, 9),
CEIL(54000 * 10, 9), 0x10,
58 {39000, 81000,
CEIL(39000 * 10, 9),
CEIL(81000 * 10, 9), 0x12,
61 {52000, 108000,
CEIL(52000 * 10, 9),
CEIL(108000 * 10, 9), 0x19,
64 {58500, 121500,
CEIL(58500 * 10, 9),
CEIL(121500 * 10, 9), 0x1A,
67 {65000, 135000,
CEIL(65000 * 10, 9),
CEIL(135000 * 10, 9), 0x1C,
70 {13000, 27000,
CEIL(13000 * 10, 9),
CEIL(27000 * 10, 9), 0x40,
73 {26000, 54000,
CEIL(26000 * 10, 9),
CEIL(54000 * 10, 9), 0x48,
76 {39000, 81000,
CEIL(39000 * 10, 9),
CEIL(81000 * 10, 9), 0x4A,
79 {52000, 108000,
CEIL(52000 * 10, 9),
CEIL(108000 * 10, 9), 0x50,
82 {78000, 162000,
CEIL(78000 * 10, 9),
CEIL(162000 * 10, 9), 0x52,
85 {104000, 216000,
CEIL(104000 * 10, 9),
CEIL(216000 * 10, 9), 0x59,
88 {117000, 243000,
CEIL(117000 * 10, 9),
CEIL(243000 * 10, 9), 0x5A,
91 {130000, 270000,
CEIL(130000 * 10, 9),
CEIL(270000 * 10, 9), 0x5C,
94 {19500, 40500,
CEIL(19500 * 10, 9),
CEIL(40500 * 10, 9), 0x80,
97 {39000, 81000,
CEIL(39000 * 10, 9),
CEIL(81000 * 10, 9), 0x88,
100 {58500, 121500,
CEIL(58500 * 10, 9),
CEIL(121500 * 10, 9), 0x8A,
103 {78000, 162000,
CEIL(78000 * 10, 9),
CEIL(162000 * 10, 9), 0x90,
106 {117000, 243000,
CEIL(117000 * 10, 9),
CEIL(243000 * 10, 9), 0x92,
109 {156000, 324000,
CEIL(156000 * 10, 9),
CEIL(324000 * 10, 9), 0x99,
112 {175500, 364500,
CEIL(175500 * 10, 9),
CEIL(364500 * 10, 9), 0x9A,
115 {195000, 405000,
CEIL(195000 * 10, 9),
CEIL(405000 * 10, 9), 0x9B,
118 {26000, 54000,
CEIL(26000 * 10, 9),
CEIL(54000 * 10, 9), 0xC0,
121 {52000, 108000,
CEIL(52000 * 10, 9),
CEIL(108000 * 10, 9), 0xC8,
124 {78000, 162000,
CEIL(78000 * 10, 9),
CEIL(162000 * 10, 9), 0xCA,
127 {104000, 216000,
CEIL(104000 * 10, 9),
CEIL(216000 * 10, 9), 0xD0,
130 {156000, 324000,
CEIL(156000 * 10, 9),
CEIL(324000 * 10, 9), 0xD2,
133 {208000, 432000,
CEIL(208000 * 10, 9),
CEIL(432000 * 10, 9), 0xD9,
136 {234000, 486000,
CEIL(234000 * 10, 9),
CEIL(486000 * 10, 9), 0xDA,
139 {260000, 540000,
CEIL(260000 * 10, 9),
CEIL(540000 * 10, 9), 0xDB,
157 #define LEGACY_PHYCFG_TABLE_SIZE 12
193 { 0x82, 0x84, 0x8b, 0x0c, 0x12, 0x96, 0x18, 0x24, 0x30, 0x48, 0x60,
197 { 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
198 0x00, 0x00, 0x00, 0x00, 0x00}
204 { 0x8c, 0x12, 0x98, 0x24, 0xb0, 0x48, 0x60, 0x6c},
206 { 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
207 0x00, 0x00, 0x00, 0x00, 0x00}
214 { 0x82, 0x84, 0x8b, 0x0c, 0x12, 0x96, 0x18, 0x24, 0x30, 0x48, 0x60,
218 { 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
219 0x00, 0x00, 0x00, 0x00, 0x00}
225 { 0x8c, 0x12, 0x98, 0x24, 0xb0, 0x48, 0x60, 0x6c},
227 { 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
228 0x00, 0x00, 0x00, 0x00, 0x00}
234 { 0x82, 0x84, 0x8b, 0x0c, 0x12, 0x96, 0x18, 0x24, 0x30, 0x48, 0x60,
238 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
239 0x00, 0x00, 0x00, 0x00, 0x00}
245 { 0x82, 0x84, 0x8b, 0x96},
247 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
248 0x00, 0x00, 0x00, 0x00, 0x00}
254 { 0x8c, 0x12, 0x98, 0x24, 0xb0, 0x48, 0x60, 0x6c},
256 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
257 0x00, 0x00, 0x00, 0x00, 0x00}
263 { 0x82, 0x84, 0x0b, 0x16},
265 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
266 0x00, 0x00, 0x00, 0x00, 0x00}
272 static bool brcms_c_rateset_valid(
struct brcms_c_rateset *rs,
bool check_brate)
283 for (idx = 0; idx < rs->
count; idx++) {
304 bool check_brate,
u8 txstreams)
311 memset(rateset, 0,
sizeof(rateset));
314 for (i = 0; i <
count; i++) {
324 for (i = 0; i < hw_rs->
count; i++) {
327 rs->
rates[count++] = rateset[
r];
334 rs->
mcs[i] = (rs->
mcs[i] & hw_rs->
mcs[i]);
336 if (brcms_c_rateset_valid(rs, check_brate))
378 if (plcp3_issgi(plcp[3]))
382 rspec = ofdm_phy2mac_rate(
385 rspec = cck_phy2mac_rate(
409 bool basic_only,
u8 rates,
uint xmask,
bool mcsallow)
416 for (i = 0; i < src->
count; i++) {
424 is_cck_rate((r & BRCMS_RATE_MASK)))
426 dst->
rates[count++] = r & xmask;
443 uint phy_type,
int bandtype,
bool cck_only,
444 uint rate_mask,
bool mcsallow,
u8 bw,
u8 txstreams)
454 &ofdm_mimo_rates : &ofdm_40bw_mimo_rates);
457 &cck_ofdm_mimo_rates :
458 &cck_ofdm_40bw_mimo_rates);
461 &ofdm_rates : &cck_ofdm_rates;
479 rate_mask, mcsallow);
481 mcsallow ? txstreams : 1);
488 if (rate == legacy_phycfg_table[i].rate_ofdm)