~linuxhackerman/iwd

1449b8fbc481938cf0fce2d3021c3b73533634dc — Andrew Zaborowski 1 year, 3 months ago 137309c
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.
1 files changed, 2 insertions(+), 2 deletions(-)

M src/ap.c
M src/ap.c => src/ap.c +2 -2
@@ 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;