summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-12-13 15:59:59 +0100
committerThomas Haller <thaller@redhat.com>2017-12-27 09:18:54 +0100
commitbde3f1bd62302434814320a1ff810363c1474430 (patch)
tree3c27c4848136a3efb8e8dca11dc36969de024ec2
parent16e75d4db5a3fbc5e8b713fc6afcbab15540cd50 (diff)
downloadNetworkManager-bde3f1bd62302434814320a1ff810363c1474430.tar.gz
core: use define for configuration name "wifi.scan-rand-mac-address"
-rw-r--r--src/devices/wifi/nm-device-wifi.c2
-rw-r--r--src/nm-config.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c
index f8a985a2bb..f9441f8428 100644
--- a/src/devices/wifi/nm-device-wifi.c
+++ b/src/devices/wifi/nm-device-wifi.c
@@ -1040,7 +1040,7 @@ _hw_addr_set_scanning (NMDeviceWifi *self, gboolean do_reset)
priv = NM_DEVICE_WIFI_GET_PRIVATE (self);
randomize = nm_config_data_get_device_config_boolean (NM_CONFIG_GET_DATA,
- "wifi.scan-rand-mac-address",
+ NM_CONFIG_KEYFILE_KEY_DEVICE_WIFI_SCAN_RAND_MAC_ADDRESS,
device,
TRUE, TRUE);
diff --git a/src/nm-config.h b/src/nm-config.h
index 7ba707aac0..5d027ce06e 100644
--- a/src/nm-config.h
+++ b/src/nm-config.h
@@ -79,6 +79,7 @@
#define NM_CONFIG_KEYFILE_KEY_DEVICE_IGNORE_CARRIER "ignore-carrier"
#define NM_CONFIG_KEYFILE_KEY_DEVICE_SRIOV_NUM_VFS "sriov-num-vfs"
#define NM_CONFIG_KEYFILE_KEY_DEVICE_WIFI_BACKEND "wifi.backend"
+#define NM_CONFIG_KEYFILE_KEY_DEVICE_WIFI_SCAN_RAND_MAC_ADDRESS "wifi.scan-rand-mac-address"
#define NM_CONFIG_KEYFILE_KEY_DEVICE_CARRIER_WAIT_TIMEOUT "carrier-wait-timeout"
#define NM_CONFIG_KEYFILE_KEYPREFIX_WAS ".was."