Why am I unable to connect to Wifi after spoofed MAC address?

A

AC Question

Unable to connect to Wifi after spoofed MAC address

I'm working on an app to spoof the MAC address of an android device. So far it seems to be "changing" the MAC address because when I check it through code, it shows the new MAC address that I entered. Also, it disconnects from wifi when I spoof the MAC address from the phones original. This is the problem that I'm having, I want to somehow stay connected to the Wifi or be able to reconnect. Once I spoof the MAC address, I'm not able to connect to Wifi at all unless I revert to my phones original MAC. Is there a way around this? I would think that I would at least be able to connect to a Wifi network after MAC spoofing but it seems like it's not working at all.