Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314145
b: refs/heads/master
c: a4203c6
h: refs/heads/master
i:
  314143: c6aa33a
v: v3
  • Loading branch information
Victor Goldenshtein authored and Luciano Coelho committed Jun 5, 2012
1 parent 39d0cb8 commit 5e3ec6a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 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: e832837bbb91ae8610fa0a0f3d243d42823ec815
refs/heads/master: a4203c6453afcd21b3a6f0be592bf74951e80c72
16 changes: 11 additions & 5 deletions trunk/drivers/net/wireless/ti/wlcore/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1606,19 +1606,25 @@ static int wl12xx_cmd_croc(struct wl1271 *wl, u8 role_id)
int wl12xx_roc(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 role_id)
{
int ret = 0;
bool is_first_roc;

if (WARN_ON(test_bit(role_id, wl->roc_map)))
return 0;

is_first_roc = (find_first_bit(wl->roc_map, WL12XX_MAX_ROLES) >=
WL12XX_MAX_ROLES);

ret = wl12xx_cmd_roc(wl, wlvif, role_id);
if (ret < 0)
goto out;

ret = wl1271_cmd_wait_for_event(wl,
REMAIN_ON_CHANNEL_COMPLETE_EVENT_ID);
if (ret < 0) {
wl1271_error("cmd roc event completion error");
goto out;
if (is_first_roc) {
ret = wl1271_cmd_wait_for_event(wl,
REMAIN_ON_CHANNEL_COMPLETE_EVENT_ID);
if (ret < 0) {
wl1271_error("cmd roc event completion error");
goto out;
}
}

__set_bit(role_id, wl->roc_map);
Expand Down

0 comments on commit 5e3ec6a

Please sign in to comment.