wifi: error out when asked for factory mac address
* In Android 10, every time a wifi connection is to be established
the mac address is reset to factory. This was introduced to play
with "Connected MAC randomization".
* InterfaceTool::GetFactoryMacAddress fetches the factory mac address
by dispatching a SIOCETHTOOL ETHTOOL_GPERMADDR ioctl.
On our legacy wifi drivers it returns 00:00:00:00:00:00,
and android proceeds to set it as wlan0's mac address causing
the connection to fail.
* Hard code an ERROR_NOT_SUPPORTED return status to get around it.
Change-Id: I1afb3d7ed0ad745da9828db0074caa970407bdc5
1 file changed