[PATCH] android: randomize pre-association MAC addresses

Jouni Malinen j at w1.fi
Thu Apr 28 10:58:21 PDT 2016

On Wed, Apr 20, 2016 at 12:16:33PM -0400, Daniel Micay wrote:
> This enables pre-associating (scanning) MAC address randomization for
> Android. It uses the default 60 second expiry time.
> Change-Id: Id23947f46a0014e2b42913cd0a2cc3f908c3bc62
> ---

This would need to have a Signed-off-by: line in the commit message as
described in the top level CONTRIBUTIONS file.

> diff --git a/wpa_supplicant/wpa_supplicant_template.conf b/wpa_supplicant/wpa_supplicant_template.conf

> +preassoc_mac_addr=1

How has this been tested? I'm mainly interested in which Android
versions and Wi-Fi drivers were used.

I don't think I'd recommend using this preassoc_mac_addr=1 design since
it changes the MAC address of the netdev. Instead, I'd use the pre-scan
request mechanism to request driver to use random MAC addresses. This
can be configured with the MAC_RAND_SCAN control interface command.
Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list