wifi: mac80211: Don't translate MLD addresses for multicast
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Tue, 14 Feb 2023 10:10:48 +0000 (12:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:05 +0000 (09:33 +0100)
commit1ee0a1d7fb3b1fc0eb78c70b03cbc9f915f3fc7f
treeba837a0483f79e42d4f664d82e64d8aff104b0c2
parent1d7e57d794b5150b97441a2968449e3594ef0d5e
wifi: mac80211: Don't translate MLD addresses for multicast

[ Upstream commit daf8fb4295dccc032515cdc1bd3873370063542b ]

MLD address translation should be done only for individually addressed
frames. Otherwise, AAD calculation would be wrong and the decryption
would fail.

Fixes: e66b7920aa5ac ("wifi: mac80211: fix initialization of rx->link and rx->link_sta")
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Link: https://lore.kernel.org/r/20230214101048.792414-1-andrei.otcheretianski@intel.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/rx.c