28 #define MWIFIEX_TX_PWR_DEFAULT 20
30 #define MWIFIEX_TX_PWR_US_DEFAULT 20
32 #define MWIFIEX_TX_PWR_JP_DEFAULT 16
34 #define MWIFIEX_TX_PWR_FR_100MW 20
36 #define MWIFIEX_TX_PWR_FR_10MW 10
38 #define MWIFIEX_TX_PWR_EMEA_DEFAULT 20
43 0xb0, 0x48, 0x60, 0x6c, 0 };
46 0x0c, 0x12, 0x18, 0x24,
47 0x30, 0x48, 0x60, 0x6c, 0 };
50 0xb0, 0x48, 0x60, 0x6c, 0 };
52 0xb0, 0x48, 0x60, 0x6c, 0 };
54 0x0B, 0x16, 0x00, 0x0C, 0x12, 0x18,
55 0x24, 0x30, 0x48, 0x60, 0x6C, 0x90,
56 0x0D, 0x1A, 0x27, 0x34, 0x4E, 0x68,
57 0x75, 0x82, 0x0C, 0x1B, 0x36, 0x51,
58 0x6C, 0xA2, 0xD8, 0xF3, 0x10E, 0x00 };
63 0x30, 0x48, 0x60, 0x6c, 0 };
66 0x12, 0x16, 0x18, 0x24, 0x30, 0x48,
70 0x32, 0x40, 0x41, 0xff };
94 u8 size =
sizeof(region_code_mapping_t)/
98 for (i = 0; i <
size; i++)
99 if (region_code_mapping_t[i].code == code)
100 return region_code_mapping_t[
i].
region;
116 u16 mcs_rate[4][16] = {
118 { 0x1b, 0x36, 0x51, 0x6c, 0xa2, 0xd8, 0xf3, 0x10e,
119 0x36, 0x6c, 0xa2, 0xd8, 0x144, 0x1b0, 0x1e6, 0x21c },
122 { 0x1e, 0x3c, 0x5a, 0x78, 0xb4, 0xf0, 0x10e, 0x12c,
123 0x3c, 0x78, 0xb4, 0xf0, 0x168, 0x1e0, 0x21c, 0x258 },
126 { 0x0d, 0x1a, 0x27, 0x34, 0x4e, 0x68, 0x75, 0x82,
127 0x1a, 0x34, 0x4e, 0x68, 0x9c, 0xd0, 0xea, 0x104 },
130 { 0x0e, 0x1c, 0x2b, 0x39, 0x56, 0x73, 0x82, 0x90,
131 0x1c, 0x39, 0x56, 0x73, 0xad, 0xe7, 0x104, 0x120 }
137 if (ht_info &
BIT(0)) {
139 if (ht_info &
BIT(2))
143 }
else if (index < mcs_num_supp) {
144 if (ht_info &
BIT(1)) {
145 if (ht_info &
BIT(2))
147 rate = mcs_rate[1][index];
150 rate = mcs_rate[0][
index];
152 if (ht_info &
BIT(2))
154 rate = mcs_rate[3][index];
157 rate = mcs_rate[2][
index];
160 rate = mwifiex_data_rates[0];
164 rate = mwifiex_data_rates[
index];
179 return mwifiex_copy_rates(rates, 0,
196 if (!channel && !freq)
228 " & channel=%d freq=%d\n", __func__, band, channel,
277 k = mwifiex_copy_rates(rates, k, supported_rates_b,
278 sizeof(supported_rates_b));
284 k = mwifiex_copy_rates(rates, k, supported_rates_g,
285 sizeof(supported_rates_g));
294 k = mwifiex_copy_rates(rates, k, supported_rates_bg,
295 sizeof(supported_rates_bg));
301 k = mwifiex_copy_rates(rates, k, supported_rates_a,
302 sizeof(supported_rates_a));
308 k = mwifiex_copy_rates(rates, k, supported_rates_a,
309 sizeof(supported_rates_a));
314 k = mwifiex_copy_rates(rates, k, supported_rates_n,
315 sizeof(supported_rates_n));
323 k = mwifiex_copy_rates(rates, k, adhoc_rates_b,
324 sizeof(adhoc_rates_b));
328 dev_dbg(adapter->
dev,
"info: adhoc G only\n");
329 k = mwifiex_copy_rates(rates, k, adhoc_rates_g,
330 sizeof(adhoc_rates_g));
335 k = mwifiex_copy_rates(rates, k, adhoc_rates_bg,
336 sizeof(adhoc_rates_bg));
341 k = mwifiex_copy_rates(rates, k, adhoc_rates_a,
342 sizeof(adhoc_rates_a));