mac80211: fix reordering of buffered broadcast packets
authorFelix Fietkau <nbd@nbd.name>
Wed, 28 Nov 2018 21:39:16 +0000 (22:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:18:54 +0000 (09:18 +0100)
commitbbc4242a9c2e3c97a5a8e7822b9c27915599f0c4
tree6883ee00172c02acd2dae91685f69b4b51e24465
parenta2c934fbbd43b5c349157c05374b9598f53a65f1
mac80211: fix reordering of buffered broadcast packets

commit 9ec1190d065998650fd9260dea8cf3e1f56c0e8c upstream.

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>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/tx.c