Message ID | 20131211154810.GB7411@tuxdriver.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
From: "John W. Linville" <linville@tuxdriver.com> Date: Wed, 11 Dec 2013 10:48:10 -0500 > Just one patch this time -- a fix from Felix Fietkau to fix the > duration calculation for non-aggregated packets in ath9k. This is > a small change and it is obviously specific to ath9k. Pulled, thanks John. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 09cdbcd09739..b5a19e098f2d 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -1276,6 +1276,10 @@ static void ath_tx_fill_desc(struct ath_softc *sc, struct ath_buf *bf, if (!rts_thresh || (len > rts_thresh)) rts = true; } + + if (!aggr) + len = fi->framelen; + ath_buf_set_rate(sc, bf, &info, len, rts); }