]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.wpa_supplicant
wireless: Use random MAC addresses when scanning for better privacy
[people/stevee/network.git] / src / functions / functions.wpa_supplicant
index 7362601cda10d315f943e979037826c1f6767154..f81591029b99b70e851120678b8e9e2936f98bfd 100644 (file)
@@ -32,6 +32,13 @@ wpa_supplicant_config_header() {
        if isset country; then
                print "country=${country}"
        fi
+       print
+
+       print "# Privacy"
+
+       # Use a random MAC address for any pre-association
+       # operations like scanning or ANQP
+       print "preassoc_mac_addr=1"
 
        print # end of header
 }