aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-09-29 20:24:19 (GMT)
committerJouni Malinen <j@w1.fi>2014-09-29 21:40:23 (GMT)
commita313d17de943cbaf12cbf67d666af14791be8ad2 (patch)
treec1dba9d5a6350aa0adbe952fde54ac01828cf108 /wpa_supplicant/config.h
parent1cbdb9d13754e1476620f5a3938b726270821adb (diff)
downloadhostap-a313d17de943cbaf12cbf67d666af14791be8ad2.zip
hostap-a313d17de943cbaf12cbf67d666af14791be8ad2.tar.gz
hostap-a313d17de943cbaf12cbf67d666af14791be8ad2.tar.bz2
Extend random MAC address support to allow OUI to be kept
mac_addr=2 and preassoc_mac_addr=2 parameters can now be used to configure random MAC address to be generated by maintaining the OUI part of the permanent MAC address (but with locally administered bit set to 1). Other than that, these values result in similar behavior with mac_addr=1 and preassoc_mac_addr=1, respectively. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/config.h')
-rw-r--r--wpa_supplicant/config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index 75257c5..3fd4192 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -1058,6 +1058,7 @@ struct wpa_config {
*
* 0 = use permanent MAC address
* 1 = use random MAC address for each ESS connection
+ * 2 = like 1, but maintain OUI (with local admin bit set)
*
* By default, permanent MAC address is used unless policy is changed by
* the per-network mac_addr parameter. Global mac_addr=1 can be used to
@@ -1075,6 +1076,7 @@ struct wpa_config {
*
* 0 = use permanent MAC address
* 1 = use random MAC address
+ * 2 = like 1, but maintain OUI (with local admin bit set)
*/
int preassoc_mac_addr;
};