Code
[Unit]
Description=Configure wlan0 MAC address
BindsTo=sys-subsystem-net-devices-wlan0.device
After=sys-subsystem-net-devices-wlan0.device
Before=connman.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/ip link set dev wlan0 down
ExecStart=/usr/sbin/ip link set dev wlan0 address 2e:98:41:4f:3d:c1
ExecStart=/usr/sbin/ip link set dev wlan0 up
[Install]
WantedBy=multi-user.target
Display More
Create /storage/.config/system.d/wlanmac.service with ^ this content then enable it, and remove any other .service files and udev rules you have set in the system. The main difference is that I take the interface down before setting the MAC, then bring it up again.