[LG Optimus 2x] Fíghter02:
Bcmdhd wifi driver and wpa_supplicant interface problem?

I had the exact same issue today on CM 11 KK alpha 26. I compared your logs with mine (logcat, dmesg) and they are the same regarding wifi. This appears to be the relevant parts:

01-15 17:24:52.487 D/SoftapController( 120): Softap fwReload - Ok
01-15 17:24:52.497 D/CommandListener( 120): Setting iface cfg
01-15 17:24:52.497 D/CommandListener( 120): Trying to bring down wlan0
01-15 17:24:52.547 I/wpa_supplicant(23403): Successfully initialized wpa_supplicant
01-15 17:24:52.607 D/WifiMonitor( 479): startMonitoring(wlan0) with mConnected = false
01-15 17:24:53.327 I/wpa_supplicant(23403): rfkill: Cannot open RFKILL control device
01-15 17:24:57.387 E/wpa_supplicant(23403): Could not set interface wlan0 flags (UP): Operation not permitted
01-15 17:24:57.397 E/wpa_supplicant(23403): nl80211: Could not set interface 'wlan0' UP
01-15 17:24:57.457 E/wpa_supplicant(23403): wlan0: Failed to initialize driver interface
01-15 17:25:03.627 E/WifiHW ( 479): Supplicant not running, cannot connect
01-15 17:25:07.637 E/WifiMonitor( 479): startMonitoring(wlan0) failed!
01-15 17:25:07.637 E/WifiStateMachine( 479): Failed to setup control channel, restart supplicant

This is what is looks like on the kernel side:

<4>[64374.415724] Dongle Host Driver, version 5.90.195.114
<4>[64376.419758] dhd_bus_txctl: ctrl_frame_stat == TRUE txcnt_timeout=1
<4>[64376.426097] dhdcdc_query_ioctl: dhdcdc_msg failed w/status -5
<4>[64376.431923] wlan0: toe not supported by device
<4>[64378.429726] dhd_bus_txctl: ctrl_frame_stat == TRUE txcnt_timeout=2
<4>[64378.436023] dhdcdc_set_ioctl: dhdcdc_msg failed w/status -110
<4>[64378.441875] dhd_check_hang: Event HANG send up due to re=0 te=2 e=-110 s=2
<4>[64378.448891] dhd_check_hang: Event HANG send up due to re=0 te=2 e=-110 s=2
<6>[64378.455951] CFG80211-ERROR) wl_dongle_up : WLC_UP error (-110)
<6>[64378.461896] CFG80211-ERROR) dhd_config_dongle : wl_dongle_up failed

This sounds like the same issue but the logs are actually different. This is from your logcat:

01-14 15:35:17.334 D/SoftapController( 119): Softap fwReload - Ok
01-14 15:35:17.334 D/CommandListener( 119): Setting iface cfg
01-14 15:35:17.334 D/CommandListener( 119): Trying to bring down wlan0
01-14 15:35:17.374 I/wpa_supplicant( 3496): Successfully initialized wpa_supplicant
01-14 15:35:17.474 I/wpa_supplicant( 3496): rfkill: Cannot open RFKILL control device
01-14 15:35:17.584 E/WifiConfigStore( 408): Error parsing configurationjava.io.FileNotFoundException: /data/misc/wifi/ipconfig.txt: open failed: ENOENT (No such file or directory)
01-14 15:35:48.924 D/WifiStateMachine( 408): Detected an interface down, restart driver
01-14 15:35:48.944 I/wpa_supplicant( 3496): wlan0: CTRL-EVENT-DRIVER-STATE STARTED
01-14 15:35:49.014 W/wpa_supplicant( 3496): wlan0: Failed to initiate AP scan

And from your dmesg:

<4>[ 1079.730251] Dongle Host Driver, version 5.90.195.114
<3>[ 1079.746672] CFGP2P-ERROR) wl_cfgp2p_supported : wl p2p error -23
<3>[ 1079.872961] WLDEV-ERROR) wldev_set_country : wldev_set_country: set country for HR as HR rev -1
<6>[ 1087.921918] CFG80211-ERROR) wl_scan_timeout_process : timer expired
<3>[ 1107.863820] init: untracked pid 3525 exited
<3>[ 1109.178964] init: untracked pid 3537 exited
<6>[ 1111.059459] CFG80211-ERROR) wl_scan_timeout_process : timer expired
<6>[ 1111.152748] CFG80211-ERROR) wl_scan_timeout_process : Continuous scan timeouts!! Exercising FW hang recovery
<6>[ 1111.171141] CFG80211-ERROR) wl_cfg80211_hang : In : chip crash eventing
<4>[ 1111.180823]
<4>[ 1111.180828] Dongle Host Driver, version 5.90.195.114
<3>[ 1111.190428] CFGP2P-ERROR) wl_cfgp2p_supported : wl p2p error -23
<6>[ 1111.221954] CFG80211-ERROR) wl_run_escan : Escan set error (-25)
<6>[ 1111.228188] CFG80211-ERROR) wl_run_escan :
<6>[ 1111.232881] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
<3>[ 1111.241992] init: no such service 'wifi-crda'
<4>[ 1111.246550] error (-25)
<6>[ 1111.249420] CFG80211-ERROR) wl_cfg80211_scan : scan error (-25)

Your logs contains some Tethering entries though, which afaik could have interfered with wifi. Where you using Tethering just before fetching these logs?

It looks like both issue's might be due to wpa_supplicant not being able to interface properly with the bcmdhd wifi driver, since both mentions that the interface is down or not initialized. Could this be the case [MENTION=3783116]pengus77[/MENTION]?

Sorry for the wall of text but I think it helps making my point more clear. :)