[lkml]   [2009]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[120/151] ath9k: fix tx status reporting
    2.6.32-stable review patch.  If anyone has any objections, please let us know.


    From: Felix Fietkau <>

    This is a backport of upstream commit: e8c6342d989e241513baeba4b05a04b6b1f3bc8b

    This patch fixes a bug in ath9k's tx status check, which
    caused mac80211 to consider regularly transmitted unicast frames
    as un-acked.

    When checking the ts_status field for errors, it needs to be masked
    with ATH9K_TXERR_FILT, because this field also contains other fields
    like ATH9K_TX_ACKED.

    Without this patch, AP mode is pretty much unusable, as hostapd
    checks the ACK status for the frames that it injects.

    Signed-off-by: Felix Fietkau <>
    Signed-off-by: Luis R. Rodriguez <>
    Signed-off-by: Greg Kroah-Hartman <>
    drivers/net/wireless/ath/ath9k/xmit.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/net/wireless/ath/ath9k/xmit.c
    +++ b/drivers/net/wireless/ath/ath9k/xmit.c
    @@ -2020,7 +2020,7 @@ static void ath_tx_processq(struct ath_s
    if (bf_isaggr(bf))

    - txok = (ds->ds_txstat.ts_status == 0);
    + txok = !(ds->ds_txstat.ts_status & ATH9K_TXERR_FILT);
    txq->axq_tx_inprogress = false;

     \ /
      Last update: 2009-12-17 05:09    [W:0.019 / U:38.636 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site