mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
703515f889
Includes the following changes:9edff13abd
mac80211: disable potentially harmful PS software retry for A-MPDU sessions75216a76b0
mac80211: backport upstream fix for CSA in IBSS mode368cc8ef47
mac80211: update brcmfmac backporting brcmf_err cleanups66a63d25c4
mac80211: fix build on linux 3.189eacb9d7fc
rt2x00: mt7620: lots of improvementsfd94fa61a7
mac80211: brcmfmac: update Raspberry Pi patches for linux 4.9649e766a64
mac80211: update to wireless-testing 2017-01-3147540afa5d
ath9k: add a warning to the tx99 config optionb367eef21d
mac80211: rt2x00: add support for external LNA on MT76209200e168f2
mac80211: move (& update) upstream accepted brcmfmac patches Signed-off-by: Felix Fietkau <nbd@nbd.name>
51 lines
1.4 KiB
Diff
51 lines
1.4 KiB
Diff
From: Felix Fietkau <nbd@nbd.name>
|
|
Date: Sun, 28 Aug 2016 13:13:01 +0200
|
|
Subject: [PATCH] ath9k: fix moredata bit in PS buffered frame release
|
|
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
---
|
|
|
|
--- a/drivers/net/wireless/ath/ath9k/xmit.c
|
|
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
|
|
@@ -1694,6 +1694,22 @@ void ath_tx_aggr_wakeup(struct ath_softc
|
|
}
|
|
}
|
|
|
|
+
|
|
+static void
|
|
+ath9k_set_moredata(struct ath_softc *sc, struct ath_buf *bf, bool val)
|
|
+{
|
|
+ struct ieee80211_hdr *hdr;
|
|
+ u16 mask = cpu_to_le16(IEEE80211_FCTL_MOREDATA);
|
|
+ u16 mask_val = mask * val;
|
|
+
|
|
+ hdr = (struct ieee80211_hdr *) bf->bf_mpdu->data;
|
|
+ if ((hdr->frame_control & mask) != mask_val) {
|
|
+ hdr->frame_control = (hdr->frame_control & ~mask) | mask_val;
|
|
+ dma_sync_single_for_device(sc->dev, bf->bf_buf_addr,
|
|
+ sizeof(*hdr), DMA_TO_DEVICE);
|
|
+ }
|
|
+}
|
|
+
|
|
void ath9k_release_buffered_frames(struct ieee80211_hw *hw,
|
|
struct ieee80211_sta *sta,
|
|
u16 tids, int nframes,
|
|
@@ -1724,6 +1740,7 @@ void ath9k_release_buffered_frames(struc
|
|
if (!bf)
|
|
break;
|
|
|
|
+ ath9k_set_moredata(sc, bf, true);
|
|
list_add_tail(&bf->list, &bf_q);
|
|
ath_set_rates(tid->an->vif, tid->an->sta, bf, true);
|
|
if (bf_isampdu(bf)) {
|
|
@@ -1747,6 +1764,9 @@ void ath9k_release_buffered_frames(struc
|
|
if (list_empty(&bf_q))
|
|
return;
|
|
|
|
+ if (!more_data)
|
|
+ ath9k_set_moredata(sc, bf_tail, false);
|
|
+
|
|
info = IEEE80211_SKB_CB(bf_tail->bf_mpdu);
|
|
info->flags |= IEEE80211_TX_STATUS_EOSP;
|
|
|