Revert "wifi: mac80211: Update skb's control block key in ieee80211_tx_dequeue()"
authorJohannes Berg <johannes.berg@intel.com>
Fri, 11 Apr 2025 14:13:34 +0000 (16:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:45:40 +0000 (10:45 +0200)
[ Upstream commit 0937cb5f345c79d702b4d0d744e2a2529b551cb2 ]

This reverts commit a104042e2bf6528199adb6ca901efe7b60c2c27f.

Since the original bug seems to have been around for years,
but a new issue was report with the fix, revert the fix for
now. We have a couple of weeks to figure it out for this
release, if needed.

Reported-by: Bert Karwatzki <spasswolf@web.de>
Closes: https://lore.kernel.org/linux-wireless/20250410215527.3001-1-spasswolf@web.de
Fixes: a104042e2bf6 ("wifi: mac80211: Update skb's control block key in ieee80211_tx_dequeue()")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/tx.c

index 8c46498152d76e8f24cf0a376f2945eb7bafee5c..45a093d3f1fa7f3e2ab21534208b4a6c97e2ef6e 100644 (file)
@@ -3877,7 +3877,6 @@ begin:
         * The key can be removed while the packet was queued, so need to call
         * this here to get the current key.
         */
-       info->control.hw_key = NULL;
        r = ieee80211_tx_h_select_key(&tx);
        if (r != TX_CONTINUE) {
                ieee80211_free_txskb(&local->hw, skb);