[Fire HD 8 and HD 10 Original Android Development] gregd72002:
Here is a logcat from it when trying to connect to 2.4Ghz wifi at my work place. Defo not ISP issue. Could it be router? I struggle to understand why would I be getting Out-of-memory errors and HAL issues due to a router.

Restart resolves the problem.

01-09 12:38:04.987 557 610 I WifiLastResortWatchdog: Triggered WiFi stack restart.
01-09 12:38:05.065 557 610 I WifiConnectivityManager: Set WiFi disabled
01-09 12:38:05.085 557 557 D RttService: SCAN_AVAILABLE : 1
01-09 12:38:05.085 557 616 I WifiScanningService: wifi driver unloaded
01-09 12:38:05.086 557 616 W AlarmManager: Unrecognized alarm listener com.android.server.wifi.scanner.SupplicantWifiScannerImpl$2@f561579
01-09 12:38:05.086 557 617 D RttService: EnabledState got{ when=0 what=160513 target=com.android.internal.util.StateMachine$SmHandler }
01-09 12:38:05.097 557 610 D WifiNative-HAL: Failing getSupportedFeatureset because HAL isn't started
01-09 12:38:05.097 557 573 E BatteryStatsService: no controller energy info supplied
01-09 12:38:05.112 843 1450 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
01-09 12:38:05.113 557 610 D WifiNative-HAL: stopRssiMonitoring, cmdId 0
01-09 12:38:05.118 557 610 D WifiStateMachine: SupplicantStoppingState: stopSupplicant init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown
01-09 12:38:05.123 557 610 D WifiNative-HAL: Failing getSupportedFeatureset because HAL isn't started
01-09 12:38:05.125 557 573 E BatteryStatsService: no controller energy info supplied
01-09 12:38:05.201 772 772 I wpa_supplicant: nl80211: deinit ifname=p2p0 disabled_11b_rates=0
01-09 12:38:05.231 772 772 I wpa_supplicant: p2p0: CTRL-EVENT-TERMINATING
01-09 12:38:05.338 772 772 I wpa_supplicant: CTRL_IFACE: Detach monitor that cannot receive messages: /data/misc/wifi/sockets/wpa_ctrl_557-2\x00
01-09 12:38:05.339 772 772 I wpa_supplicant: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
01-09 12:38:05.408 772 772 I wpa_supplicant: wlan0: CTRL-EVENT-TERMINATING
01-09 12:38:05.469 843 1450 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
01-09 12:38:05.544 21715 21787 E DuetDirect: IOException: Too many open files
01-09 12:38:05.653 557 610 E WifiMonitor: killSupplicant p2ptrue init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown
01-09 12:38:05.984 557 576 D IpManager.wlan0: interfaceRemoved(wlan0)
01-09 12:38:06.078 557 594 D LIGHT : [ALS]>>en:1,cnt:256,EV_ABS event:code,0;value,107
01-09 12:38:06.079 557 594 E PROXIMITY: ProximitySensor: unknown event (type=3, code=0)
01-09 12:38:06.090 555 555 I Binder:245_2: type=1400 audit(0.0:854): avc: denied { write } for name="wmtWifi" dev="tmpfs" ino=10649 scontext=u:r:netd:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
01-09 12:38:06.090 555 555 I Binder:245_2: type=1400 audit(0.0:855): avc: denied { open } for path="/dev/wmtWifi" dev="tmpfs" ino=10649 scontext=u:r:netd:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
01-09 12:38:06.263 557 576 D IpManager.wlan0: interfaceAdded(wlan0)
01-09 12:38:06.270 245 555 D SoftapController: Softap fwReload - Ok
01-09 12:38:06.285 245 555 D CommandListener: Setting iface cfg
01-09 12:38:06.285 245 555 D CommandListener: Trying to bring down wlan0
01-09 12:38:06.287 245 555 D CommandListener: Clearing all IP addresses on wlan0
01-09 12:38:06.280 308 308 I VSyncThread_0: type=1400 audit(0.0:856): avc: denied { ioctl } for path="/dev/mtk_disp_mgr" dev="tmpfs" ino=1611 ioctlcmd=4fd0 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
01-09 12:38:06.300 557 610 E wifi : Can not initialize the vendor function pointer table
01-09 12:38:06.300 557 610 E WifiNative-HAL: Could not start hal
01-09 12:38:06.301 557 610 E WifiStateMachine: Failed to start HAL
01-09 12:38:06.397 2182 2182 I wpa_supplicant: Successfully initialized wpa_supplicant
01-09 12:38:06.408 557 610 D WifiMonitor: startMonitoring(wlan0) with mConnected = false
01-09 12:38:06.409 557 610 E WifiHW : Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
01-09 12:38:06.510 557 610 E WifiHW : Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
01-09 12:38:06.544 21715 21787 E DuetDirect: IOException: Too many open files
01-09 12:38:06.578 557 594 D LIGHT : [ALS]>>en:1,cnt:256,EV_ABS event:code,0;value,103
01-09 12:38:06.579 557 594 E PROXIMITY: ProximitySensor: unknown event (type=3, code=0)
01-09 12:38:06.599 2182 2182 I wpa_supplicant: rfkill: Cannot open RFKILL control device
01-09 12:38:06.611 557 610 E WifiHW : Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
01-09 12:38:06.695 2182 2182 I wpa_supplicant: rfkill: Cannot open RFKILL control device
01-09 12:38:06.801 557 610 I WifiConnectivityManager: User band preference: 0
01-09 12:38:06.803 557 610 D WifiConfigManager: Loading config and enabling all networks
01-09 12:38:06.805 226 226 I wmt_launcher: fw log ctrl flag has been set
01-09 12:38:06.806 226 226 I wmt_launcher: fw dynamic ctrl flag has been set
01-09 12:38:06.829 557 594 D LIGHT : [ALS]>>en:1,cnt:256,EV_ABS event:code,0;value,101
01-09 12:38:06.829 557 594 E PROXIMITY: ProximitySensor: unknown event (type=3, code=0)
01-09 12:38:06.843 557 610 W WifiNetworkHistory: Upgrading network 1 to android.uid.system:1000
01-09 12:38:06.847 557 610 W WifiNetworkHistory: Upgrading network 0 to android.uid.system:1000
01-09 12:38:06.852 557 610 W WifiNetworkHistory: Upgrading network 2 to android.uid.system:1000
01-09 12:38:06.856 557 610 D WifiConfigManager: loaded 0 passpoint configs
01-09 12:38:06.870 557 610 D WifiNative-HAL: Setting external_sim to 1
01-09 12:38:06.871 557 610 D WifiStateMachine: Setting OUI to DA-A1-19
01-09 12:38:06.873 2182 2182 I wpa_supplicant: Set country: US
01-09 12:38:06.873 2182 2182 I wpa_supplicant: p2p0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=US
01-09 12:38:06.874 2182 2182 I wpa_supplicant: wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=US
01-09 12:38:06.877 557 610 D WifiCountryCode: Succeeded to set country code to: US
01-09 12:38:06.877 557 610 E WifiLogger: no ring buffers found
01-09 12:38:06.877 557 610 E WifiLogger: Failed to start packet fate monitoring
01-09 12:38:06.890 2182 2182 E wpa_supplicant: wpa_driver_nl80211_driver_cmd: failed to issue private commands, error msg: Out of memory
01-09 12:38:06.896 245 555 D CommandListener: Setting iface cfg
01-09 12:38:06.896 245 555 D CommandListener: Trying to bring up p2p0
01-09 12:38:06.897 557 557 D RttService: SCAN_AVAILABLE : 3
01-09 12:38:06.897 557 616 I WifiScanningService: wifi driver loaded with scan capabilities: max buckets=16
01-09 12:38:06.897 557 617 D RttService: DefaultState got{ when=-1ms what=160512 target=com.android.internal.util.StateMachine$SmHandler }
01-09 12:38:06.898 557 608 D WifiMonitor: startMonitoring(p2p0) with mConnected = true
01-09 12:38:06.904 557 608 D WifiNative-HAL: p2pGetDeviceAddress
01-09 12:38:06.906 557 610 I WifiConnectivityManager: Set WiFi enabled
01-09 12:38:06.907 557 610 I WifiConnectivityManager: scheduleWatchdogTimer
01-09 12:38:06.907 557 608 D WifiNative-HAL: p2pGetDeviceAddress returning 3e:5c:c4:37:7d:4e
01-09 12:38:06.942 557 610 D WifiNative-HAL: Failing getSupportedFeatureset because HAL isn't started
01-09 12:38:06.942 557 573 E BatteryStatsService: no controller energy info supplied
01-09 12:38:06.956 557 610 D WifiNative-HAL: Failing getSupportedFeatureset because HAL isn't started