]> git.ipfire.org Git - thirdparty/hostap.git/commit
wpa_supplicant: Add support for pregenerated MAC
authorAndrzej Ostruszka <amo@semihalf.com>
Wed, 10 Nov 2021 19:16:35 +0000 (19:16 +0000)
committerJouni Malinen <j@w1.fi>
Mon, 28 Nov 2022 17:05:26 +0000 (19:05 +0200)
commit9025def55cfdcdfa43cfb8712cd4befbf9fb4534
treec72f95b41072ab2158fa93d972e4a457a95e334f
parent5da3e1ca44896342eba3cd25eadc5e3e43d5b56e
wpa_supplicant: Add support for pregenerated MAC

Add new 'mac_addr' policy (3) with which supplicant expects to also
obtain 'mac_value' with pregenerated value of MAC address to be used for
given SSID.

The main difference between this policy and policy 1 is the ability to
control persistence of the MAC address used.  For example if there is
a requirement to always use the same (but random) MAC address for given
SSID (even if user removes/forgets the network) this could be handled
outside of the wpa_supplicant by using some SSID based hashing scheme to
generate MAC (or by just storing the randomly generated one) and
providing it to wpa_supplicant together with mac_addr=3 policy.

Signed-off-by: Andrzej Ostruszka <amo@semihalf.com>
wpa_supplicant/config.c
wpa_supplicant/config_ssid.h
wpa_supplicant/dbus/dbus_new_handlers.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h