Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172196
b: refs/heads/master
c: cc7defa
h: refs/heads/master
v: v3
  • Loading branch information
Luciano Coelho authored and John W. Linville committed Nov 28, 2009
1 parent 16f3745 commit 035d034
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17d7265c7582af77357bd31884cef26f9f802313
refs/heads/master: cc7defa366ea770efb25add8711defe88862197b
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/wl12xx/wl1271_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ static int wl1271_init_beacon_broadcast(struct wl1271 *wl)
return 0;
}

static int wl1271_init_general_parms(struct wl1271 *wl)
int wl1271_init_general_parms(struct wl1271 *wl)
{
struct wl1271_general_parms *gen_parms;
struct conf_general_parms *g = &wl->conf.init.genparam;
Expand Down Expand Up @@ -224,7 +224,7 @@ static int wl1271_init_general_parms(struct wl1271 *wl)
return 0;
}

static int wl1271_init_radio_parms(struct wl1271 *wl)
int wl1271_init_radio_parms(struct wl1271 *wl)
{
struct wl1271_radio_parms *radio_parms;
struct conf_radio_parms *r = &wl->conf.init.radioparam;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/wl1271_init.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

int wl1271_hw_init_power_auth(struct wl1271 *wl);
int wl1271_hw_init(struct wl1271 *wl);
int wl1271_init_general_parms(struct wl1271 *wl);
int wl1271_init_radio_parms(struct wl1271 *wl);

/* These are not really a TEST_CMD, but the ref driver uses them as such */
#define TEST_CMD_INI_FILE_RADIO_PARAM 0x19
Expand Down
11 changes: 11 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/wl1271_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,17 @@ static int wl1271_plt_init(struct wl1271 *wl)
{
int ret;

/* FIXME: the following parameter setting functions return error
* codes - the reason is so far unknown. The -EIO is therefore
* ignored for the time being. */
ret = wl1271_init_general_parms(wl);
if (ret < 0 && ret != -EIO)
return ret;

ret = wl1271_init_radio_parms(wl);
if (ret < 0 && ret != -EIO)
return ret;

ret = wl1271_acx_init_mem_config(wl);
if (ret < 0)
return ret;
Expand Down

0 comments on commit 035d034

Please sign in to comment.