I have a rooted Mi A1, and upgraded to the latest LineageOS daily build (Pie). Most things work OK, however I can no longer change the MAC address of my device (which worked on stock). I'm trying to work out if this is something I can hack/fix.
I have downloaded a couple of programs to change the MAC address, and have also tried in an ADB shell. What I noticed is that when the MAC address changes the connection appears to go down, and then when it comes back up its reset to the original MAC address.
The driver appears to be wcnss_wlan and the chipset on the phone is, I think, MSM8960 (but could be wrong here).
When I manually try and bring the interface up at the command prompt using ip link set dev wlan up, it does not work (I can bring it down OK, and can change the MAC OK using ip link set dev wlan0 address ma:ac:ad:dr:es:ss ), and when I use the toggle on the phone the interface gets reset to its default MAC.
Can anyone advise a way to fix this, or point me (even vaguely) in a productive direction - ie where can I find where the MAC address is coded, how to I manually trigger a DHCP update? How do I look at whats happening with WPA_SUPPLICANT ?