3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

dpp: check configurator role in config request frame

We shouldn't ever get this frame as an enrollee, so disregard
This commit is contained in:
James Prestwood 2023-10-26 13:26:45 -07:00 committed by Denis Kenzior
parent 3e0e31544e
commit efdc2a63eb

View File

@ -946,6 +946,9 @@ static void dpp_handle_config_request_frame(const struct mmpdu_header *frame,
return;
}
if (dpp->role != DPP_CAPABILITY_CONFIGURATOR)
return;
if (memcmp(dpp->peer_addr, frame->address_2, 6)) {
l_debug("Configuration request not from authenticated peer");
return;