tests: Set address lifetime to be sufficiently large for the test
sta_dynamic_random_mac_addr and sta_dynamic_random_mac_addr_keep_oui assumed that the same random MAC address remains in use even though it set the lifetime to 0 seconds. This might have worked in the past by accident, but set this properly to configure a longer lifetime. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
4bd1efe073
commit
317adf2359
1 changed files with 2 additions and 2 deletions
|
@ -224,7 +224,7 @@ def test_sta_dynamic_random_mac_addr(dev, apdev):
|
|||
wpas.interface_add("wlan5")
|
||||
addr0 = wpas.get_driver_status_field("addr")
|
||||
wpas.request("SET preassoc_mac_addr 1")
|
||||
wpas.request("SET rand_addr_lifetime 0")
|
||||
wpas.request("SET rand_addr_lifetime 60")
|
||||
|
||||
id = wpas.connect("sta-dynamic", psk="12345678", mac_addr="1",
|
||||
scan_freq="2412")
|
||||
|
@ -323,7 +323,7 @@ def test_sta_dynamic_random_mac_addr_keep_oui(dev, apdev):
|
|||
wpas.interface_add("wlan5")
|
||||
addr0 = wpas.get_driver_status_field("addr")
|
||||
wpas.request("SET preassoc_mac_addr 2")
|
||||
wpas.request("SET rand_addr_lifetime 0")
|
||||
wpas.request("SET rand_addr_lifetime 60")
|
||||
|
||||
id = wpas.connect("sta-dynamic", psk="12345678", mac_addr="2",
|
||||
scan_freq="2412")
|
||||
|
|
Loading…
Reference in a new issue