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.

Fix Wi-Fi Connecting Issue on Moto X with CyanogenMod 12.1 Nightly

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. Hope the above guide will fix your Wi-Fi connection issue on your Moto X running on CyanogenMod 12.1 custom ROM (Source – otonieru).