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>
This commit is contained in:

committed by
John W. Linville

parent
ff37d9a9ce
commit
eb70eb723b
@@ -439,24 +439,30 @@ struct wl1271_general_parms_cmd {
|
||||
|
||||
struct wl1271_cmd_test_header test;
|
||||
|
||||
u8 params[WL1271_NVS_GENERAL_PARAMS_SIZE];
|
||||
s8 reserved[23];
|
||||
} __attribute__ ((packed));
|
||||
struct wl1271_ini_general_params general_params;
|
||||
|
||||
#define WL1271_STAT_RADIO_PARAMS_5_SIZE 29
|
||||
#define WL1271_DYN_RADIO_PARAMS_5_SIZE 104
|
||||
u8 sr_debug_table[WL1271_INI_MAX_SMART_REFLEX_PARAM];
|
||||
u8 sr_sen_n_p;
|
||||
u8 sr_sen_n_p_gain;
|
||||
u8 sr_sen_nrn;
|
||||
u8 sr_sen_prn;
|
||||
u8 padding[3];
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct wl1271_radio_parms_cmd {
|
||||
struct wl1271_cmd_header header;
|
||||
|
||||
struct wl1271_cmd_test_header test;
|
||||
|
||||
u8 stat_radio_params[WL1271_NVS_STAT_RADIO_PARAMS_SIZE];
|
||||
u8 stat_radio_params_5[WL1271_STAT_RADIO_PARAMS_5_SIZE];
|
||||
/* Static radio parameters */
|
||||
struct wl1271_ini_band_params_2 static_params_2;
|
||||
struct wl1271_ini_band_params_5 static_params_5;
|
||||
|
||||
u8 dyn_radio_params[WL1271_NVS_DYN_RADIO_PARAMS_SIZE];
|
||||
u8 reserved;
|
||||
u8 dyn_radio_params_5[WL1271_DYN_RADIO_PARAMS_5_SIZE];
|
||||
/* Dynamic radio parameters */
|
||||
struct wl1271_ini_fem_params_2 dyn_params_2;
|
||||
u8 padding2;
|
||||
struct wl1271_ini_fem_params_5 dyn_params_5;
|
||||
u8 padding3[2];
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct wl1271_cmd_cal_channel_tune {
|
||||
|
Reference in New Issue
Block a user