summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-03-17 16:18:48 +0100
committerThomas Haller <thaller@redhat.com>2017-03-17 17:40:00 +0100
commitdbc7354ad928e4c4e32680b4d92c2f6b4d4629e5 (patch)
tree654c693a00aaf40f3293c8b9f452c8622f777138 /examples
parent0fab845e7dc5e409b43c7d0a8af66fb8ee16f0b9 (diff)
device: add spec "driver:" to match devices
Changing the MAC address of devices is known to fail with certain drivers. Add a device-spec to allow disabling it for for such devices. Related: https://bugzilla.gnome.org/show_bug.cgi?id=777523
Diffstat (limited to 'examples')
-rw-r--r--examples/nm-conf.d/31-mac-addr-change.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/nm-conf.d/31-mac-addr-change.conf b/examples/nm-conf.d/31-mac-addr-change.conf
new file mode 100644
index 000000000..1ae2e0dc1
--- /dev/null
+++ b/examples/nm-conf.d/31-mac-addr-change.conf
@@ -0,0 +1,11 @@
+# Certain drivers are known not to support changing the MAC address.
+# Disable touching the MAC address on such devices.
+#
+# See man NetworkManager.conf
+#
+# https://bugzilla.gnome.org/show_bug.cgi?id=777523
+[device-mac-addr-change-wifi]
+match-device=driver:rtl8723bs,driver:rtl8189es,driver:r8188eu,driver:eagle_sdio
+wifi.scan-rand-mac-address=no
+wifi.cloned-mac-address=preserve
+ethernet.cloned-mac-address=preserve