Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268709
b: refs/heads/master
c: fa1b6ab
h: refs/heads/master
i:
  268707: 61632b2
v: v3
  • Loading branch information
Alwin Beukers authored and Greg Kroah-Hartman committed Oct 5, 2011
1 parent eb5f3ee commit 3ec25ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 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: 1689e9b11874143caa52ec3e66711c6a75e8caf9
refs/heads/master: fa1b6ab7a5cea3ae0c0eed0704c47e7bfd6ac20c
22 changes: 4 additions & 18 deletions trunk/drivers/staging/brcm80211/brcmsmac/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,21 +995,6 @@ brcms_c_dotxstatus(struct brcms_c_info *wlc, struct tx_status *txs)

}

static bool
brcms_b_dotxstatus(struct brcms_hardware *wlc_hw, struct tx_status *txs)
{
/* discard intermediate indications for ucode with one legitimate case:
* e.g. if "useRTS" is set. ucode did a successful rts/cts exchange,
* but the subsequent tx of DATA failed. so it will start rts/cts from
* the beginning (resetting the rts transmission count)
*/
if (!(txs->status & TX_STATUS_AMPDU)
&& (txs->status & TX_STATUS_INTERMEDIATE))
return false;

return brcms_c_dotxstatus(wlc_hw->wlc, txs);
}

/* process tx completion events in BMAC
* Return true if more tx status need to be processed. false otherwise.
*/
Expand All @@ -1032,6 +1017,7 @@ brcms_b_txstatus(struct brcms_hardware *wlc_hw, bool bound, bool *fatal)

txs = &txstatus;
regs = wlc_hw->regs;
*fatal = false;
while (!(*fatal)
&& (s1 = R_REG(&regs->frmtxstatus)) & TXS_V) {

Expand All @@ -1041,15 +1027,15 @@ brcms_b_txstatus(struct brcms_hardware *wlc_hw, bool bound, bool *fatal)
return morepending;
}

s2 = R_REG(&regs->frmtxstatus2);
s2 = R_REG(&regs->frmtxstatus2);

txs->status = s1 & TXS_STATUS_MASK;
txs->frameid = (s1 & TXS_FID_MASK) >> TXS_FID_SHIFT;
txs->sequence = s2 & TXS_SEQ_MASK;
txs->phyerr = (s2 & TXS_PTX_MASK) >> TXS_PTX_SHIFT;
txs->lasttxtime = 0;

*fatal = brcms_b_dotxstatus(wlc_hw, txs);
*fatal = brcms_c_dotxstatus(wlc_hw->wlc, txs);

/* !give others some time to run! */
if (++n >= max_tx_num)
Expand Down Expand Up @@ -1077,7 +1063,6 @@ bool brcms_c_dpc(struct brcms_c_info *wlc, bool bounded)
u32 macintstatus;
struct brcms_hardware *wlc_hw = wlc->hw;
struct d11regs __iomem *regs = wlc_hw->regs;
bool fatal = false;
struct wiphy *wiphy = wlc->wiphy;

if (brcms_deviceremoved(wlc)) {
Expand All @@ -1098,6 +1083,7 @@ bool brcms_c_dpc(struct brcms_c_info *wlc, bool bounded)

/* tx status */
if (macintstatus & MI_TFS) {
bool fatal;
if (brcms_b_txstatus(wlc->hw, bounded, &fatal))
wlc->macintstatus |= MI_TFS;
if (fatal) {
Expand Down

0 comments on commit 3ec25ba

Please sign in to comment.