[Galaxy S 4 Q&A, Help & Troubleshooting] ajax505:
I did quick troubleshooting. My setup is:

stock 4.4.2, rooted with chainfire's auto root, custom recovery: CWM_6.0.4.7_Touch_GT-I9505

AP: I9505XXUGNH7

CP: I9505XXUGNH7

CSC: I9505VFGGNI1

logcat.log

10-18 19:35:12.470 I/WifiManager( 6761): setWifiEnabled : true
10-18 19:35:12.470 I/WifiService( 849): setWifiEnabled: true pid=6761, uid=1000
10-18 19:35:12.470 E/WifiHW ( 849): ##################### set firmware type 0 #####################
10-18 19:35:12.470 I/WifiHW ( 849): module is murata
10-18 19:35:12.470 E/WifiHW ( 849): ==========[WIFI] Station firmware load ===========
10-18 19:35:12.470 E/WifiHW ( 849): ==========[WIFI] MURATA MODULE ===========
10-18 19:35:12.540 D/lights ( 849): button : 0 +
10-18 19:35:12.540 D/lights ( 849): button : 0 -
10-18 19:35:12.770 W/EDMNativeHelper( 266): EDMNativeHelperService is published
10-18 19:35:13.321 W/Netd ( 267): No subsystem found in netlink event
10-18 19:35:13.321 D/Vpn ( 849): Interface removed : p2p0
10-18 19:35:13.321 D/NetlinkEvent( 267): Unexpected netlink message. type=0x11
10-18 19:35:13.611 E/WifiHW ( 849): return of insmod : ret = -1, No such device
10-18 19:35:13.611 E/WifiStateMachine( 849): Failed to load driver
10-18 19:35:13.641 D/STATUSBAR-NetworkController( 1233): onReceive() - RSSI_CHANGED_ACTION, WIFI_STATE, NETWORK_STATE
10-18 19:35:13.651 D/STATUSBAR-NetworkController( 1233): Nothing, mRoamingIconId = 0
10-18 19:35:13.671 E/WifiStateMachine( 849): sendErrorBroadcast code:10
10-18 19:35:13.671 E/WifiController( 849): Wi-Fi driver is unstable. Received CMD_STATEMACHINE_RESET
10-18 19:35:13.731 D/checkbox( 6761): setChecked(2) checked=false, animate=false, mCheckBoxAnimationEnabled=true, mIsAttached=false
10-18 19:35:13.731 D/checkbox( 6761): setChecked(2) checked=false, animate=false, mCheckBoxAnimationEnabled=true, mIsAttached=true
10-18 19:35:13.731 D/AbsListView( 6761): unregisterIRListener() is called
10-18 19:35:13.741 D/WifiSettings( 6761): >>> ERROR_ACTION RECEIVED code:10
...
10-18 19:44:00.644 E/WifiHW ( 849): return of insmod : ret = -1, No such device
10-18 19:44:00.644 E/WifiStateMachine( 849): Failed to load driver
10-18 19:44:00.654 E/WifiStateMachine( 849): sendErrorBroadcast code:10
10-18 19:44:00.654 D/STATUSBAR-NetworkController( 1233): onReceive() - RSSI_CHANGED_ACTION, WIFI_STATE, NETWORK_STATE
10-18 19:44:00.664 E/WifiController( 849): Wi-Fi driver is unstable. Received CMD_STATEMACHINE_RESET

dmesg.log

<4>[ 749.823181] check BCM4335, check_bcm4335_rev
<4>[ 749.823211] /data/.rev file open error
<4>[ 749.823852] wifi_set_power = 1
<4>[ 749.823883] WiFi: trying to acquire BT lock
<4>[ 749.823883] ####btlock acquired cookie: WiFi
<4>[ 749.823883] wifi_set_power: btlock acquired
<6>[ 749.823883] ------------------------------------------------
<6>[ 749.823913] ------------------------------------------------
<6>[ 749.823913] brcm_wlan_power Enter: power on
<7>[ 749.851989] [TouchKey] cypress_touchkey_led_work:0x20
<6>[ 749.852569] barcode_emul_ice4: ice_gpiox_get : num = 4 , val = 0
<6>[ 749.852569] barcode_emul_ice4: ice_gpiox_set : num = 4 , val = 1
<6>[ 749.862121] set_freq_limit: 0x1 810000, min 810000, max 1350000
<3>[ 749.870758] hostwake line change [BT]
<4>[ 749.880706] [brcm_wlan_power] Bluetooth Power On.
<6>[ 749.931976] barcode_emul_ice4: ice_gpiox_set : num = 3 , val = 1
<6>[ 750.012145] set_freq_limit: 0x1 -1, min 384000, max 1350000
<6>[ 750.062652] barcode_emul_ice4: ice_gpiox_set : num = 4 , val = 0
<4>[ 750.091491] [brcm_wlan_power] BT_REG_OFF.
<4>[ 750.292175] wifi_set_carddetect = 1
<4>[ 750.292205] brcm_wifi_status:298 status 1
<6>[ 750.292236] mmc1: Slot status change detected (0 -> 1)
<4>[ 750.365356] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
<4>[ 750.368225] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
<4>[ 750.369842] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
<4>[ 750.436187] mmc1: remove initialize and start re-tuning timerto prevent CMD53 request timeout
<4>[ 750.440582] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
<6>[ 750.440612] mmc1: new ultra high speed SDR104 SDIO card at address 0001
<4>[ 750.462341] alloc static buf at c7e80000!
<4>[ 750.469696] F1 signature OK, socitype:0x1 chip:0x4335 rev:0x1 pkg:0x0
<4>[ 750.470764] DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
<4>[ 750.470916] CHIP VER = [0x1]
<4>[ 750.470916] ----- CHIP bcm4335_B0 -----
<6>[ 750.472717] CFG80211-INFO2) wl_event_handler : tsk Enter, tsk = 0xdce375f8
<4>[ 750.472747] wl_create_event_handler(): thread:wl_event_handler:1df1 started
<4>[ 750.480255] p2p0: P2P Interface Registered
<4>[ 750.480346] dhd_attach(): thread:dhd_watchdog_thread:1df2 started
<4>[ 750.480468] dhd_attach(): thread:dhd_dpc:1df3 started
<4>[ 750.480590] dhd_attach(): thread:dhd_rxf:1df4 started
<4>[ 750.480682] dhd_attach(): thread:dhd_sysioc:1df5 started
<4>[ 750.481018] dhd_bus_start: nvram_type = [txt_murata]
<3>[ 750.548217] mmc1: Data CRC error
<3>[ 750.548339] msmsdcc_data_err: opcode 0x00000035
<3>[ 750.548431] msmsdcc_data_err: blksz 64, blocks 32
<4>[ 750.548553] sdioh_request_packet: TX FAILED c7dadd80[0], addr=0x0c000, pkt_len=2048, ERR=-84
<4>[ 750.548553] dhdsdio_membytes: membytes transfer failed
<6>[ 750.548706] sps:BAM 0x12182000 enabled: ver:0x5, number of pipes:6bcmsdh_sdmmc: Failed to Write byte F1:@0x1000a=00, Err: -5
<4>[ 750.549987] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000a=00, Err: -5
<4>[ 750.551025] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000a=00, Err: -5
<4>[ 750.551025] dhdsdio_membytes: FAILED to set window back to 0x18100000
<4>[ 750.551025] dhdsdio_download_code_file: error -1 on writing 2048 membytes at 0x001e4000
<4>[ 750.551055] _dhdsdio_download_firmware: dongle image file download failed
<4>[ 750.551086] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000e=00, Err: -5
<4>[ 750.552154] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000e=00, Err: -5
<4>[ 750.553192] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000e=00, Err: -5
<4>[ 750.553192] dhdsdio_htclk: Failed access turning clock off: -35
<4>[ 750.553222] dhd_bus_start: dhdsdio_probe_download failed. firmware or nvram wrong
<4>[ 750.553222] dhdsdio_probe: dhd_bus_start failed
<4>[ 750.571990] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000e=08, Err: -5
<4>[ 750.573059] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000e=08, Err: -5
<4>[ 750.574096] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000e=08, Err: -5
<4>[ 750.574096] dhdsdio_htclk: HT Avail request error: -35
<4>[ 750.574157] dhd_detach(): thread:dhd_sysioc:1df5 terminated OK
<4>[ 750.574218] dhd_detach(): thread:dhd_watchdog_thread:1df2 terminated OK
<4>[ 750.574249] dhd_dpc_thread: Unexpected up_cnt 0
<4>[ 750.574279] dhd_detach(): thread:dhd_dpc:1df3 terminated OK
<4>[ 750.574340] dhd_detach(): thread:dhd_rxf:1df4 terminated OK
<6>[ 750.612518] CFG80211-INFO2) wl_event_handler : was terminated
<4>[ 750.612670] wl_destroy_event_handler(): thread:wl_event_handler:1df1 terminated OK
<4>[ 750.633514] sdioh_disable_func_intr: error for read SDIO_CCCR_IENx : 0xfffffffb
<4>[ 750.633575] dhd_osl_detach: MEMORY LEAK 156 bytes
<4>[ 750.635009]
<4>[ 750.635009] Dongle Host Driver, version 1.88.54 (RC2_1223)
<4>[ 750.635040] Compiled in drivers/net/wireless/bcmdhd on Aug 20 2014 at 21:44:17
<4>[ 750.635070] dhd_module_init: sdio_register_driver timeout or error
<4>[ 750.636444] ## wifi_remove
<4>[ 750.636474] wifi_set_power = 0
<4>[ 750.636505] ####btlock released, cookie: WiFi
<6>[ 750.636505] ------------------------------------------------
<6>[ 750.636535] ------------------------------------------------
<6>[ 750.636566] brcm_wlan_power Enter: power off
<6>[ 750.636596] barcode_emul_ice4: ice_gpiox_set : num = 3 , val = 0
<4>[ 750.872039] wifi_set_carddetect = 0
<4>[ 750.872070] brcm_wifi_status:298 status 0
...
<4>[ 1277.572845] failed to power up wifi chip, retry again (1 left) **
<4>[ 1277.572845]
<4>[ 1277.591125] ## wifi_remove
<4>[ 1277.591125] wifi_set_power = 0
<4>[ 1277.591156] ####btlock released, cookie: WiFi
<6>[ 1277.591156] ------------------------------------------------
<6>[ 1277.591156] ------------------------------------------------
<6>[ 1277.591156] brcm_wlan_power Enter: power off
<6>[ 1277.591186] barcode_emul_ice4: ice_gpiox_set : num = 3 , val = 0
<7>[ 1277.592590] usb 1-1: usb wakeup-resume
<7>[ 1277.592651] usb 1-1: finish resume
<7>[ 1277.599456] hub 1-0:1.0: resume on port 1, status 0
<7>[ 1277.599487] hub 1-0:1.0: port 1, status 0503, change 0004, 480 Mb/s
<6>[ 1277.727569] !@Sync 42
<6>[ 1277.732635] set_freq_limit: 0x1 -1, min 384000, max 1350000
<4>[ 1277.822662] wifi_set_carddetect = 0
<4>[ 1277.822692] brcm_wifi_status:298 status 0
<6>[ 1277.822692] mmc1: Slot status change detected (1 -> 0)
<4>[ 1277.823638]
<4>[ 1277.823638] failed to power up wifi chip, max retry reached, exits **

No matter what ROM I flash, wifi wont turn on. Can someone with working wifi check /persist partition (folder)?

persist is mounted on /dev/block/mmcblk0p17 and mine is empty.

thanks

---------- Post added at 09:38 AM ---------- Previous post was at 09:03 AM ----------

The reason why I'm interested in /persist mount point is:

"The /Persist partition/folder was messed up on my phone. It stores the original bin files for our WIFI and BT so when we install a ROM or do an RSD to stock it copies them into the /System/etc/firmware/wlan/prima folder."

For our device the original bin files should be copied from /persist to /System/etc/firmware/wifi

[REF.]: forum.cyanogenmod.org/topic/84876-wifi-failure-after-cm11-install-still-present-after-restore-from-backup/#entry433274