[Galaxy S 5 Q&A, Help & Troubleshooting] htimsxela:
I've been reading a lot over the web to find information about this issue I'm having, but by no means I could solve this issue.

I just got my S5. Here's a (very short) excerpt of the

adb shell dumpstate

command:

[ril.product_code]: [SM-G900MZWPZTO]
[ro.product.model]: [SM-G900M]

When I got the phone, the first thing I did, as it was used, was to factory-reset it, because I didn't want any data from the previous user. I did this through the phone UI, not from within recovery (wipe cache/wipe data).

Once reset was done, I put in my microSIM and turned it back on. I had no way to test wifi and bluetooth at that point, so I used the mobile network to update my personal info, etc.

By the end of the day, I got home and tried to turn on wireless. The normal behavior of the indicator when turning wifi on is GRAY->DARK GREEN->GREEN, but the phone goes GRAY->DARK GREEN and doesn't go further. It stays in DARK GREEN for a couple minutes, then it goes back to GRAY.

The same happens to bluetooth. The only difference is that bluetooth takes less time to go back to GRAY.

The Android version installed was 4.2.2.

There was an offer to update Android, so I thought that could solve the problem, so I updated Android to 5.0 over mobile network (no wifi, remember?).

After the update, wifi still didn't work. By dialing *#1234#, I noticed this:

AP: G900MUBU1BOC4
CP: G900MUBU1BOC3
CSC: G900MZTO1BOC4

AP and CP are different. Shouldn't they be equal?

Anyway, after seeing the update didn't solve the problem, I did a downgrade, again with no success. The *#1234# now shows this:

AP: G900MUBU1ANCE
CP: G900MUBU1ANCE
CSC: G900MZTO1ANCE

Wifi still don't go on.

I also tried to flash two Android 5.0 (Lollipop) versions available to my country (got them from sammobile dot com):

/firmwares/download/45787/G900MUBU1BOC4_G900MZTO1BOC4_ZTO/

/firmwares/download/44412/G900MUBU1BOC1_G900MZTO1BOC1_ZTO/

None worked.

I used ODIN for all updates. Some background on how to use ODIN can be found here:

www dot droidforums dot net threads guide-complete-samsung-odin-v3-xx-options-and-reference.278159

While inspecting the phone's dumpstate, I found this:

01-01 10:56:42.519 732 967 E WifiHW : ##################### set firmware type 0 #####################
01-01 10:56:42.519 252 914 I WifiHW : wifi_change_fw_path(): fwpath = /system/etc/wifi/bcmdhd_sta.bin
01-01 10:56:42.519 252 914 E WifiHW : Cannot open "/data/.cid.info": No such file or directory
01-01 10:56:42.519 252 914 I WifiHW : wifi_change_nvram_path() = /system/etc/wifi/nvram_net.txt
01-01 10:56:42.519 252 914 E WifiHW : TEMP_FAILURE_RETRY complete
.
.
.
01-01 10:56:42.529 732 967 E WifiStateMachine: Unable to change interface settings: java.lang.IllegalStateException: command '16
01-01 10:56:42.529 732 967 E WifiHW : supplicant_name : p2p_supplicant
01-01 10:56:42.529 732 967 D WifiMonitor: startMonitoring(wlan0) with mConnected = false

The following also appears from time to time along the log:

01-01 10:56:53.549 732 967 E WifiHW : Supplicant not running, cannot connect

I read a lot about wifi connections dropping, but none about not being able to turn on wifi on Samsung Galaxy S5. Got to some similar threads on S4 and previous versions, but none about S5, so I decided to post here.

Some questions arises:

1. Am I the only one having this issue?

2. Can it be hardware-related? And if yes, is there any way to check this?

3. Could the Factory Reset have done something nasty to wifi config files? I read some suggestions to erase wpa_supplicant config files.

4. When flashing a new rom, is any data kept inside the phone or everything is erased?

5. Is there a way to reset the wifi only or updating its firmware?

Thanks for helping!