diff options
author | John W. Linville <linville@tuxdriver.com> | 2013-02-06 22:55:44 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-02-06 22:55:44 +0400 |
commit | b3b66ae4c8aff0636521034d824b8953dc617335 (patch) | |
tree | 0a4c792efd730a59adc79d0d2476e0a4b3aa2f2e /drivers/net/wireless/brcm80211/brcmsmac/main.c | |
parent | bf414b369f158bb527f9f29174ada815f961b44c (diff) | |
parent | 7b2385b95363c9ff49801c19cba2489a05bd6672 (diff) | |
download | linux-b3b66ae4c8aff0636521034d824b8953dc617335.tar.xz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/main.c')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/main.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.c b/drivers/net/wireless/brcm80211/brcmsmac/main.c index 9f3d7e9f3bb5..8b5839008af3 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/main.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c @@ -7511,25 +7511,16 @@ int brcms_c_get_curband(struct brcms_c_info *wlc) return wlc->band->bandunit; } -void brcms_c_wait_for_tx_completion(struct brcms_c_info *wlc, bool drop) +bool brcms_c_tx_flush_completed(struct brcms_c_info *wlc) { - int timeout = 20; int i; /* Kick DMA to send any pending AMPDU */ for (i = 0; i < ARRAY_SIZE(wlc->hw->di); i++) if (wlc->hw->di[i]) - dma_txflush(wlc->hw->di[i]); + dma_kick_tx(wlc->hw->di[i]); - /* wait for queue and DMA fifos to run dry */ - while (brcms_txpktpendtot(wlc) > 0) { - brcms_msleep(wlc->wl, 1); - - if (--timeout == 0) - break; - } - - WARN_ON_ONCE(timeout == 0); + return !brcms_txpktpendtot(wlc); } void brcms_c_set_beacon_listen_interval(struct brcms_c_info *wlc, u8 interval) |