mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-28 15:14:11 +00:00
ath9k: fix length handling of unaggregated frames (might resolve some rts/cts issues)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38995
This commit is contained in:
parent
fb6ebac74a
commit
95065c08b0
@ -2272,7 +2272,18 @@
|
|||||||
-EXPORT_SYMBOL(ath9k_hw_wow_enable);
|
-EXPORT_SYMBOL(ath9k_hw_wow_enable);
|
||||||
--- a/drivers/net/wireless/ath/ath9k/xmit.c
|
--- a/drivers/net/wireless/ath/ath9k/xmit.c
|
||||||
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
|
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
|
||||||
@@ -1786,6 +1786,9 @@ bool ath_drain_all_txq(struct ath_softc
|
@@ -1276,6 +1276,10 @@ static void ath_tx_fill_desc(struct ath_
|
||||||
|
if (!rts_thresh || (len > rts_thresh))
|
||||||
|
rts = true;
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ if (!aggr)
|
||||||
|
+ len = fi->framelen;
|
||||||
|
+
|
||||||
|
ath_buf_set_rate(sc, bf, &info, len, rts);
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -1786,6 +1790,9 @@ bool ath_drain_all_txq(struct ath_softc
|
||||||
if (!ATH_TXQ_SETUP(sc, i))
|
if (!ATH_TXQ_SETUP(sc, i))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -2282,7 +2293,7 @@
|
|||||||
if (ath9k_hw_numtxpending(ah, sc->tx.txq[i].axq_qnum))
|
if (ath9k_hw_numtxpending(ah, sc->tx.txq[i].axq_qnum))
|
||||||
npend |= BIT(i);
|
npend |= BIT(i);
|
||||||
}
|
}
|
||||||
@@ -2749,6 +2752,8 @@ void ath_tx_node_cleanup(struct ath_soft
|
@@ -2749,6 +2756,8 @@ void ath_tx_node_cleanup(struct ath_soft
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2291,7 +2302,7 @@
|
|||||||
int ath9k_tx99_send(struct ath_softc *sc, struct sk_buff *skb,
|
int ath9k_tx99_send(struct ath_softc *sc, struct sk_buff *skb,
|
||||||
struct ath_tx_control *txctl)
|
struct ath_tx_control *txctl)
|
||||||
{
|
{
|
||||||
@@ -2791,3 +2796,5 @@ int ath9k_tx99_send(struct ath_softc *sc
|
@@ -2791,3 +2800,5 @@ int ath9k_tx99_send(struct ath_softc *sc
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user