Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286651
b: refs/heads/master
c: f96b08a
h: refs/heads/master
i:
  286649: 3c1a4d3
  286647: 2ee9eea
v: v3
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Jan 18, 2012
1 parent 6ecefb9 commit 889062c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 9446f3efc53512e5ad9e0966539021a2a41fe5a0
refs/heads/master: f96b08a7e6f69c0f0a576554df3df5b1b519c479
10 changes: 9 additions & 1 deletion trunk/drivers/net/wireless/brcm80211/brcmsmac/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7981,13 +7981,21 @@ int brcms_c_get_curband(struct brcms_c_info *wlc)

void brcms_c_wait_for_tx_completion(struct brcms_c_info *wlc, bool drop)
{
int timeout = 20;

/* flush packet queue when requested */
if (drop)
brcmu_pktq_flush(&wlc->pkt_queue->q, false, NULL, NULL);

/* wait for queue and DMA fifos to run dry */
while (!pktq_empty(&wlc->pkt_queue->q) || brcms_txpktpendtot(wlc) > 0)
while (!pktq_empty(&wlc->pkt_queue->q) || brcms_txpktpendtot(wlc) > 0) {
brcms_msleep(wlc->wl, 1);

if (--timeout == 0)
break;
}

WARN_ON_ONCE(timeout == 0);
}

void brcms_c_set_beacon_listen_interval(struct brcms_c_info *wlc, u8 interval)
Expand Down

0 comments on commit 889062c

Please sign in to comment.