View Single Post
Posts: 106 | Thanked: 372 times | Joined on Jan 2012
#4
I have Aigo with the last OS update.

I have been suffering the changing WLAN MAC address.
I have applied the solution presented in
https://together.jolla.com/question/...nt-static-mac/
Sometimes it works, sometimes not (= in restart tablet may have the given WLAN MAC, sometimes not. It may be connected with the missing of "dhcpcd@wlan0.service" in the tablet.

/etc/systemd/system/changemac@.service
Code:
[Unit]
Description=Change MAC address
Before=dhcpcd@%i.service

[Service]
Type=oneshot
ExecStart=/sbin/ip link set dev %i address 00:09:4c:e5:2b:a9
ExecStart=/sbin/ip link set dev %i up

[Install]
WantedBy=network.target
Code:
# systemctl enable changemac@wlan0
# systemctl start changemac@wlan0
I removed "Before=dhcpcd@%i.service", but wondered when the service would be started then (I am not well enough aware of these things, just testing without proper knowledge).
The behavior was exactly the same as before. Is there a proper "place" in the startup (Before=), so that the change would work?

When there is different WLAN MAC after startup, it will change to given one if wlan is switched off and on. However, it does not connect to the previously worked WLAN connection as the signal strength is zero. You have to add a new connection and give new passcode to connect to wlan,

Any solution?
Attached Images
 

Last edited by Heik; 2019-12-22 at 11:32.