diff options
author | Luciano Coelho <luciano.coelho@nokia.com> | 2009-11-23 16:22:16 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-28 15:04:29 -0500 |
commit | cc7defa366ea770efb25add8711defe88862197b (patch) | |
tree | d0c51537af5b7bf73c16197cfaec484f07179a4c | |
parent | 17d7265c7582af77357bd31884cef26f9f802313 (diff) |
wl1271: set radio and general params also for PLT
We need to set the radio and general parameters when starting PLT mode. This
patch adds calls to TEST_CMD_INI_RADIO_PARAMS and
TEST_CMD_INIT_GENERAL_PARAMS when initializing PLT mode.
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_init.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_init.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 11 |
3 files changed, 15 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_init.c b/drivers/net/wireless/wl12xx/wl1271_init.c index 7c2017f480ea..95ee0368438a 100644 --- a/drivers/net/wireless/wl12xx/wl1271_init.c +++ b/drivers/net/wireless/wl12xx/wl1271_init.c | |||
@@ -193,7 +193,7 @@ static int wl1271_init_beacon_broadcast(struct wl1271 *wl) | |||
193 | return 0; | 193 | return 0; |
194 | } | 194 | } |
195 | 195 | ||
196 | static int wl1271_init_general_parms(struct wl1271 *wl) | 196 | int wl1271_init_general_parms(struct wl1271 *wl) |
197 | { | 197 | { |
198 | struct wl1271_general_parms *gen_parms; | 198 | struct wl1271_general_parms *gen_parms; |
199 | struct conf_general_parms *g = &wl->conf.init.genparam; | 199 | struct conf_general_parms *g = &wl->conf.init.genparam; |
@@ -224,7 +224,7 @@ static int wl1271_init_general_parms(struct wl1271 *wl) | |||
224 | return 0; | 224 | return 0; |
225 | } | 225 | } |
226 | 226 | ||
227 | static int wl1271_init_radio_parms(struct wl1271 *wl) | 227 | int wl1271_init_radio_parms(struct wl1271 *wl) |
228 | { | 228 | { |
229 | struct wl1271_radio_parms *radio_parms; | 229 | struct wl1271_radio_parms *radio_parms; |
230 | struct conf_radio_parms *r = &wl->conf.init.radioparam; | 230 | struct conf_radio_parms *r = &wl->conf.init.radioparam; |
diff --git a/drivers/net/wireless/wl12xx/wl1271_init.h b/drivers/net/wireless/wl12xx/wl1271_init.h index 6e21ceee76a6..539b57f207c6 100644 --- a/drivers/net/wireless/wl12xx/wl1271_init.h +++ b/drivers/net/wireless/wl12xx/wl1271_init.h | |||
@@ -28,6 +28,8 @@ | |||
28 | 28 | ||
29 | int wl1271_hw_init_power_auth(struct wl1271 *wl); | 29 | int wl1271_hw_init_power_auth(struct wl1271 *wl); |
30 | int wl1271_hw_init(struct wl1271 *wl); | 30 | int wl1271_hw_init(struct wl1271 *wl); |
31 | int wl1271_init_general_parms(struct wl1271 *wl); | ||
32 | int wl1271_init_radio_parms(struct wl1271 *wl); | ||
31 | 33 | ||
32 | /* These are not really a TEST_CMD, but the ref driver uses them as such */ | 34 | /* These are not really a TEST_CMD, but the ref driver uses them as such */ |
33 | #define TEST_CMD_INI_FILE_RADIO_PARAM 0x19 | 35 | #define TEST_CMD_INI_FILE_RADIO_PARAM 0x19 |
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index c8652eed3677..d4e603993996 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c | |||
@@ -354,6 +354,17 @@ static int wl1271_plt_init(struct wl1271 *wl) | |||
354 | { | 354 | { |
355 | int ret; | 355 | int ret; |
356 | 356 | ||
357 | /* FIXME: the following parameter setting functions return error | ||
358 | * codes - the reason is so far unknown. The -EIO is therefore | ||
359 | * ignored for the time being. */ | ||
360 | ret = wl1271_init_general_parms(wl); | ||
361 | if (ret < 0 && ret != -EIO) | ||
362 | return ret; | ||
363 | |||
364 | ret = wl1271_init_radio_parms(wl); | ||
365 | if (ret < 0 && ret != -EIO) | ||
366 | return ret; | ||
367 | |||
357 | ret = wl1271_acx_init_mem_config(wl); | 368 | ret = wl1271_acx_init_mem_config(wl); |
358 | if (ret < 0) | 369 | if (ret < 0) |
359 | return ret; | 370 | return ret; |