[PATCH v2] scan: disable MAC randomization during P2P provisioning
Jouni Malinen
j at w1.fi
Mon Jul 27 02:04:57 PDT 2026
On Tue, May 26, 2026 at 01:27:00PM +0200, Benjamin Berg wrote:
> If the P2P GO has already been started and we are just trying to find
> its beacon, then we should not randomize the MAC address. Doing so
> would conflict with the P2P GO possibly having a MAC filter installed
> and ignoring the probe requests (wpa_supplicant does this).
>
> So, do not enable address randomization if in P2P provisioning.
>
> Also move the wpa_state check into wpa_setup_mac_addr_rand_params so
> that all the checks are in the same location.
>
> Note that other P2P scans bypass the main wpa_supplicant scanning
> facilities and avoid MAC randomization that way.
Thanks, applied.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list