[Q] [Moto X XT1060] Issues with WiFi and Bluetooth.

FleetPhone

Member
Jul 12, 2014
15
5
0
I have been trying out a few custom roms, and both Slimrom and cyanogenmod both have non-function WiFi and Bluetooth. I have no idea why my Verizon Wireless developer edition Moto x has so many issues with this, while everyone else seems to have functioning WiFi and Bluetooth on different models of the Moto x, such as XT1058, etc. I do not know what is so different on the XT1060 that prevents the WiFi and Bluetooth from working. Both threads for both of those roms on xda have no people complaining about WiFi and Bluetooth that won't even turn on. I have tried like every build, and have done clean wipes every time before, and still nothing. Every time I try to turn on the WiFi on from settings, the switch goes to right to the on position but is always grayed out, and WiFi routers never appear on the list. According to kernel log files, the Bluetooth driver just crashes without warning, and the WiFi driver does not have required firmware to run. So what can I do to solve this problem, and also does anyone else experience this problem? Thanks.
 

FleetPhone

Member
Jul 12, 2014
15
5
0
Just for reference, here is part of the log that talks about wlan:
[ 2931.926781,0] wlan: module is from the staging directory, the quality is unknown, you have been warned.
[ 2931.959163,0] wlan: loading driver v3.2.7.47
[ 2931.985685,0] wlan: [1006:E :HDD] hdd_apply_cfg_ini: Reg Parameter gEmptyScanRefreshPeriod < allowed Minimum [0 < 1000]. Enforcing Default= 0
[ 2932.006897,0] wlan: [1006:F :HDD] hdd_request_firmware: nv wlan/prima/WCNSS_qcom_wlan_nv.bin download failed
[ 2932.006988,0] wlan: [1006:F :VOS] vos_nv_open: unable to download NV file wlan/prima/WCNSS_qcom_wlan_nv.bin
[ 2932.007110,0] wlan: [1006:F :VOS] vos_open: Failed to initialize the NV module
[ 2932.065954,1] wlan: [1006:F :HDD] hdd_wlan_startup: vos_open failed
[ 2932.066534,1] wlan: [1006:F :HDD] hdd_driver_init: WLAN Driver Initialization failed
[ 2932.066808,1] wlan: driver load failure
 

samwathegreat

Senior Member
Apr 17, 2010
2,097
1,843
0
Just for reference, here is part of the log that talks about wlan:
[ 2931.926781,0] wlan: module is from the staging directory, the quality is unknown, you have been warned.
[ 2931.959163,0] wlan: loading driver v3.2.7.47
[ 2931.985685,0] wlan: [1006:E :HDD] hdd_apply_cfg_ini: Reg Parameter gEmptyScanRefreshPeriod < allowed Minimum [0 < 1000]. Enforcing Default= 0
[ 2932.006897,0] wlan: [1006:F :HDD] hdd_request_firmware: nv wlan/prima/WCNSS_qcom_wlan_nv.bin download failed
[ 2932.006988,0] wlan: [1006:F :VOS] vos_nv_open: unable to download NV file wlan/prima/WCNSS_qcom_wlan_nv.bin
[ 2932.007110,0] wlan: [1006:F :VOS] vos_open: Failed to initialize the NV module
[ 2932.065954,1] wlan: [1006:F :HDD] hdd_wlan_startup: vos_open failed
[ 2932.066534,1] wlan: [1006:F :HDD] hdd_driver_init: WLAN Driver Initialization failed
[ 2932.066808,1] wlan: driver load failure
The problem is highlighted in red. You have somehow erased your WCNSS_qcom_wlan_nv.bin file.

You will need to get these files from another user, and place it in your /persist folder. This is the only way wifi and bluetooth will ever work for you.
 
Last edited:
  • Like
Reactions: FleetPhone

FleetPhone

Member
Jul 12, 2014
15
5
0
The problem is highlighted in red. You have somehow erased your WCNSS_qcom_wlan_nv.bin file. This file contains your WIFI MAC address. You likely somehow also deleted the bluetooth MAC as well.

You will need to get these files from another user, and edit them with YOUR mac address. This is the only way wifi and bluetooth will ever work for you.
But I did not do anything other than flash the rom and that's it. It came like that with the rom. So I tried coping the wlan firmware files from stock, and that did not do anything. It still refuses to start. I will try some other things.
 

samwathegreat

Senior Member
Apr 17, 2010
2,097
1,843
0
But I did not do anything other than flash the rom and that's it. It came like that with the rom. So I tried coping the wlan firmware files from stock, and that did not do anything. It still refuses to start. I will try some other things.
It won't do any good. Those files are located in the persist partition.

It is called the persist partition for a reason. When you flash a new rom, persist is unaffected. It is unique to YOUR phone, and your phone only. You can flash the stock rom as many times as you would like but the persist folder stays untouched.

I don't have any idea how this happened to you, but it is most definitely your persist folder. You would HAVE to be rooted/unlocked for this to have happened.... I can only guess that you somehow erased or formatted /persist.

Do you have "Root Browser" installed? If so, browse to the "persist" folder. What files are inside?

See here: http://forum.xda-developers.com/showthread.php?t=2619553
 
Last edited:
  • Like
Reactions: FleetPhone

FleetPhone

Member
Jul 12, 2014
15
5
0
It won't do any good. Those files are located in the persist partition.

It is called the persist partition for a reason. When you flash a new rom, persist is unaffected. It is unique to YOUR phone, and your phone only. You can flash the stock rom as many times as you would like but the persist folder stays untouched.

I don't have any idea how this happened to you, but it is most definitely your persist folder. You would HAVE to be rooted/unlocked for this to have happened.... I can only guess that you somehow erased or formatted /persist.

Do you have "Root Browser" installed? If so, browse to the "persist" folder. What files are inside?
Yes I do, and the persist partition has 3 files in it. They are named .bt_nv.bin, WCNSS_qcom_wlan_nv_calibration_persist.bin, and WCNSS_qcom_wlan_nv_regulatory_persist.bin. However, when I restore back to stock rom after I am done testing with the broken rom, the stock WiFi works just fine, even with that same persist folder. So if it has something to do with persist folder, then I have no idea what is wrong. Should I not wipe system before I install my rom?
 

samwathegreat

Senior Member
Apr 17, 2010
2,097
1,843
0
Yes I do, and the persist partition has 3 files in it. They are named .bt_nv.bin, WCNSS_qcom_wlan_nv_calibration_persist.bin, and WCNSS_qcom_wlan_nv_regulatory_persist.bin. However, when I restore back to stock rom after I am done testing with the broken rom, the stock WiFi works just fine, even with that same persist folder. So if it has something to do with persist folder, then I have no idea what is wrong. Should I not wipe system before I install my rom?
You only have 3 files??? Because my X has 4 files:

.bt_nv.bin
WCNSS_qcom_wlan_nv.bin
WCNSS_qcom_wlan_nv_calibration_persist.bin
WCNSS_qcom_wlan_nv_regulatory_persist.bin

Just as I had said in my very first reply, you are missing WCNSS_qcom_wlan_nv.bin

---------- Post added at 12:47 AM ---------- Previous post was at 12:43 AM ----------

Here: http://forum.xda-developers.com/attachment.php?attachmentid=2760949&d=1400950032

Download the file, and place JUST the missing file back in /persist

The permissions should be: rw-r--r-- (permissions must be set correctly)

Does WiFi work now??
 

FleetPhone

Member
Jul 12, 2014
15
5
0
You only have 3 files??? Because my X has 4 files:

.bt_nv.bin
WCNSS_qcom_wlan_nv.bin
WCNSS_qcom_wlan_nv_calibration_persist.bin
WCNSS_qcom_wlan_nv_regulatory_persist.bin
Indeed, there is only 3 files in that folder. However, there is WCNSS_qcom_wlan_nv.bin file in system/etc/firmware/wlan/prima that is system linked to the persist folder. However, that bin file is 0 bytes, which is pretty suspicious. If there is another file suppose to be there, how could I get it back? Do you get a persist folder when you do a factory image restore (such as restoring .img files using fastboot)? I do not think I ever touched the folder, but maybe something went wrong.
 

samwathegreat

Senior Member
Apr 17, 2010
2,097
1,843
0
Indeed, there is only 3 files in that folder. However, there is WCNSS_qcom_wlan_nv.bin file in system/etc/firmware/wlan/prima that is system linked to the persist folder. However, that bin file is 0 bytes, which is pretty suspicious. If there is another file suppose to be there, how could I get it back? Do you get a persist folder when you do a factory image restore (such as restoring .img files using fastboot)? I do not think I ever touched the folder, but maybe something went wrong.
See the edit to my previous post. I linked the file you need. MY WCNSS_qcom_wlan_nv.bin file is 29.08KB.

Please try copying that file into your persist folder, and then changing permissions as I advised in the last post. Reboot and advise if WiFi is working now.
 
  • Like
Reactions: FleetPhone

FleetPhone

Member
Jul 12, 2014
15
5
0
See the edit to my previous post. I linked the file you need. MY WCNSS_qcom_wlan_nv.bin file is 29.08KB.

Please try copying that file into your persist folder, and then changing permissions as I advised in the last post. Reboot and advise if WiFi is working now.
Yes WiFi now works, It is just strange that WiFi worked on stock 4.4.2 without that file present in the persist folder. And I just used a Motorola factory image like a day or two ago with fastboot. Strange. Well Bluetooth also works. Thanks, however how do you get a "new" persist folder? Do you get it from the Motorola factory image, or is it impossible.
 

samwathegreat

Senior Member
Apr 17, 2010
2,097
1,843
0
Yes WiFi now works, It is just strange that WiFi worked on stock 4.4.2 without that file present in the persist folder. And I just used a Motorola factory image like a day or two ago with fastboot. Strange. Well Bluetooth also works. Thanks, however how do you get a "new" persist folder? Do you get it from the Motorola factory image, or is it impossible.
It is impossible. Something went wrong and the file got erased at some point. You SHOULD NOT have to do this again. /persist stays untouched between ROM flashes. Not even using RSD Lite to restore back to 100% stock touches the persist folder.

If you leave it alone, it should stay working forever, unless you somehow delete it. You cannot get it from the factory images...fortunately you were lucky enough to have someone willing to help you and "donate" the file from their phone :p
 
  • Like
Reactions: FleetPhone

FleetPhone

Member
Jul 12, 2014
15
5
0
It is impossible. Something went wrong and the file got erased at some point. You SHOULD NOT have to do this again. /persist stays untouched between ROM flashes. Not even using RSD Lite to restore back to 100% stock touches the persist folder.

If you leave it alone, it should stay working forever, unless you somehow delete it. You cannot get it from the factory images...fortunately you were lucky enough to have someone willing to help you and "donate" the file from their phone :p
So Now I have 4 files, plus that lost+found folder that is always there. The other two files, not the .bt or the wlan_nv, permissions are lrwxrwxrwx and system linked to somewhere. Is that correct, the permissions? And from the log, It seemed that the phone tried to download a new WCNSS_qcom_wlan_nv.bin one from somewhere, but failed to do so. Thanks for your help, now these custom roms will actually operate as they should.
 

samwathegreat

Senior Member
Apr 17, 2010
2,097
1,843
0
So Now I have 4 files, plus that lost+found folder that is always there. The other two files, not the .bt or the wlan_nv, permissions are lrwxrwxrwx and system linked to somewhere. Is that correct, the permissions? And from the log, It seemed that the phone tried to download a new WCNSS_qcom_wlan_nv.bin one from somewhere, but failed to do so. Thanks for your help, now these custom roms will actually operate as they should.
Yes, those are the correct permissions. You are all set!

I AM very confused as to why the stock ROM worked for you without the missing file, but it is supposed to be present on every Moto X.

You should be able to change roms all you like and the WiFi should "Persist" (haha)

Just FYI, my /persist folder has this:

data (folder)
lost+found (folder)
omadm (folder) - I believe this is unique to Sprint devices
omadm_cust_database (folder) - also possibly unique to Sprint devices
omadm_database (folder) - another possible Sprint-only folder
prop (folder)
prov (folder
usf (folder)
and then the 4 files I listed earlier

I wonder if you formatted or erased /persist at some point?? Wonder why you don't have all the folders I have...

As long as everything is working, I guess it isn't a problem...strange though...maybe ALL those folders are unique to Sprint devices?
 
  • Like
Reactions: FleetPhone

FleetPhone

Member
Jul 12, 2014
15
5
0
Yes, those are the correct permissions. You are all set!

I AM very confused as to why the stock ROM worked for you without the missing file, but it is supposed to be present on every Moto X.

You should be able to change roms all you like and the WiFi should "Persist" (haha)

Just FYI, my /persist folder has this:

data (folder)
lost+found (folder)
omadm (folder) - I believe this is unique to Sprint devices
omadm_cust_database (folder) - also possibly unique to Sprint devices
omadm_database (folder) - another possible Sprint-only folder
prop (folder)
prov (folder
usf (folder)
and then the 4 files I listed earlier

I wonder if you formatted or erased /persist at some point?? Wonder why you don't have all the folders I have...

As long as everything is working, I guess it isn't a problem...strange though...maybe ALL those folders are unique to Sprint devices?
Mine Is a Verizon phone, so that could be why. Also the early versions of twrp may have wiped everything once as it was not offically supported at the time. Explains all those weird Motorola errors I would get when fastbooting ( I fixed those eventually). I hope I don't need any more files, I would need to hunt them down. And now have an official twrp recovery. But thanks anyway.
 
Last edited:

hannoshi

Member
Mar 23, 2012
9
0
0
wifi bluetooth problems!!

I'm having the same issue, but reading the posts is very confusing, if someone can post the step by step to be done I would appreciate it. For months I am with this problem out, what caused me to increase my data plans by not being able to use wifi. PLIS I NEED SOME HELP =(
 

FleetPhone

Member
Jul 12, 2014
15
5
0
I'm having the same issue, but reading the posts is very confusing, if someone can post the step by step to be done I would appreciate it. For months I am with this problem out, what caused me to increase my data plans by not being able to use wifi. PLIS I NEED SOME HELP =(
Well, first you will need to use a file manager to look inside the persist folder, which is located in the root directory. You must have these 4 files:
.bt_nv.bin
WCNSS_qcom_wlan_nv.bin
WCNSS_qcom_wlan_nv_calibration_persist.bin
WCNSS_qcom_wlan_nv_regulatory_persist.bin

If they are there, you should be fine. If you still have a problem, then this solution is not for you.
 

PaulinhoCy

New member
Sep 9, 2014
1
0
0
Help ... I'm having the same problem :(

See the edit to my previous post. I linked the file you need. MY WCNSS_qcom_wlan_nv.bin file is 29.08KB.

Please try copying that file into your persist folder, and then changing permissions as I advised in the last post. Reboot and advise if WiFi is working now.

Hello friend!
I'm new here, I'm having the same problem, however I downloaded files from your MOTO X and put it in my folder PERSIST, then I put the Wi-Fi only worked twice. Do not know if it was something wrong that I did more I changed some files in the folder (/ system / etc / firmware / wlan / prima) I replaced the file with the WCNSS_qcom_wlan_nv.bin has PERSIST in the folder ... directory (/ system / etc / firmware / wlan / prima) got the files (WCNSS_CFG.dat, WCNSS_qcom_cfg.ini, WCNSS_qcom_wlan_nv.bin), you could make available the files in this directory? Or do you have another suggestion?

Note! There are times that the bluetooth connects any device located not more, then it stops working.
 
Last edited:

ernieerdos

New member
Oct 21, 2014
1
0
0
Wifi and bluetooth also not work on Moto X XT 1049 - Republic Wireless

All,
I've got the identical problem on a Moto X XT 1049 from Republic Wireless: unable to get wifi and bluetooth to go on.
1) Do you think it is possible that the file provided in this thread, for a 1060, would work on my 1049?
2) How do I put that file in the persist directory? My phone is not currently rooted.

(I'm a relative newbie so spell it out for me, if you don't mind. Much appreciated).

Ernie
 

marin1577

New member
Mar 20, 2015
2
0
0
Same WiFI Problems

I Have XT 1058 device and I've got same WiFI issues(4.4.2). In my /persist folder have:

Prov(folder)
usf(folder)

.bt_nv.bin
WCNSS_qcom_wlan_nv.bin
WCNSS_qcom_wlan_nv_calibration_persist.bin
WCNSS_qcom_wlan_nv_regulatory_persist.bin


The problem is, the last 2 files in the list, have a size of 0.00 B
I Have replaced them with the files provided from samwathegreat(and following the -rw-r--r-- permissions), but when i restart or shutdown, the files appears as if i haven´t done any change (0.00 B Size again)

I also replace WCNSS Files(except cfg.dat and cfg.ini) on system/etc/firmware/wlan/prima with the ones provided, 3 of them had 0.00 Size, but fortunately the changes persists after reboots or shuwtdown.


I'll really appreciate your help, sorry for my awfull english
 

Attachments

Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone