wpa_supplicant MAC address randomisation and per network

redfast00 _ <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Message-ID <CANCy6rB56Y7t823xNOeH1ZAA37xifAs2nmXVEpHDP9rk879C+A@mail.gmail.com>
Hi all,

With the mac_addr=1 option, you can enable MAC-address randomisation.
This randomises the MAC address for every ESS connection, so when
connecting to the same network after disconnecting, you will have
another MAC address. I would like to hardcode an address per network:
this could be an option per network: if the option is not there, it
takes the global option (either the default MAC address, or a randomly
generated MAC address if it is enabled).

I want to do this to accomplish 2 goals: have MAC address
randomisation, so I can't be tracked via the MAC address, and still
have a static MAC address on networks that need it (networks with a
static DHCP leases).

I looked into the sourcecode, and saw the wpa_drv_set_mac_addr in
wpa_supplicant.c, but I don't really know how to go about
implementing my patch and submitting it: I know C, but I don't know
what files should have what functions.

Kind regards
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.