FAILED: patch "[PATCH] mt76: fix corrupted software generated tx CCMP PN" failed to apply to 4.19-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 4.19-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 906d2d3f874a54183df5a609fda180adf0462428 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <[email protected]>
Date: Fri, 25 Jan 2019 17:59:06 +0100
Subject: [PATCH] mt76: fix corrupted software generated tx CCMP PN
Since ccmp_pn is u8 *, the second half needs to start at array index 4 instead of 0. Fixes a connection stall after a certain amount of traffic
Fixes 23405236460b9 ("mt76: fix transmission of encrypted management frames")
Signed-off-by Felix Fietkau <[email protected]>
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c +1 -1
@@ -314,7 +314,7 @@ void mt76x02_mac_write_txwi(struct mt76x02_dev *dev, struct mt76x02_txwi *txwi, ccmp_pn[6 ] = pn >>32 ; ccmp_pn[7 ] = pn >>40 ; txwi->iv = *((__le32 *)&ccmp_pn[0 ]); - txwi->eiv = *((__le32 *)&ccmp_pn[1 ]); + txwi->eiv = *((__le32 *)&ccmp_pn[4 ]); }spin_lock_bh (&dev->mt76.lock);