wpa_s->last_mac_addr_change.sec might be zero in the special case of UML
testing with time travel since it would be possible to complete the test
case steps within one second of the system start.
Signed-off-by: Jouni Malinen <j@w1.fi>
if (os_memcmp(wpa_s->own_addr, ssid->mac_value,
ETH_ALEN) == 0)
return 0;
- } else if (wpa_s->last_mac_addr_change.sec != 0 &&
+ } else if ((wpa_s->last_mac_addr_change.sec != 0 ||
+ wpa_s->last_mac_addr_change.usec != 0) &&
!os_reltime_expired(
&now,
&wpa_s->last_mac_addr_change,