After installing CyanogenMod 12.1 nightly ROM on Moto X, many users have complaint that their phone does not connect to Wi-Fi network. If you are experiencing failed, lost connection and cannot connect issues on your Moto X after installing CyanogenMod 12.1 Nightly ROM, there is a simple workaround to fix the issue.
Usually, the Wi-Fi connecting issue appears on Moto X (running on CM 12.1 nightly) when connecting to a network that uses WPA2 encryption. Thanks to the XDA forum user otonieru, he brings a simple workaround to fix the issue. This by just deleting ‘wpa_supplicant.conf’ file from the system directory. Read on to know how to delete the file from system directory.
Assuming that you have rooted a Moto X with CyanogenMod 12.1 nightly ROM installed on it.
1. Install a file manager app with root access, for example, ES File explorer app.
2. Grant root permission to your file manager app (Settings -> under ‘Tools’ enable ‘Root Explorer’)
3. Now, go to
/data/misc/wifi/ directory and find the wpa_supplicant.conf file.
4. Delete the wpa_supplicant.conf file and then reboot your device.