]> git.ipfire.org Git - people/ms/network.git/commitdiff
wireless: Use random MAC addresses when scanning for better privacy
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Aug 2017 10:53:40 +0000 (10:53 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Aug 2017 10:53:40 +0000 (10:53 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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
 }