diff options
author | Shahar Levi <shahar_levi@ti.com> | 2011-03-06 09:32:09 -0500 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-04-19 09:19:48 -0400 |
commit | 49d750ca14cd49e76ab039b33b5a621e0a92b9fd (patch) | |
tree | b3507ef118e00c21a077204c3c0a0f9b760482c7 /drivers/net/wireless/wl12xx/cmd.h | |
parent | a81159edf8d64011933df177ec42f82d7896a0c7 (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.h | 34 |
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; | |||
32 | int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len, | 32 | int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len, |
33 | size_t res_len); | 33 | size_t res_len); |
34 | int wl1271_cmd_general_parms(struct wl1271 *wl); | 34 | int wl1271_cmd_general_parms(struct wl1271 *wl); |
35 | int wl128x_cmd_general_parms(struct wl1271 *wl); | ||
35 | int wl1271_cmd_radio_parms(struct wl1271 *wl); | 36 | int wl1271_cmd_radio_parms(struct wl1271 *wl); |
37 | int wl128x_cmd_radio_parms(struct wl1271 *wl); | ||
36 | int wl1271_cmd_ext_radio_parms(struct wl1271 *wl); | 38 | int wl1271_cmd_ext_radio_parms(struct wl1271 *wl); |
37 | int wl1271_cmd_join(struct wl1271 *wl, u8 bss_type); | 39 | int wl1271_cmd_join(struct wl1271 *wl, u8 bss_type); |
38 | int wl1271_cmd_test(struct wl1271 *wl, void *buf, size_t buf_len, u8 answer); | 40 | int 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 | ||
420 | struct 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 | |||
418 | struct wl1271_radio_parms_cmd { | 435 | struct 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 | ||
451 | struct 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 | |||
434 | struct wl1271_ext_radio_parms_cmd { | 468 | struct wl1271_ext_radio_parms_cmd { |
435 | struct wl1271_cmd_header header; | 469 | struct wl1271_cmd_header header; |
436 | 470 | ||