wifi: mac80211: accept probe response on link address as well
authorAditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Fri, 16 May 2025 10:32:08 +0000 (16:02 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 May 2025 07:26:28 +0000 (09:26 +0200)
commit0b0ff976af94fc2437b62e3798f11aacc3798613
treeeb52b7bbd46085d8b8c014c09e382049bdf7f44f
parent78a7a126dc5b8e3c5a3d4da9f513e0236d2dc1a3
wifi: mac80211: accept probe response on link address as well

If a random MAC address is not requested during scan request, unicast probe
response frames are only accepted if the destination address matches the
interface address. This works fine for non-ML interfaces. However, with
MLO, the same interface can have multiple links, and a scan on a link would
be requested with the link address. In such cases, the probe response frame
gets dropped which is incorrect.

Therefore, add logic to check if any of the link addresses match the
destination address if the interface address does not match.

Signed-off-by: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Link: https://patch.msgid.link/20250516-bug_fix_mlo_scan-v2-2-12e59d9110ac@oss.qualcomm.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/scan.c