[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Netvetra:
Seems WIfi not yet up and running:

127|cepheus:/dev $ ifconfig

rmnet_data0 Link encap:UNSPEC

inet6 addr: fe80::d2a0:2b26:d378:619a/64 Scope: Link

UP RUNNING MTU:1500 Metric:1

RX packets:13 errors:0 dropped:0 overruns:0 frame:0

TX packets:17 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:2727 TX bytes:1166

rmnet_ipa0 Link encap:UNSPEC

UP RUNNING MTU:9216 Metric:1

RX packets:9 errors:0 dropped:0 overruns:0 frame:0

TX packets:14 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:3783 TX bytes:1302

dummy0 Link encap:UNSPEC

inet6 addr: fe80::3c88:b7ff:feb3:3df4/64 Scope: Link

UP BROADCAST RUNNING NOARP MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:21 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:3015

lo Link encap:UNSPEC

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope: Host

UP LOOPBACK RUNNING MTU:65536 Metric:1

RX packets:13 errors:0 dropped:0 overruns:0 frame:0

TX packets:13 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:1425 TX bytes:1425

cepheus:/dev $ logcat -d | grep Wifi

01-24 22:59:06.479 1400 1567 I ActivityManagerTiming: OnBootPhase_1000_com.android.server.wifi.WifiService

01-24 22:59:06.479 1400 1567 I ActivityManagerTiming: OnBootPhase_1000_com.android.server.wifi.scanner.WifiScanningService

01-24 22:59:06.479 1400 1567 I ActivityManagerTiming: OnBootPhase_1000_com.android.server.wifi.p2p.WifiP2pService

01-24 22:59:07.758 1400 1577 I SystemServerTimingAsync: ssm.onUnlockingUser-0_com.android.server.wifi.WifiService

01-24 22:59:07.759 1400 1577 I SystemServerTimingAsync: ssm.onUnlockingUser-0_com.android.server.wifi.scanner.WifiScanningService

01-24 22:59:07.759 1400 1577 I SystemServerTimingAsync: ssm.onUnlockingUser-0_com.android.server.wifi.p2p.WifiP2pService

01-24 22:59:11.760 1400 1578 I ActivityManager: Start proc 5503:com.google.android.apps.carrier.carrierwifi/u0a237 for broadcast {com.google.android.apps.carrier.carrierwifi/com.google.android.apps.carrier.carrierwifi.CarrierWifiReceiver}

01-24 22:59:19.604 0 0 I : Wifi Turning On from UI

01-24 22:59:22.642 1400 1577 I SystemServerTimingAsync: ssm.onUnlockedUser-0_com.android.server.wifi.WifiService

01-24 22:59:22.642 1400 1577 I SystemServerTimingAsync: ssm.onUnlockedUser-0_com.android.server.wifi.scanner.WifiScanningService

01-24 22:59:22.642 1400 1577 I SystemServerTimingAsync: ssm.onUnlockedUser-0_com.android.server.wifi.p2p.WifiP2pService

01-24 22:59:23.563 1400 1578 I ActivityManager: Start proc 7031:com.google.android.apps.carrier.carrierwifi/u0a237 for broadcast {com.google.android.apps.carrier.carrierwifi/com.google.android.apps.carrier.carrierwifi.CarrierWifiReceiver}

01-24 22:59:38.635 1400 1578 I ActivityManager: Start proc 8925:com.google.android.apps.carrier.carrierwifi/u0a237 for broadcast {com.google.android.apps.carrier.carrierwifi/com.google.android.apps.carrier.carrierwifi.CarrierWifiReceiver}

01-24 22:59:40.228 842 842 E android.hardware.wifi@1.0-service: Wifi HAL start failed

01-24 23:01:08.965 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 11 lines

01-24 23:01:41.770 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 13 lines

01-24 23:02:09.035 0 0 I : Wifi Turning On from UI

01-24 23:02:29.188 842 842 E android.hardware.wifi@1.0-service: Wifi HAL start failed

01-24 23:02:29.190 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 27 lines

01-24 23:02:29.193 1400 3122 I chatty : uid=1000(system) WifiScanningSer expire 2 lines

01-24 23:03:11.973 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 10 lines

01-24 23:03:52.965 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 6 lines

01-24 23:04:11.108 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 12 lines

01-24 23:04:14.447 4078 4871 I NearbyMediums: Can't stop accepting Wifi connections because it was never started. [CONTEXT service_id=54 ]

01-24 23:04:14.448 4078 4871 I NearbyMediums: Can't stop the Wifi hotspot because it was never turned on. [CONTEXT service_id=54 ]

01-24 23:04:14.449 4078 4871 I NearbyMediums: Cannot disconnect from the Wifi hotspot when it was never connected. [CONTEXT service_id=54 ]

01-24 23:04:14.449 4078 4871 I NearbyMediums: Can't stop accepting Wifi connections because it was never started. [CONTEXT service_id=54 ]

01-24 23:04:14.463 4078 4871 I Nearby : Successfully shutdown executor WifiDirect.singleThreadOffloader. [CONTEXT service_id=49 ]

01-24 23:04:14.464 4078 4871 I Nearby : Successfully shutdown executor WifiAwareNetworkManager.singleThreadOffloader. [CONTEXT service_id=49 ]

01-24 23:04:14.465 4078 4871 I Nearby : Successfully shutdown executor WifiAwareImpl.singleThreadOffloader. [CONTEXT service_id=49 ]

01-24 23:04:14.467 4078 4871 I Nearby : Successfully shutdown executor WifiAwareL2SocketManager.singleThreadOffloader. [CONTEXT service_id=49 ]

01-24 23:04:14.468 4078 4871 I Nearby : Successfully shutdown executor WifiLan.singleThreadOffloader. [CONTEXT service_id=49 ]

01-24 23:04:14.468 4078 4871 I Nearby : Successfully shutdown executor WifiHotspot.singleThreadOffloader. [CONTEXT service_id=49 ]

01-24 23:04:14.469 4078 4871 I NearbyMediums: Can't stop accepting Wifi connections because it was never started. [CONTEXT service_id=54 ]

01-24 23:04:14.469 4078 4871 I NearbyMediums: Can't stop the Wifi hotspot because it was never turned on. [CONTEXT service_id=54 ]

01-24 23:04:14.469 4078 4871 I NearbyMediums: Cannot disconnect from the Wifi hotspot when it was never connected. [CONTEXT service_id=54 ]

01-24 23:04:14.472 4078 4871 I Nearby : Successfully shutdown executor WifiRadio.singleThreadOffloader. [CONTEXT service_id=49 ]

01-24 23:04:36.348 0 0 I : Wifi Turning On from UI

01-24 23:04:56.398 842 842 E android.hardware.wifi@1.0-service: Wifi HAL start failed

01-24 23:04:56.399 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 17 lines

01-24 23:04:56.401 1400 3122 I chatty : uid=1000(system) WifiScanningSer expire 2 lines

01-24 23:05:06.772 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 10 lines

01-24 23:05:39.559 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 10 lines

01-24 23:06:20.559 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 11 lines

01-24 23:06:53.365 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 10 lines

01-24 23:07:36.607 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 10 lines

01-24 23:08:23.557 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 10 lines

01-24 23:08:56.333 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 10 lines

01-24 23:09:37.340 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 10 lines

01-24 23:10:18.337 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 10 lines

01-24 23:10:51.139 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 10 lines

01-24 23:11:25.570 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 4 lines

01-24 23:11:25.571 0 0 I : Wifi Turning On from UI

01-24 23:11:45.987 842 842 E android.hardware.wifi@1.0-service: Wifi HAL start failed

01-24 23:11:45.989 1400 3114 I chatty : uid=1000(system) WifiHandlerThre expire 21 lines

01-24 23:11:45.991 1400 3122 I chatty : uid=1000(system) WifiScanningSer expire 2 lines

01-24 23:11:46.031 1400 3114 D WifiController: DisabledState.exit()

01-24 23:11:46.031 1400 3114 D WifiController: EnabledState.enter()

01-24 23:11:46.031 1400 3114 D WifiClientModeManager: entering IdleState

01-24 23:11:46.032 0 0 I : Wifi Turning On from UI

01-24 23:11:46.197 1400 3363 I WifiService: setWifiEnabled package=com.google.android.setupwizard uid=10239 enable=true

01-24 23:12:06.467 842 842 E android.hardware.wifi@1.0-service: Wifi HAL start failed

01-24 23:12:06.468 1400 3114 E HalDevMgr: Cannot start IWifi: 9 ()

01-24 23:12:06.468 1400 3114 E WifiVendorHal: Failed to start vendor HAL

01-24 23:12:06.468 1400 3114 E WifiNative: Failed to start vendor HAL

01-24 23:12:06.468 1400 3114 E WifiNative: Failed to start Hal

01-24 23:12:06.468 1400 3114 E WifiClientModeManager: Failed to create ClientInterface. Sit in Idle

01-24 23:12:06.469 1400 3114 D WifiScanRequestProxy: Sending scan available broadcast: false

01-24 23:12:06.469 1400 3122 I WifiScanningService: Received a request to disable scanning, UID = 1000

01-24 23:12:06.469 1400 3122 I WifiScanningService: wifi driver unloaded

01-24 23:12:06.470 1400 3114 I WifiScanRequestProxy: Scanning is disabled

01-24 23:12:06.471 1400 3114 D WifiClientModeManager: received an invalid message: { when=-20s439ms what=2 arg1=2 target=com.android.wifi.x.com.android.internal.util.StateMachine$SmHandler }

01-24 23:12:06.471 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:12:06.472 1400 3114 E WifiClientModeImpl: getWifiLinkLayerStats called without an interface

01-24 23:12:06.472 1400 3114 D WifiActiveModeWarden: Starting ClientModeManager

01-24 23:12:06.473 1400 3114 D WifiClientModeManager: entering IdleState

01-24 23:12:06.473 1400 3114 E WifiClientModeImpl: getWifiLinkLayerStats called without an interface

01-24 23:12:06.474 1400 3114 D WifiController: STA disabled, remain in EnabledState.

01-24 23:12:06.474 0 0 I : Wifi Turning On from UI

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: WifiThreadRunner.call() timed out!

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: java.lang.Throwable: Stack trace:

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at com.android.server.wifi.WifiThreadRunner.call(WifiThreadRunner.java:80)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at com.android.server.wifi.WifiServiceImpl.getSupportedFeaturesInternal(WifiServiceImpl.java:3759)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at com.android.server.wifi.WifiServiceImpl.getSupportedFeatures(WifiServiceImpl.java:2046)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at android.net.wifi.WifiManager.getSupportedFeatures(WifiManager.java:2435)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at android.net.wifi.WifiManager.isFeatureSupported(WifiManager.java:2442)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at android.net.wifi.WifiManager.isEnhancedPowerReportingSupported(WifiManager.java:2554)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at com.android.server.am.BatteryExternalStatsWorker.updateExternalStatsLocked(BatteryExternalStatsWorker.java:422)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at com.android.server.am.BatteryExternalStatsWorker.access$900(BatteryExternalStatsWorker.java:61)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at com.android.server.am.BatteryExternalStatsWorker$1.run(BatteryExternalStatsWorker.java:361)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at java.util.concurrent.FutureTask.run(FutureTask.java:266)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at com.android.server.am.BatteryExternalStatsWorker.lambda$new$0(BatteryExternalStatsWorker.java:79)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at com.android.server.am.-$$Lambda$BatteryExternalStatsWorker$ddVY5lmqswnSjXppAxPTOHbuzzQ.run(Unknown Source:2)

01-24 23:12:10.474 1400 1606 E WifiThreadRunner: at java.lang.Thread.run(Thread.java:923)

01-24 23:12:11.229 1400 3366 I WifiService: setWifiEnabled package=com.android.shell uid=2000 enable=true

01-24 23:12:26.946 842 842 E android.hardware.wifi@1.0-service: Wifi HAL start failed

01-24 23:12:26.947 1400 3114 E HalDevMgr: Cannot start IWifi: 9 ()

01-24 23:12:26.948 1400 3114 E WifiVendorHal: Failed to start vendor HAL

01-24 23:12:26.948 1400 3114 E WifiNative: Failed to start vendor HAL

01-24 23:12:26.948 1400 3114 E WifiNative: Failed to start Hal

01-24 23:12:26.948 1400 3114 E WifiClientModeManager: Failed to create ClientInterface. Sit in Idle

01-24 23:12:26.948 1400 3114 D WifiScanRequestProxy: Sending scan available broadcast: false

01-24 23:12:26.949 1400 3122 I WifiScanningService: Received a request to disable scanning, UID = 1000

01-24 23:12:26.949 1400 3122 I WifiScanningService: wifi driver unloaded

01-24 23:12:26.949 1400 3114 I WifiScanRequestProxy: Scanning is disabled

01-24 23:12:26.951 1400 3114 D WifiClientModeManager: received an invalid message: { when=-20s478ms what=2 arg1=2 target=com.android.wifi.x.com.android.internal.util.StateMachine$SmHandler }

01-24 23:12:26.952 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:12:26.952 1400 3114 D WifiActiveModeWarden: Starting ClientModeManager

01-24 23:12:26.953 1400 3114 D WifiClientModeManager: entering IdleState

01-24 23:12:26.953 1400 3114 D WifiController: STA disabled, remain in EnabledState.

01-24 23:12:26.954 0 0 I : Wifi Turning On from UI

01-24 23:12:47.426 842 842 E android.hardware.wifi@1.0-service: Wifi HAL start failed

01-24 23:12:47.428 1400 3114 E HalDevMgr: Cannot start IWifi: 9 ()

01-24 23:12:47.428 1400 3114 E WifiVendorHal: Failed to start vendor HAL

01-24 23:12:47.428 1400 3114 E WifiNative: Failed to start vendor HAL

01-24 23:12:47.428 1400 3114 E WifiNative: Failed to start Hal

01-24 23:12:47.428 1400 3114 E WifiClientModeManager: Failed to create ClientInterface. Sit in Idle

01-24 23:12:47.429 1400 3114 D WifiScanRequestProxy: Sending scan available broadcast: false

01-24 23:12:47.429 1400 3122 I WifiScanningService: Received a request to disable scanning, UID = 1000

01-24 23:12:47.429 1400 3122 I WifiScanningService: wifi driver unloaded

01-24 23:12:47.430 1400 3114 I WifiScanRequestProxy: Scanning is disabled

01-24 23:12:47.430 1400 3114 D WifiClientModeManager: received an invalid message: { when=-20s478ms what=2 arg1=2 target=com.android.wifi.x.com.android.internal.util.StateMachine$SmHandler }

01-24 23:12:47.431 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:12:47.431 1400 3114 D WifiController: STA disabled, return to DisabledState.

01-24 23:12:47.431 1400 3114 D WifiController: EnabledState.exit()

01-24 23:12:47.431 1400 3114 D WifiController: DisabledState.enter()

01-24 23:12:47.482 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:12:54.111 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:13:02.313 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:13:10.504 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:13:26.905 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:13:35.109 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:13:36.595 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:13:49.914 1400 3114 E WifiClientModeImpl: getWifiLinkLayerStats called without an interface

01-24 23:13:59.714 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:14:07.914 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:14:16.113 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:14:24.310 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:14:32.507 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:14:34.127 1400 3114 D WifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=44, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10244 AdministratorUids: [] RequestorUid: 10244 RequestorPackageName: com.google.android.apps.safetyhub] ] with score 0 and providerId 0

01-24 23:14:34.128 1400 3114 D UntrustedWifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=44, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10244 AdministratorUids: [] RequestorUid: 10244 RequestorPackageName: com.google.android.apps.safetyhub] ] with score 0 and providerId 0

01-24 23:14:40.696 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:14:48.906 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:14:57.103 1400 3114 E WifiNative: Could not get Iface object for interface null

01-24 23:15:05.304 1400 3114 E WifiNative: Could not get Iface object for interface null

cepheus:/dev $