How to Fix the Wi-Fi Problem After Updating to Android 7.0 Nougat (Nexus 5X)

If you recently updated your Nexus phone to Android 7.0 Nougat, but somehow you can’t use your phone’s Wi-Fi network, and you might have tried factory reset or flash the factory image, and Wi-Fi still can’t come back alive, here is the method that fix it.

Details:
This No Wi-Fi issue happened at the first time Android N developer preview roll out, if you owned a Nexus 5X or Nexus 6, joined the Android Beta problem, then flash the Android N DP image to your phone, your phone will lose the Wi-Fi MAC address and Android system will get the MAC address with value 02:00:00:00:00:00, and this is the reason why the Wi-Fi network can’t be enabled after a fully phone re-flash. So you can check the Wi-Fi MAC address under Settings -> About phone -> Status, if you see the “02:00:00:00:00:00” under Wi-Fi MAC address, follow these step to fix the problem.

IMG_20160309_105701

WARNING: change system file could make your phone bootloop or brick, do everything carefully, and you should backup important data before moving forward.

Here I use the Nexus 5X for example.

1. You need the Root access to system files, so unlock the bootloader and root your device first. You also need your phone’s true Wi-FI MAC address, you can flash the Android 6.0.1 to mark it down, then update to Android Nougat again.
2. Install any root file manager you like. then use it to located the /persist directory, normally you should see a file named “wlan_mac.bin”, open it with text editor you can see four lines of MAC address, but with the “No Wi-Fi with 20:0:0:0:0:0” problem, you can’t see that “wlan_mac.bin” file.
3. Located to another directory “/etc/firmware/wlan/qca_cld”, you should see the “wlan_mac.bin” file now, tap and edit that file, it should be nothing in it.

Android Nougat Wi-Fi problem persist

4. Add your Wi-Fi MAC address to wlan_mac.bin with these format:

Intf0MacAddress=Your Wi-FI MAC address without “:”
Intf1MacAddress=00AA00BB00C2
Intf2MacAddress=00AA00BB00C3
Intf3MacAddress=00AA00BB00C4

The first line should looks like “Intf0MacAddress=64BC1C936874”, it’s my Wi-Fi MAC address, and you should not use it, it’s safe to use your ture MAC address, though you can change some characters instead. Save the file and reboot your phone, your phone’s Wi-Fi problem should be fixed.

Or if you are too lazy to edit the file, here is my wlan_mac.bin file. You can download it and extract the .bin file, change the first line to your ture MAC address, save and place it in your phone’s “/etc/firmware/wlan/qca_cld” directory.

I don’t know why this issue happened, some said they get the Wi-Fi back by turn on bluetooth for several hours, while someone just reboot and make it back. one thing should be notice is, most of phones that have the No Wi-Fi problem was OTA to Android Nougat without wiping system data at first, both developer preview and official release, so maybe something was wrong with the OTA update process, and that’s why I recommend to wipe data first before flashing new system update.

Taggs: , .
Posted in Android How to, Nexus 5X

SHARE THIS

RELATED POSTS



DISCUSSION

  • Kyonkanno

    How can I find my real MAC address? I dont have the box with me anymore.

  • Irgendwo

    Thank you for your easy step tutorial. Worked perfect for me just following your steps. My 5X is recovered! thx man…

  • Kashif Ijaz

    Hi, it really works.

    Thanks dude. my wifi is working now. What if a new OTA update comes. Should i update OTA? If i update then it will again change my WIFI MAC back to 02:00:00:00:00:00?

  • Does anyone know the file structure for 7.1.1? I can’t seem to see any similarities on my 6p. Really wish to fix this issue?

  • Prasenjit Chowdhury

    Hello Gustavo!

    Thanks for pointing this out. I did exactly as you suggested, but Wifi is stuck at turning on screen. Also, initially I had no such folder as etc/firmwire at all, which made me suspicious. So I created this folder, copied your file, and found the original Mac address from PryFi app by Chainfire, where it is showing the correct MAC. Which I subsequently copied to the. bin file.

    But still stuck at 02:00:00 screen and WiFi turning on screen.

    Would love to hear back from you! I have been struggling with this issue sincr eternity, and your post gave me real hope for the first time!

    • Jay Man

      I’m wondering what 1st caused your problem. I have a nexus 5x and was trying to change my MAC with an app and my MAC being stuck at 02:00:00 and not being able to turn on wifi is the result. Nothing seems to fix this.

  • Jesús Daniel Menéndez Roselló

    I sow different wifi problem and i fixed in wifi advance setting set wifi region code on android 6.0.1 but now in Nougat version this option is missing, does anyone know why this option disappeared

  • Shah Faisal Khan

    as u said, the “wlan_mac.bin” contains same 4 lines in both directories, (/persist) and (/etc/firmware/wlan/qca_cld).
    but still my phone wifi mac address shows 02:00:00:.. type address. why???

    • Did you check the file permission? it should be rw-r-r, reboot to make sure the change effect.

      • Shah Faisal Khan

        i said both files have same 4 lines, so i dnt need to change it when lines are same… my ques was that instead of everything (all 4 lines) is same in both directories, why would i change it? and why it shows 02:00..mac address if original one is unaffected in both directories???

        • Ok, I see.

          First, I suggest you re-flash your phone with the Full OTA Package of your current system by Flashfire. Package download: https://developers.google.com/android/ota, Flashfire can be installed through Play Store.

          If the problem still present, try this command with Terminal Emulator on your phone, it list the file structure of /persist.
          ————-
          su
          cd /persist/
          ls -la
          ————–

          Here is my result:
          ——————–
          bullhead:/ $ su
          bullhead:/ # cd /persist/
          bullhead:/ # cd /persist
          bullhead:/persist # ls -la
          total 72
          drwxr-xr-x 6 root root 4096 1970-01-01 08:16 .
          drwxr-xr-x 21 root root 0 1971-01-10 19:14 ..
          -rw-rw—- 1 bluetooth bluetooth 17 1970-01-01 08:16 bdaddr.txt
          drw-r-x— 2 input system 4096 1970-01-01 08:07 calibrationdrwx—— 5 system system 4096 1970-09-09 11:16 data
          drwx—— 2 root root 4096 1970-01-01 08:00 lost+found
          -rw-r—– 1 root system 116 1970-01-01 08:05 sensorcal.json
          drwxrwx— 2 drm system 4096 1970-01-01 08:16 widevine

          -rw-rw—- 1 wifi system 116 2009-01-01 16:00 wlan_mac.bin
          ———————————-

          Check wlan_mac.bin’s owner, it should be “wifi”, if not, change its owner to wifi ( long tap the file, select change owner in the root explore’s menu ).

          If the owner is correct, try replace the whole value with mine which present in the post, I suggest wipe cache and data to see if the system can refresh the value (backup your MAC first. ).

          If all above doesn’t work, I doubt it is hardware problem.

          • Shah Faisal Khan

            mac address can be restored if i reflash the oos rom… but why at first it shows correct mac and changes later in cm rom??

          • Custom Roms needs to flash the vendor image after ROM installation, find the right version of vendor.img for your cm rom, it can be found in the Full OTA zip package.

  • Thanks you saved me.
    Wifi turns on, I have a mac address but it’s searching for wifi now. Can’t find any network.

    • Which way did you use to fix the issue? What is in the wlan_mac.bin by now?

      • My Wifi Wasn’t starting at all due to the bad mac address. Now it starts but it’s continuously searching for networks.

        In the file I have my mac address on the first row after the equals and on the others o have Aa00BB… Instead.

        • Did you try wiping data to see if it helps?
          if it didn’t work, and if your phone was rooted, install FlashFire and use it to flash the 7.0 full ota package again, the October one.

          Just copy the apk of from other phones and install it.

          • Nothing works man. I’ve even tried flashing back Marshmellow.
            That successfully sets a correct Mac address, but the wifi still doesn’t see any network. I believe the messed up the radio firmware or something.

            I wanted to try Cyanogen Mod but it wouldn’t boot and I lost my patience…

            It seems the problem is very widespread. Let’s hope google will fix it because otherwise it’s bad.

          • Sorry, the method confirm working for some people, one of them is my friend, he can use Wifi when back to 6.0.

            If you back to M and Wifi still broken, I suspect that was hardware related.
            You’d better connect Google support, ask them to replace the device.