3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

ap: Fix incoming Probe Request BSSID check

Setting 'match' false wouldn't do anything because it was already false.
If the frame is addressed to some other non-broadcast address ignore it
directly and exit ap_probe_req_cb.
This commit is contained in:
Andrew Zaborowski 2020-08-27 20:14:48 +02:00 committed by Denis Kenzior
parent 137309c998
commit 1449b8fbc4

View File

@ -1129,11 +1129,11 @@ static void ap_probe_req_cb(const struct mmpdu_header *hdr, const void *body,
if (memcmp(hdr->address_1, bssid, 6) &&
!util_is_broadcast_address(hdr->address_1))
match = false;
return;
if (memcmp(hdr->address_3, bssid, 6) &&
!util_is_broadcast_address(hdr->address_3))
match = false;
return;
if (!ssid || ssid_len == 0) /* Wildcard SSID */
match = true;