Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352564
b: refs/heads/master
c: 5dc283f
h: refs/heads/master
v: v3
  • Loading branch information
Luciano Coelho committed Feb 8, 2013
1 parent 521ceae commit f4c00a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: 6cc9efed707c575a9e5880ea68f8b9d36b235f1f
refs/heads/master: 5dc283fe9ab360433aa05fcbe0f43cad40f68774
11 changes: 4 additions & 7 deletions trunk/drivers/net/wireless/ti/wlcore/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2162,7 +2162,7 @@ static int wl12xx_init_vif_data(struct wl1271 *wl, struct ieee80211_vif *vif)
return 0;
}

static bool wl12xx_init_fw(struct wl1271 *wl)
static int wl12xx_init_fw(struct wl1271 *wl)
{
int retries = WL1271_BOOT_RETRIES;
bool booted = false;
Expand Down Expand Up @@ -2228,7 +2228,7 @@ static bool wl12xx_init_fw(struct wl1271 *wl)

wl->state = WLCORE_STATE_ON;
out:
return booted;
return ret;
}

static bool wl12xx_dev_role_started(struct wl12xx_vif *wlvif)
Expand Down Expand Up @@ -2371,7 +2371,6 @@ static int wl1271_op_add_interface(struct ieee80211_hw *hw,
struct vif_counter_data vif_count;
int ret = 0;
u8 role_type;
bool booted = false;

vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER |
IEEE80211_VIF_SUPPORTS_CQM_RSSI;
Expand Down Expand Up @@ -2432,11 +2431,9 @@ static int wl1271_op_add_interface(struct ieee80211_hw *hw,
*/
memcpy(wl->addresses[0].addr, vif->addr, ETH_ALEN);

booted = wl12xx_init_fw(wl);
if (!booted) {
ret = -EINVAL;
ret = wl12xx_init_fw(wl);
if (ret < 0)
goto out;
}
}

ret = wl12xx_cmd_role_enable(wl, vif->addr,
Expand Down

0 comments on commit f4c00a2

Please sign in to comment.