diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2009-10-13 05:47:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:08 -0400 |
commit | 47fab7d589d46d87a5dbfd7f2ddd53deccfad504 (patch) | |
tree | 7ef786fb166d86449605723e29dd52ab8338e8ab /drivers/net/wireless/wl12xx/wl1271_main.c | |
parent | 51f2be24328957f9e2acf116b1b1d2dfd10bf41f (diff) |
wl1271: Add config structure for FW init parameters
Add a configuration structure for RX path parameters, and set default
configuration values there.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index a559a1536534..0b17b056f3f3 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c | |||
@@ -224,6 +224,109 @@ static void wl1271_conf_init(struct wl1271 *wl) | |||
224 | .snr_bcn_avg_weight = 10, | 224 | .snr_bcn_avg_weight = 10, |
225 | .snr_pkt_avg_weight = 10 | 225 | .snr_pkt_avg_weight = 10 |
226 | } | 226 | } |
227 | }, | ||
228 | .init = { | ||
229 | .sr_err_tbl = { | ||
230 | [0] = { | ||
231 | .len = 7, | ||
232 | .upper_limit = 0x03, | ||
233 | .values = { | ||
234 | 0x18, 0x10, 0x05, 0xfb, | ||
235 | 0xf0, 0xe8, 0x00 } | ||
236 | }, | ||
237 | [1] = { | ||
238 | .len = 7, | ||
239 | .upper_limit = 0x03, | ||
240 | .values = { | ||
241 | 0x18, 0x10, 0x05, 0xf6, | ||
242 | 0xf0, 0xe8, 0x00 } | ||
243 | }, | ||
244 | [2] = { | ||
245 | .len = 7, | ||
246 | .upper_limit = 0x03, | ||
247 | .values = { | ||
248 | 0x18, 0x10, 0x05, 0xfb, | ||
249 | 0xf0, 0xe8, 0x00 } | ||
250 | } | ||
251 | }, | ||
252 | .sr_enable = 1, | ||
253 | .genparam = { | ||
254 | /* | ||
255 | * FIXME: The correct value CONF_REF_CLK_38_4_E | ||
256 | * causes the firmware to crash on boot. | ||
257 | * The value 5 apparently is an | ||
258 | * unnoficial XTAL configuration of the | ||
259 | * same frequency, which appears to work. | ||
260 | */ | ||
261 | .ref_clk = 5, | ||
262 | .settling_time = 5, | ||
263 | .clk_valid_on_wakeup = 0, | ||
264 | .dc2dcmode = 0, | ||
265 | .single_dual_band = 0, | ||
266 | .tx_bip_fem_autodetect = 0, | ||
267 | .tx_bip_fem_manufacturer = 1, | ||
268 | .settings = 1, | ||
269 | }, | ||
270 | .radioparam = { | ||
271 | /* FIXME: 5GHz values unset! */ | ||
272 | .rx_trace_loss = 10, | ||
273 | .tx_trace_loss = 10, | ||
274 | .rx_rssi_and_proc_compens = { | ||
275 | 0xec, 0xf6, 0x00, 0x0c, 0x18, 0xf8, | ||
276 | 0xfc, 0x00, 0x08, 0x10, 0xf0, 0xf8, | ||
277 | 0x00, 0x0a, 0x14 }, | ||
278 | .rx_trace_loss_5 = { | ||
279 | 0, 0, 0, 0, 0, 0, 0 }, | ||
280 | .tx_trace_loss_5 = { | ||
281 | 0, 0, 0, 0, 0, 0, 0 }, | ||
282 | .rx_rssi_and_proc_compens_5 = { | ||
283 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
284 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
285 | 0x00, 0x00, 0x00 }, | ||
286 | .tx_ref_pd_voltage = 0x24e, | ||
287 | .tx_ref_power = 0x78, | ||
288 | .tx_offset_db = 0x0, | ||
289 | .tx_rate_limits_normal = { | ||
290 | 0x1e, 0x1f, 0x22, 0x24, 0x28, 0x29 }, | ||
291 | .tx_rate_limits_degraded = { | ||
292 | 0x1b, 0x1c, 0x1e, 0x20, 0x24, 0x25 }, | ||
293 | .tx_channel_limits_11b = { | ||
294 | 0x22, 0x50, 0x50, 0x50, 0x50, 0x50, | ||
295 | 0x50, 0x50, 0x50, 0x50, 0x22, 0x50, | ||
296 | 0x22, 0x50 }, | ||
297 | .tx_channel_limits_ofdm = { | ||
298 | 0x20, 0x50, 0x50, 0x50, 0x50, 0x50, | ||
299 | 0x50, 0x50, 0x50, 0x50, 0x20, 0x50, | ||
300 | 0x20, 0x50 }, | ||
301 | .tx_pdv_rate_offsets = { | ||
302 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, | ||
303 | .tx_ibias = { | ||
304 | 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x27 }, | ||
305 | .rx_fem_insertion_loss = 0x14, | ||
306 | .tx_ref_pd_voltage_5 = { | ||
307 | 0, 0, 0, 0, 0, 0, 0 }, | ||
308 | .tx_ref_power_5 = { | ||
309 | 0, 0, 0, 0, 0, 0, 0 }, | ||
310 | .tx_offset_db_5 = { | ||
311 | 0, 0, 0, 0, 0, 0, 0 }, | ||
312 | .tx_rate_limits_normal_5 = { | ||
313 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, | ||
314 | .tx_rate_limits_degraded_5 = { | ||
315 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, | ||
316 | .tx_channel_limits_ofdm_5 = { | ||
317 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
318 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
319 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
320 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
321 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
322 | 0x00, 0x00, 0x00, 0x00, 0x00}, | ||
323 | .tx_pdv_rate_offsets_5 = { | ||
324 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, | ||
325 | .tx_ibias_5 = { | ||
326 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, | ||
327 | .rx_fem_insertion_loss_5 = { | ||
328 | 0, 0, 0, 0, 0, 0, 0 } | ||
329 | } | ||
227 | } | 330 | } |
228 | }; | 331 | }; |
229 | 332 | ||