mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
mt76: update to the latest version and mac80211: fix reordering of buffered broadcast packets
* mt76: update to the latest version * mt76: update to the latest version * mac80211: fix reordering of buffered broadcast packets
This commit is contained in:
parent
fdc4c68781
commit
f455ccf275
@ -0,0 +1,28 @@
|
||||
From: Felix Fietkau <nbd@nbd.name>
|
||||
Date: Wed, 28 Nov 2018 22:36:06 +0100
|
||||
Subject: [PATCH] mac80211: fix reordering of buffered broadcast packets
|
||||
|
||||
If the buffered broadcast queue contains packets, letting new packets bypass
|
||||
that queue can lead to heavy reordering, since the driver is probably throttling
|
||||
transmission of buffered multicast packets after beacons.
|
||||
|
||||
Keep buffering packets until the buffer has been cleared (and no client
|
||||
is in powersave mode).
|
||||
|
||||
Cc: stable@vger.kernel.org
|
||||
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
---
|
||||
|
||||
--- a/net/mac80211/tx.c
|
||||
+++ b/net/mac80211/tx.c
|
||||
@@ -435,8 +435,8 @@ ieee80211_tx_h_multicast_ps_buf(struct i
|
||||
if (ieee80211_hw_check(&tx->local->hw, QUEUE_CONTROL))
|
||||
info->hw_queue = tx->sdata->vif.cab_queue;
|
||||
|
||||
- /* no stations in PS mode */
|
||||
- if (!atomic_read(&ps->num_sta_ps))
|
||||
+ /* no stations in PS mode and no buffered packets */
|
||||
+ if (!atomic_read(&ps->num_sta_ps) && skb_queue_empty(&ps->bc_buf))
|
||||
return TX_CONTINUE;
|
||||
|
||||
info->flags |= IEEE80211_TX_CTL_SEND_AFTER_DTIM;
|
@ -8,9 +8,9 @@ PKG_LICENSE_FILES:=
|
||||
|
||||
PKG_SOURCE_URL:=https://github.com/openwrt/mt76
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_DATE:=2018-11-16.1
|
||||
PKG_SOURCE_VERSION:=96b3b3d60da10fc64ce56d06e431bf2e3f9a4514
|
||||
PKG_MIRROR_HASH:=2b2add0bb87186a280435f864d54a5e43290ba05999a6a088f1ea2cb54b2144f
|
||||
PKG_SOURCE_DATE:=2018-11-28
|
||||
PKG_SOURCE_VERSION:=44bb37288cb7a76d710da9334d9e0b1b6627476a
|
||||
PKG_MIRROR_HASH:=0d11c67a765a74632936865e1eacd40eca733fb89affc6429ebd7a13e4b044b3
|
||||
|
||||
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
Loading…
Reference in New Issue
Block a user