]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/config.c
GAS: Add support to randomize transmitter address
authorVamsi Krishna <vamsin@qti.qualcomm.com>
Thu, 8 Dec 2016 16:21:25 +0000 (21:51 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 7 Feb 2017 17:41:32 +0000 (19:41 +0200)
commit1d9d21f37694d45d6d885745855eaf6e5f1bc284
tree8cbd186f871bc7ef02da65f74c93a217a79bba8c
parent8331c9b316eae90c2b1a51c219a1659b68f031a0
GAS: Add support to randomize transmitter address

Add support to send GAS requests with a randomized transmitter address
if supported by the driver. The following control interface commands
(and matching configuration file parameters) can be used to configure
different types of randomization:

"SET gas_rand_mac_addr 0" to disable randomizing TX MAC address,
"SET gas_rand_mac_addr 1" to randomize the complete TX MAC address,
"SET gas_rand_mac_addr 2" to randomize the TX MAC address except for OUI.

A new random MAC address will be generated for every
gas_rand_addr_lifetime seconds and this can be configured with
"SET gas_rand_addr_lifetime <timeout>".

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/config.c
wpa_supplicant/config.h
wpa_supplicant/config_file.c
wpa_supplicant/gas_query.c
wpa_supplicant/wpa_supplicant.conf