diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2010-05-14 03:46:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-02 16:13:05 -0400 |
commit | eb70eb723b489dd4e233e22e47d993f59858cdd8 (patch) | |
tree | 97efd7b0a941eafc1ebb71d8b10326d93a840682 /drivers/net/wireless/wl12xx/wl1271_cmd.h | |
parent | ff37d9a9ce493743cfc4665edb05fbbdabca78ee (diff) |
wl1271: Update handling of the NVS file / INI parameters
This patch updates the handling of the NVS file INI-section, trying to make
it slightly more generic, and exposing the parameters being set. This is done
in preparation for 5GHz parameters.
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_cmd.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_cmd.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.h b/drivers/net/wireless/wl12xx/wl1271_cmd.h index f2820b42a943..4ff966f6354b 100644 --- a/drivers/net/wireless/wl12xx/wl1271_cmd.h +++ b/drivers/net/wireless/wl12xx/wl1271_cmd.h | |||
@@ -439,24 +439,30 @@ struct wl1271_general_parms_cmd { | |||
439 | 439 | ||
440 | struct wl1271_cmd_test_header test; | 440 | struct wl1271_cmd_test_header test; |
441 | 441 | ||
442 | u8 params[WL1271_NVS_GENERAL_PARAMS_SIZE]; | 442 | struct wl1271_ini_general_params general_params; |
443 | s8 reserved[23]; | ||
444 | } __attribute__ ((packed)); | ||
445 | 443 | ||
446 | #define WL1271_STAT_RADIO_PARAMS_5_SIZE 29 | 444 | u8 sr_debug_table[WL1271_INI_MAX_SMART_REFLEX_PARAM]; |
447 | #define WL1271_DYN_RADIO_PARAMS_5_SIZE 104 | 445 | u8 sr_sen_n_p; |
446 | u8 sr_sen_n_p_gain; | ||
447 | u8 sr_sen_nrn; | ||
448 | u8 sr_sen_prn; | ||
449 | u8 padding[3]; | ||
450 | } __attribute__ ((packed)); | ||
448 | 451 | ||
449 | struct wl1271_radio_parms_cmd { | 452 | struct wl1271_radio_parms_cmd { |
450 | struct wl1271_cmd_header header; | 453 | struct wl1271_cmd_header header; |
451 | 454 | ||
452 | struct wl1271_cmd_test_header test; | 455 | struct wl1271_cmd_test_header test; |
453 | 456 | ||
454 | u8 stat_radio_params[WL1271_NVS_STAT_RADIO_PARAMS_SIZE]; | 457 | /* Static radio parameters */ |
455 | u8 stat_radio_params_5[WL1271_STAT_RADIO_PARAMS_5_SIZE]; | 458 | struct wl1271_ini_band_params_2 static_params_2; |
459 | struct wl1271_ini_band_params_5 static_params_5; | ||
456 | 460 | ||
457 | u8 dyn_radio_params[WL1271_NVS_DYN_RADIO_PARAMS_SIZE]; | 461 | /* Dynamic radio parameters */ |
458 | u8 reserved; | 462 | struct wl1271_ini_fem_params_2 dyn_params_2; |
459 | u8 dyn_radio_params_5[WL1271_DYN_RADIO_PARAMS_5_SIZE]; | 463 | u8 padding2; |
464 | struct wl1271_ini_fem_params_5 dyn_params_5; | ||
465 | u8 padding3[2]; | ||
460 | } __attribute__ ((packed)); | 466 | } __attribute__ ((packed)); |
461 | 467 | ||
462 | struct wl1271_cmd_cal_channel_tune { | 468 | struct wl1271_cmd_cal_channel_tune { |