diff options
author | Jouni Malinen <j@w1.fi> | 2014-09-29 20:24:19 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2014-09-29 21:40:23 (GMT) |
commit | a313d17de943cbaf12cbf67d666af14791be8ad2 (patch) | |
tree | c1dba9d5a6350aa0adbe952fde54ac01828cf108 /wpa_supplicant/config.c | |
parent | 1cbdb9d13754e1476620f5a3938b726270821adb (diff) | |
download | hostap-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.c')
-rw-r--r-- | wpa_supplicant/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index f3a4917..b7f259b 100644 --- a/wpa_supplicant/config.c +++ b/wpa_supplicant/config.c @@ -1754,7 +1754,7 @@ static const struct parse_data ssid_fields[] = { #ifdef CONFIG_HS20 { INT(update_identifier) }, #endif /* CONFIG_HS20 */ - { INT_RANGE(mac_addr, 0, 1) }, + { INT_RANGE(mac_addr, 0, 2) }, }; #undef OFFSET |