aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_cmd.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2010-05-14 03:46:22 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-02 16:13:05 -0400
commiteb70eb723b489dd4e233e22e47d993f59858cdd8 (patch)
tree97efd7b0a941eafc1ebb71d8b10326d93a840682 /drivers/net/wireless/wl12xx/wl1271_cmd.c
parentff37d9a9ce493743cfc4665edb05fbbdabca78ee (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.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_cmd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.c b/drivers/net/wireless/wl12xx/wl1271_cmd.c
index 19393e236e2c..241b47781865 100644
--- a/drivers/net/wireless/wl12xx/wl1271_cmd.c
+++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c
@@ -212,8 +212,8 @@ int wl1271_cmd_general_parms(struct wl1271 *wl)
212 212
213 gen_parms->test.id = TEST_CMD_INI_FILE_GENERAL_PARAM; 213 gen_parms->test.id = TEST_CMD_INI_FILE_GENERAL_PARAM;
214 214
215 memcpy(gen_parms->params, wl->nvs->general_params, 215 memcpy(&gen_parms->general_params, &wl->nvs->general_params,
216 WL1271_NVS_GENERAL_PARAMS_SIZE); 216 sizeof(struct wl1271_ini_general_params));
217 217
218 ret = wl1271_cmd_test(wl, gen_parms, sizeof(*gen_parms), 0); 218 ret = wl1271_cmd_test(wl, gen_parms, sizeof(*gen_parms), 0);
219 if (ret < 0) 219 if (ret < 0)
@@ -238,11 +238,11 @@ int wl1271_cmd_radio_parms(struct wl1271 *wl)
238 238
239 radio_parms->test.id = TEST_CMD_INI_FILE_RADIO_PARAM; 239 radio_parms->test.id = TEST_CMD_INI_FILE_RADIO_PARAM;
240 240
241 memcpy(radio_parms->stat_radio_params, wl->nvs->stat_radio_params, 241 memcpy(&radio_parms->static_params_2, &wl->nvs->stat_radio_params_2,
242 WL1271_NVS_STAT_RADIO_PARAMS_SIZE); 242 sizeof(struct wl1271_ini_band_params_2));
243 memcpy(radio_parms->dyn_radio_params, 243 memcpy(&radio_parms->dyn_params_2,
244 wl->nvs->dyn_radio_params[rparam->fem], 244 &wl->nvs->dyn_radio_params_2[rparam->fem].params,
245 WL1271_NVS_DYN_RADIO_PARAMS_SIZE); 245 sizeof(struct wl1271_ini_fem_params_2));
246 246
247 /* FIXME: current NVS is missing 5GHz parameters */ 247 /* FIXME: current NVS is missing 5GHz parameters */
248 248