[Treble-Enabled Device Development A/AB ROMS] GBouerat:
No WIFI on Xiaomi Mi Pad 4

logcat when trying to enable WIFI :

08-21 00:01:41.998 2317 2317 I chatty : uid=0(root) bootctl identical 2 lines
08-21 00:01:43.000 2317 2317 W ServiceManagement: Waited one second for android.hardware.boot@1.0::IBootControl/default. Waiting another...
08-21 00:01:43.999 1384 1603 E LightsService: Light requested not available on this device. 2
08-21 00:01:44.000 2317 2317 W ServiceManagement: Waited one second for android.hardware.boot@1.0::IBootControl/default. Waiting another...
08-21 00:01:44.118 1384 3218 D WifiService: setWifiEnabled: true pid=1935, uid=1000, package=com.android.settings
08-21 00:01:44.118 1384 3218 I WifiService: setWifiEnabled package=com.android.settings uid=1000 enable=true
08-21 00:01:44.119 1384 1698 D WifiController: StaEnabledState.enter()
08-21 00:01:44.120 1384 1699 D WifiStateMachinePrime: received a message in WifiDisabledState: { when=0 what=0 target=com.android.internal.util.StateMachine$SmHandler }
08-21 00:01:44.120 1384 1699 D WifiStateMachinePrime: Switching from WifiDisabledState to ClientMode
08-21 00:01:44.120 1384 1699 D WifiStateMachinePrime: Entering ClientModeActiveState
08-21 00:01:44.120 1384 1699 D WifiClientModeManager: entering IdleState
08-21 00:01:44.120 1384 1413 I WifiService: requestActivityInfo uid=1000
08-21 00:01:44.121 1384 1699 D WifiStateMachine: DefaultState !CMD_SET_HIGH_PERF_MODE rt=516755/516755 0 0
08-21 00:01:44.121 1384 1413 I WifiService: reportActivityInfo uid=1000
08-21 00:01:44.121 1384 1413 I WifiService: getSupportedFeatures uid=1000
08-21 00:01:44.121 1384 1699 D WifiStateMachine: setSuspendOptimizations: 2 true
08-21 00:01:44.121 1384 1699 D WifiStateMachine: mSuspendOptNeedsDisabled 4
08-21 00:01:44.121 1384 1699 D WifiStateMachinePrime: State changed from client mode. state = 2
08-21 00:01:44.121 1384 1699 D WifiStateMachine: setting wifi state to: 2
08-21 00:01:44.121 1384 1413 D WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.send message=131133
08-21 00:01:44.125 905 2920 D audio_hw_primary: start_output_stream: enter: stream(0xece9a000)usecase(1: low-latency-playback) devices(0x2)
08-21 00:01:44.127 905 2920 D audio_hw_primary: select_devices for use case (low-latency-playback)
08-21 00:01:44.127 905 2920 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
08-21 00:01:44.127 905 2920 I msm8916_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 1 device (speaker)
08-21 00:01:44.127 905 2920 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
08-21 00:01:44.127 905 2920 I msm8916_platform: platform_check_and_set_codec_backend_cfg: becf: new_snd_devices[0] is speaker
08-21 00:01:44.127 905 2920 I msm8916_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 current bit width: 16 sample rate: 48000 channels: 2 usecase 1 device (speaker)
08-21 00:01:44.127 905 2920 D msm8916_platform: platform_check_codec_backend_cfg:becf: afe: playback on codec device not supporting native playback set default Sample Rate(48k)
08-21 00:01:44.127 905 2920 I msm8916_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 sample rate: 48000 channels: 2
08-21 00:01:44.127 905 2920 D audio_hw_primary: check_usecases_codec_backend:becf: force routing 0
08-21 00:01:44.127 931 970 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
08-21 00:01:44.127 905 2920 E msm8916_platform: platform_check_backends_match: Invalid snd_device =
08-21 00:01:44.127 1384 1384 D WifiP2pService: Wifi enabled=false, P2P Interface availability=true
08-21 00:01:44.127 905 2920 D audio_hw_primary: check_usecases_codec_backend:becf: (59) check_usecases curr device: speaker, usecase device: backends match 0
08-21 00:01:44.127 905 2920 D audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0
08-21 00:01:44.127 905 2920 D hardware_info: hw_info_append_hw_type : device_name = speaker
08-21 00:01:44.127 905 2920 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
08-21 00:01:44.127 905 2920 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)
08-21 00:01:44.127 905 2920 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 1, with Raise=0
08-21 00:01:44.127 905 2920 D audio_route: Apply path: speaker
08-21 00:01:44.127 905 2920 D audio_hw_primary: audio_is_true_native_stream_active:napb: (0) (low-latency-playback)id (1) sr 48000 bw (16) device speaker
08-21 00:01:44.127 905 2920 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 1 of type 0 for Event 3, with Raise=0
08-21 00:01:44.127 905 2920 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->out_snd_device speaker
08-21 00:01:44.127 905 2920 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
08-21 00:01:44.128 1384 1701 D WifiAsyncChannel.WifiP2pService: sendMessage sendMessage message=131205
08-21 00:01:44.128 905 2920 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate
08-21 00:01:44.128 905 2920 I audio_hw_utils: send_app_type_cfg_for_device PLAYBACK app_type 69937, acdb_dev_id 15, sample_rate 48000, snd_device_be_idx 43
08-21 00:01:44.129 1384 3218 I WifiService: getWifiEnabledState uid=10024
08-21 00:01:44.129 905 2920 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
08-21 00:01:44.129 905 2920 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0, app id = 0x11131, sample rate = 48000
08-21 00:01:44.129 905 2920 D ACDB-LOADER: ACDB -> send_asm_topology
08-21 00:01:44.129 905 2920 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
08-21 00:01:44.129 905 2920 D ACDB-LOADER: ACDB -> send_adm_topology
08-21 00:01:44.129 905 2920 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
08-21 00:01:44.129 905 2920 D ACDB-LOADER: ACDB -> send_audtable
08-21 00:01:44.129 905 2920 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
08-21 00:01:44.129 905 2920 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> send_audvoltable
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_VOL_STEP_TABLE_SIZE
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_SIZE
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> send_audstrmtable
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> send_afe_topology
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 15, Topology Id 1025e
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> send_afe_cal
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 15 path = 0
08-21 00:01:44.130 905 2920 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
08-21 00:01:44.130 905 2920 D audio_hw_primary: enable_audio_route: apply mixer and update path: low-latency-playback
08-21 00:01:44.130 905 2920 D audio_route: Apply path: low-latency-playback
08-21 00:01:44.132 905 2920 D audio_hw_primary: select_devices: done
08-21 00:01:44.132 1384 3218 I WifiService: getWifiEnabledState uid=1000
08-21 00:01:44.132 1384 1699 D HalDevMgr: createIface: ifaceType=0, lowPriority=false
08-21 00:01:44.134 1384 3218 I WifiService: getWifiEnabledState uid=1000
08-21 00:01:44.146 1384 1699 E WifiVendorHal: Failed to create STA iface
08-21 00:01:44.146 1384 1699 E WifiVendorHal: createStaIface(l.420) returns null
08-21 00:01:44.146 1384 1699 E WifiNative: Failed to create STA iface in vendor HAL
08-21 00:01:44.146 1384 1699 E WifiClientModeManager: Failed to create ClientInterface. Sit in Idle
08-21 00:01:44.147 1384 1699 D WifiStateMachinePrime: State changed from client mode. state = 4
08-21 00:01:44.147 1384 1699 D WifiClientModeManager: expected stop, not triggering callbacks: newState = 1
08-21 00:01:44.147 1384 1699 D WifiStateMachine: setting wifi state to: 1
08-21 00:01:44.149 1384 1699 D WifiStateMachine: DefaultState !CMD_GET_SUPPORTED_FEATURES uid=1000 rt=516783/516783 0 0
08-21 00:01:44.149 1384 3218 I WifiService: getWifiEnabledState uid=10024
08-21 00:01:44.151 1384 1384 D WifiP2pService: Wifi enabled=false, P2P Interface availability=true
08-21 00:01:44.152 1384 1701 D WifiAsyncChannel.WifiP2pService: sendMessage sendMessage message=131205
08-21 00:01:44.154 1384 1699 D WifiStateMachine: DefaultState !CMD_DISABLE_P2P_RSP uid=1000 rt=516788/516788 0 0
08-21 00:01:44.154 1384 1699 D WifiStateMachinePrime: ClientMode failed, return to WifiDisabledState.
08-21 00:01:44.154 1384 1699 D WifiController: ClientMode unexpected failure: state unknown
08-21 00:01:44.154 1384 1699 D WifiClientModeManager: currentstate: IdleState
08-21 00:01:44.154 1384 1413 D WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.recv message=131133 sendingUid=1000
08-21 00:01:44.154 1384 1413 E BatteryExternalStatsWorker: no controller energy info supplied for wifi
08-21 00:01:44.154 1384 1699 D WifiStateMachinePrime: Entering WifiDisabledState
08-21 00:01:44.154 1384 1699 D ActiveModeManager: sending scan available broadcast: false
08-21 00:01:44.154 1384 1699 D WifiScanRequestProxy: Scanning for hidden networks is disabled
08-21 00:01:44.154 1384 1699 D WifiStateMachine: DefaultState !CMD_DISABLE_P2P_RSP uid=1000 rt=516789/516789 0 0
08-21 00:01:44.155 1384 1699 D WifiStateMachinePrime: received a message in WifiDisabledState: { when=0 what=1 target=com.android.internal.util.StateMachine$SmHandler }
08-21 00:01:44.155 1384 1699 D WifiStateMachinePrime: Switching from WifiDisabledState to ScanOnlyMode
08-21 00:01:44.155 1384 1699 D WifiStateMachinePrime: Entering ScanOnlyModeActiveState
08-21 00:01:44.155 1384 1700 I WifiScanningService: wifi driver unloaded
08-21 00:01:44.158 1384 1413 I WifiService: requestActivityInfo uid=1000
08-21 00:01:44.159 1384 1413 I WifiService: reportActivityInfo uid=1000
08-21 00:01:44.159 1384 1413 I WifiService: getSupportedFeatures uid=1000
08-21 00:01:44.159 1384 1699 D WifiScanOnlyModeManager: entering IdleState
08-21 00:01:44.159 1384 1413 D WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.send message=131133
08-21 00:01:44.159 1384 1699 D HalDevMgr: createIface: ifaceType=0, lowPriority=true
08-21 00:01:44.161 1384 1699 E WifiVendorHal: Failed to create STA iface
08-21 00:01:44.162 1384 1699 E WifiVendorHal: createStaIface(l.420) returns null
08-21 00:01:44.162 1384 1699 E WifiNative: Failed to create STA iface in vendor HAL
08-21 00:01:44.162 1384 1699 E WifiScanOnlyModeManager: Failed to create ClientInterface. Sit in Idle
08-21 00:01:44.162 1384 1699 D WifiStateMachinePrime: ScanOnlyMode mode failed
08-21 00:01:44.162 1384 1699 D WifiStateMachine: DefaultState !CMD_GET_SUPPORTED_FEATURES uid=1000 rt=516796/516796 0 0
08-21 00:01:44.166 1384 1699 D WifiStateMachinePrime: ScanOnlyMode failed, return to WifiDisabledState.
08-21 00:01:44.166 1384 1413 D WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.recv message=131133 sendingUid=1000
08-21 00:01:44.166 1384 1699 D WifiController: ScanOnlyMode unexpected failure: state unknown
08-21 00:01:44.166 1384 1699 D WifiScanOnlyModeManager: currentstate: IdleState
08-21 00:01:44.166 1384 1699 D WifiStateMachinePrime: Entering WifiDisabledState
08-21 00:01:44.166 1384 1699 D ActiveModeManager: sending scan available broadcast: false
08-21 00:01:44.167 1384 1699 D WifiScanRequestProxy: Scanning for hidden networks is disabled
08-21 00:01:44.167 1384 3218 I WifiService: getWifiEnabledState uid=1000
08-21 00:01:44.167 1384 1700 I WifiScanningService: wifi driver unloaded
08-21 00:01:44.168 1384 3218 I WifiService: getWifiEnabledState uid=1000
08-21 00:01:44.171 1384 1413 I WifiService: requestActivityInfo uid=1000
08-21 00:01:44.171 1384 1413 I WifiService: reportActivityInfo uid=1000
08-21 00:01:44.171 1384 1413 I WifiService: getSupportedFeatures uid=1000
08-21 00:01:44.172 1384 1413 D WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.send message=131133
08-21 00:01:44.172 1384 1699 D WifiStateMachine: DefaultState !CMD_GET_SUPPORTED_FEATURES uid=1000 rt=516806/516806 0 0
08-21 00:01:44.175 1384 1413 D WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.recv message=131133 sendingUid=1000
08-21 00:01:44.187 905 2920 D msm8916_platform: platform_set_channel_map mixer_ctl_name:Playback Channel Map13
08-21 00:01:44.187 905 2920 D msm8916_platform: platform_set_channel_map: set mapping(1 2 0 0 0 0 0 0) for channel:2
08-21 00:01:44.188 905 2920 D audio_hw_primary: start_output_stream: exit