]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix rate control for retransmitted frames
authorFelix Fietkau <nbd@nbd.name>
Mon, 22 Nov 2021 20:43:23 +0000 (21:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Dec 2021 08:32:34 +0000 (09:32 +0100)
commitcb80ef0091fbf20621858d19d5f7d6de6aace7c4
tree5beeb7633e40463d45aaa210a4cd98d1a3706582
parent2d6f060858e0010bee55ca708da7f10481db69c1
mac80211: fix rate control for retransmitted frames

commit cfe6995d028b1cc5a68b6876997a004377e5f2e9 upstream.

Since retransmission clears info->control, rate control needs to be called
again, otherwise the driver might crash due to invalid rates.

Cc: stable@vger.kernel.org # 5.14+
Reported-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Reported-by: Robert W <rwbugreport@lost-in-the-void.net>
Fixes: 75937a5a2e21 ("mac80211: call ieee80211_tx_h_rate_ctrl() when dequeue")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Link: https://lore.kernel.org/r/20211122204323.9787-1-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