Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291277
b: refs/heads/master
c: 18aa755
h: refs/heads/master
i:
  291275: 9be0d72
v: v3
  • Loading branch information
Arik Nemtsov authored and Luciano Coelho committed Feb 28, 2012
1 parent 2f0af55 commit 7a6deac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49c9cd26445aa8bc8348c384c943b758c57c47a9
refs/heads/master: 18aa755b84715f36e2811734f95cb822bcacfd89
7 changes: 7 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,7 @@ void wl12xx_tx_reset(struct wl1271 *wl, bool reset_tx_queues)
void wl1271_tx_flush(struct wl1271 *wl)
{
unsigned long timeout;
int i;
timeout = jiffies + usecs_to_jiffies(WL1271_TX_FLUSH_TIMEOUT);

while (!time_after(jiffies, timeout)) {
Expand All @@ -1057,6 +1058,12 @@ void wl1271_tx_flush(struct wl1271 *wl)
}

wl1271_warning("Unable to flush all TX buffers, timed out.");

/* forcibly flush all Tx buffers on our queues */
mutex_lock(&wl->mutex);
for (i = 0; i < WL12XX_MAX_LINKS; i++)
wl1271_tx_reset_link_queues(wl, i);
mutex_unlock(&wl->mutex);
}

u32 wl1271_tx_min_rate_get(struct wl1271 *wl, u32 rate_set)
Expand Down

0 comments on commit 7a6deac

Please sign in to comment.