From 5c6976aa11d0a081f2fae87c721b98ac154656e7 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Wed, 18 Oct 2023 14:58:26 +0200 Subject: [PATCH] change MAC address in repeater mode Now, the hosting WiFi sees random a random MAC address every time the device is rebooted. --- files/lib/blue-merle/functions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/files/lib/blue-merle/functions.sh b/files/lib/blue-merle/functions.sh index 7c47457..f1ed421 100644 --- a/files/lib/blue-merle/functions.sh +++ b/files/lib/blue-merle/functions.sh @@ -18,10 +18,12 @@ RESET_BSSIDS () { } -# This chaneges the MAC address clients see when connecting to the WiFi spawned by the device. -# You can check with "arp -a" that your endpoint, e.g. your laptop, sees a different MAC after a reboot of the Mudi. RANDOMIZE_MACADDR () { + # This changes the MAC address clients see when connecting to the WiFi spawned by the device. + # You can check with "arp -a" that your endpoint, e.g. your laptop, sees a different MAC after a reboot of the Mudi. uci set network.@device[1].macaddr=`UNICAST_MAC_GEN` + # Here we change the MAC address the upstream wifi sees + uci set glconfig.general.macclone_addr=`UNICAST_MAC_GEN` uci commit network # You need to restart the network, i.e. /etc/init.d/network restart }