aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/cmd.h
diff options
context:
space:
mode:
authorShahar Levi <shahar_levi@ti.com>2011-03-06 09:32:09 -0500
committerLuciano Coelho <coelho@ti.com>2011-04-19 09:19:48 -0400
commit49d750ca14cd49e76ab039b33b5a621e0a92b9fd (patch)
treeb3507ef118e00c21a077204c3c0a0f9b760482c7 /drivers/net/wireless/wl12xx/cmd.h
parenta81159edf8d64011933df177ec42f82d7896a0c7 (diff)
wl12xx: 1281/1283 support - New radio structs and functions
New general and radio parameters structures and functions. Implemented as separate functions due to auto-detection between wl127x and wl128x. Signed-off-by: Shahar Levi <shahar_levi@ti.com> Reviewed-by: Luciano Coelho <coelho@ti.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/cmd.h')
-rw-r--r--drivers/net/wireless/wl12xx/cmd.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/cmd.h b/drivers/net/wireless/wl12xx/cmd.h
index 54c12e71417..5cac95d9480 100644
--- a/drivers/net/wireless/wl12xx/cmd.h
+++ b/drivers/net/wireless/wl12xx/cmd.h
@@ -32,7 +32,9 @@ struct acx_header;
32int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len, 32int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len,
33 size_t res_len); 33 size_t res_len);
34int wl1271_cmd_general_parms(struct wl1271 *wl); 34int wl1271_cmd_general_parms(struct wl1271 *wl);
35int wl128x_cmd_general_parms(struct wl1271 *wl);
35int wl1271_cmd_radio_parms(struct wl1271 *wl); 36int wl1271_cmd_radio_parms(struct wl1271 *wl);
37int wl128x_cmd_radio_parms(struct wl1271 *wl);
36int wl1271_cmd_ext_radio_parms(struct wl1271 *wl); 38int wl1271_cmd_ext_radio_parms(struct wl1271 *wl);
37int wl1271_cmd_join(struct wl1271 *wl, u8 bss_type); 39int wl1271_cmd_join(struct wl1271 *wl, u8 bss_type);
38int wl1271_cmd_test(struct wl1271 *wl, void *buf, size_t buf_len, u8 answer); 40int wl1271_cmd_test(struct wl1271 *wl, void *buf, size_t buf_len, u8 answer);
@@ -415,6 +417,21 @@ struct wl1271_general_parms_cmd {
415 u8 padding[3]; 417 u8 padding[3];
416} __packed; 418} __packed;
417 419
420struct wl128x_general_parms_cmd {
421 struct wl1271_cmd_header header;
422
423 struct wl1271_cmd_test_header test;
424
425 struct wl128x_ini_general_params general_params;
426
427 u8 sr_debug_table[WL1271_INI_MAX_SMART_REFLEX_PARAM];
428 u8 sr_sen_n_p;
429 u8 sr_sen_n_p_gain;
430 u8 sr_sen_nrn;
431 u8 sr_sen_prn;
432 u8 padding[3];
433} __packed;
434
418struct wl1271_radio_parms_cmd { 435struct wl1271_radio_parms_cmd {
419 struct wl1271_cmd_header header; 436 struct wl1271_cmd_header header;
420 437
@@ -431,6 +448,23 @@ struct wl1271_radio_parms_cmd {
431 u8 padding3[2]; 448 u8 padding3[2];
432} __packed; 449} __packed;
433 450
451struct wl128x_radio_parms_cmd {
452 struct wl1271_cmd_header header;
453
454 struct wl1271_cmd_test_header test;
455
456 /* Static radio parameters */
457 struct wl128x_ini_band_params_2 static_params_2;
458 struct wl128x_ini_band_params_5 static_params_5;
459
460 u8 fem_vendor_and_options;
461
462 /* Dynamic radio parameters */
463 struct wl128x_ini_fem_params_2 dyn_params_2;
464 u8 padding2;
465 struct wl128x_ini_fem_params_5 dyn_params_5;
466} __packed;
467
434struct wl1271_ext_radio_parms_cmd { 468struct wl1271_ext_radio_parms_cmd {
435 struct wl1271_cmd_header header; 469 struct wl1271_cmd_header header;
436 470