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:
parent
3e0e31544e
commit
efdc2a63eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user