mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 06:00:12 +01:00
wifi: express SCAN_RAND_MAC_ADDRESS_EXPIRE time in seconds
We commonly use already seconds and milliseconds scales for computing timeouts. Reduce the number of difference scales and don't also use minutes.
This commit is contained in:
parent
a7476ff082
commit
f6e438860b
1 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ _LOG_DECLARE_SELF(NMDeviceWifi);
|
|||
#define SCAN_INTERVAL_SEC_STEP 20
|
||||
#define SCAN_INTERVAL_SEC_MAX 120
|
||||
|
||||
#define SCAN_RAND_MAC_ADDRESS_EXPIRE_MIN 5
|
||||
#define SCAN_RAND_MAC_ADDRESS_EXPIRE_SEC (5*60)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
|
|
@ -1169,7 +1169,7 @@ _hw_addr_set_scanning (NMDeviceWifi *self, gboolean do_reset)
|
|||
* We don't bother with to update the MAC address exactly when
|
||||
* it expires, instead on the next scan request, we will generate
|
||||
* a new one.*/
|
||||
priv->hw_addr_scan_expire = now + (SCAN_RAND_MAC_ADDRESS_EXPIRE_MIN * 60);
|
||||
priv->hw_addr_scan_expire = now + SCAN_RAND_MAC_ADDRESS_EXPIRE_SEC;
|
||||
|
||||
generate_mac_address_mask = nm_config_data_get_device_config (NM_CONFIG_GET_DATA,
|
||||
"wifi.scan-generate-mac-address-mask",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue