[Moto G Q&A, Help & Troubleshooting] sigitm:
It's no matter of a wifi network... The wifi doesn't start at all.

Here's a logcat trace when I try to switch on wifi:

01-11 23:28:49.394 4610 5010 E WifiHW : Failed to write wlan fw path param (Operation not permitted)
01-11 23:28:49.394 4610 5010 E SoftapController: Softap fwReload failed
01-11 23:28:49.395 4858 5117 E WifiStateMachine: Failed to reload STA firmware java.lang.IllegalStateException: command '20 softap fwreload wlan0 STA' failed with '400 20 SoftAP command has failed'
01-11 23:28:49.395 4610 5010 W CommandListener: Failed to retrieve HW addr for wlan0 (No such device)
01-11 23:28:49.399 4610 5010 D CommandListener: Setting iface cfg
01-11 23:28:49.400 4858 5117 E WifiStateMachine: Unable to change interface settings: java.lang.IllegalStateException: command '22 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 22 Failed to set address (No such device)'
01-11 23:28:49.400 4858 5117 E WifiMonitor: killSupplicant p2ptrue init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown
01-11 23:28:49.400 4858 5117 E wifi : Could not read interface wlan0 flags: 19
01-11 23:28:49.400 4858 5117 E WifiNative-HAL: Could not start hal
01-11 23:28:49.400 4858 5117 E WifiStateMachine: Failed to start HAL
01-11 23:28:49.411 4858 5117 D WifiMonitor: startMonitoring(wlan0) with mConnected = false
01-11 23:28:49.413 4858 5117 E WifiHW : Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
01-11 23:28:49.501 7077 7077 I wpa_supplicant: Successfully initialized wpa_supplicant
01-11 23:28:49.503 7077 7077 I wpa_supplicant: rfkill: Cannot open RFKILL control device
01-11 23:28:49.503 7077 7077 E wpa_supplicant: Could not read interface p2p0 flags: No such device
01-11 23:28:49.504 7077 7077 I wpa_supplicant: nl80211: deinit ifname=p2p0 disabled_11b_rates=0
01-11 23:28:49.504 7077 7077 E wpa_supplicant: Could not read interface p2p0 flags: No such device
01-11 23:28:49.504 7077 7077 E wpa_supplicant: p2p0: Failed to initialize driver interface
01-11 23:28:49.513 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:49.614 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:49.714 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:49.815 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:49.915 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:50.016 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:50.116 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:50.217 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:50.317 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:50.418 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:50.518 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:50.619 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:50.719 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:50.820 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:50.921 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:51.022 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:51.122 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:51.223 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:51.324 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:51.425 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:51.525 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:51.625 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:51.726 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:51.826 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:51.927 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:51.969 229 289 I ThermalEngine: Sensor:batt_therm:30200 mC
01-11 23:28:52.027 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:52.128 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:52.228 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:52.329 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:52.430 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:52.530 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:52.540 4612 5032 D audio_hw_primary: out_standby: enter: stream (0xb7227038) usecase(1: low-latency-playback)
01-11 23:28:52.595 4612 5032 D hardware_info: hw_info_append_hw_type : device_name = speaker-lite
01-11 23:28:52.630 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:52.731 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:52.831 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:52.932 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:53.032 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:53.133 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:53.233 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:53.334 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:53.434 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:53.535 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:53.635 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:53.739 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:53.840 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:53.940 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:54.041 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:54.142 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:54.242 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:54.343 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:54.443 4858 5117 E WifiHW : Supplicant not running, cannot connect
01-11 23:28:54.443 4858 5117 E WifiMonitor: startMonitoring(wlan0) failed!
01-11 23:28:54.446 4858 5117 E WifiStateMachine: Failed to setup control channel, restart supplicant
01-11 23:28:54.446 4858 5117 E WifiMonitor: killSupplicant p2ptrue init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown
01-11 23:28:58.842 4858 4880 I ActivityManager: Config changes=480 {1.0 ?mcc?mnc it_IT ldltr sw360dp w592dp h336dp 320dpi nrml land finger -keyb/v/h -nav/h s.6 themeResource=null}
01-11 23:28:58.849 4858 5099 I InputReader: Reconfiguring input devices. changes=0x00000004
01-11 23:28:58.849 4858 5099 I InputReader: Device reconfigured: id=3, name='synaptics_dsx_i2c', size 720x1280, orientation 1, mode 1, display id 0
01-11 23:28:58.851 4858 5099 I InputReader: Reconfiguring input devices. changes=0x00000004
01-11 23:28:59.055 4858 4892 I WindowManager: Screen frozen for +289ms due to Window{5fcb052 u0 com.android.settings/com.android.settings.SubSettings}
01-11 23:28:59.456 7156 7156 W ueventd : type=1400 audit(0.0:15): avc: denied { search } for uid=0 name="/" dev="mmcblk0p29" ino=2 scontext=u:r:ueventd:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=0
01-11 23:28:59.474 4610 5010 E WifiHW : Failed to write wlan fw path param (Operation not permitted)
01-11 23:28:59.474 4610 5010 E SoftapController: Softap fwReload failed
01-11 23:28:59.475 4858 5117 E WifiStateMachine: Failed to reload STA firmware java.lang.IllegalStateException: command '23 softap fwreload wlan0 STA' failed with '400 23 SoftAP command has failed'
01-11 23:28:59.475 4610 5010 W CommandListener: Failed to retrieve HW addr for wlan0 (No such device)
01-11 23:28:59.476 4610 5010 D CommandListener: Setting iface cfg
01-11 23:28:59.477 4858 5117 E WifiStateMachine: Unable to change interface settings: java.lang.IllegalStateException: command '25 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 25 Failed to set address (No such device)'
01-11 23:28:59.477 4858 5117 E WifiMonitor: killSupplicant p2ptrue init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown
01-11 23:28:59.477 4858 5117 E wifi : Could not read interface wlan0 flags: 19
01-11 23:28:59.477 4858 5117 E WifiNative-HAL: Could not start hal
01-11 23:28:59.477 4858 5117 E WifiStateMachine: Failed to start HAL
01-11 23:28:59.480 4858 5117 D WifiMonitor: startMonitoring(wlan0) with mConnected = false
01-11 23:28:59.588 7157 7157 I wpa_supplicant: Successfully initialized wpa_supplicant
01-11 23:28:59.590 7157 7157 I wpa_supplicant: rfkill: Cannot open RFKILL control device
01-11 23:28:59.590 7157 7157 E wpa_supplicant: Could not read interface p2p0 flags: No such device
01-11 23:28:59.590 7157 7157 I wpa_supplicant: nl80211: deinit ifname=p2p0 disabled_11b_rates=0
01-11 23:28:59.590 7157 7157 E wpa_supplicant: Could not read interface p2p0 flags: No such device
01-11 23:28:59.590 7157 7157 E wpa_supplicant: p2p0: Failed to initialize driver interface