[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Bardys:
No wifi for me either. It was working at the begining but stopped after the first reboot with working ROM (reboot to install Magisk, so it could be at fault)

Redmi Note 5, Global- RR-O-v6.1.0-20180629-whyred-Official+pico Gapps

Just in case- it's very unclear for newcomer how to flash the Rom properly because there are no complete instructions. Not sure if I did it 100% correctly

Unlocked bootloader, flashed the recommended TWRP

I was on newest Stock Global ROM(OTA updated) so I DID NOT flash the "Latest oreo miui build" provided in the first post assuming I have the newest firmware anyway

wiped system, data, cache, dalvik/ART cache

I wasn't sure if I am supposed to mount /vendor and wipe it so I DID NOT

Installed ROM, Gapps

Dalvik/cache wipe

Reboot

Wifi works, installed some apps and changed some settings in "Configurations-various customizations", reboot to recovery-flash magisk zip, reboot to system

Wifi stops working

After that i flashed just firmware zip - fw_whyred_miui_HMNote5HMNote5ProGlobal_V9.5.14.0.OEIMIFA_236e5090ac_8.1.zip Did not fix

07-04 13:19:18.480 791-816/? I/mmid: select timeout: wait for receiving msg
07-04 13:19:21.484 791-816/? I/chatty: uid=0(root) /vendor/bin/mmid identical 1 line
07-04 13:19:24.490 791-816/? I/mmid: select timeout: wait for receiving msg
07-04 13:19:26.205 3354-4534/? I/WifiService: getWifiApEnabledState uid=1000
07-04 13:19:26.211 3354-4534/? D/WifiService: setWifiEnabled: true pid=6547, uid=1000, package=com.android.settings
07-04 13:19:26.211 3354-4534/? I/WifiService: setWifiEnabled package=com.android.settings uid=1000 enable=true
07-04 13:19:26.217 2928-7387/? I/AudioPolicyManagerCustom: FLAG None hence request for a primary output
07-04 13:19:26.219 736-736/? I/android.hardware.wifi@1.0-service: Wifi HAL started
07-04 13:19:26.221 2928-7387/? I/AudioPolicyManagerCustom: FLAG None hence request for a primary output
07-04 13:19:26.227 717-5077/? D/audio_hw_primary: start_output_stream: enter: stream(0xe9611800)usecase(1: low-latency-playback) devices(0x2)
07-04 13:19:26.228 717-5077/? D/audio_hw_primary: select_devices for use case (low-latency-playback)
07-04 13:19:26.228 717-5077/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
07-04 13:19:26.228 717-5077/? 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)
07-04 13:19:26.228 717-5077/? D/msm8916_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
07-04 13:19:26.228 717-5077/? I/msm8916_platform: platform_check_and_set_codec_backend_cfg: becf: new_snd_devices[0] is speaker
07-04 13:19:26.228 717-5077/? 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)
07-04 13:19:26.228 717-5077/? D/msm8916_platform: platform_check_codec_backend_cfg:becf: afe: playback on codec device not supporting native playback set default Sample Rate(48k)
07-04 13:19:26.228 717-5077/? D/msm8916_platform: platform_check_codec_backend_cfg:becf: afe: only 48KHZ sample rate is supported Configure afe to default Sample Rate(48k)
07-04 13:19:26.228 717-5077/? I/msm8916_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 sample rate: 48000 channels: 2
07-04 13:19:26.229 717-5077/? D/audio_hw_primary: check_usecases_codec_backend:becf: force routing 0
07-04 13:19:26.229 717-5077/? E/msm8916_platform: platform_check_backends_match: Invalid snd_device =
07-04 13:19:26.229 717-5077/? D/audio_hw_primary: check_usecases_codec_backend:becf: (61) check_usecases curr device: speaker, usecase device: backends match 0
07-04 13:19:26.229 717-5077/? D/audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0
07-04 13:19:26.229 717-5077/? D/hardware_info: hw_info_append_hw_type : device_name = speaker
07-04 13:19:26.229 717-5077/? D/msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
07-04 13:19:26.229 717-5077/? D/audio_hw_primary: enable_snd_device: snd_device(2: speaker)
07-04 13:19:26.229 717-5077/? D/audio_route: Apply path: speaker
07-04 13:19:26.229 717-5077/? D/audio_hw_primary: audio_is_true_native_stream_active:napb: (0) (low-latency-playback)id (1) sr 48000 bw (16) device speaker
07-04 13:19:26.229 717-5077/? D/audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->out_snd_device speaker
07-04 13:19:26.229 717-5077/? D/msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
07-04 13:19:26.231 717-5077/? 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
07-04 13:19:26.233 717-5077/? D/msm8916_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
07-04 13:19:26.233 717-5077/? D/ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0, app id = 0x11131, sample rate = 48000
07-04 13:19:26.233 717-5077/? D/ACDB-LOADER: ACDB -> send_asm_topology
07-04 13:19:26.233 717-5077/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
07-04 13:19:26.234 717-5077/? D/ACDB-LOADER: ACDB -> send_adm_topology
07-04 13:19:26.234 717-5077/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
07-04 13:19:26.234 717-5077/? D/ACDB-LOADER: ACDB -> send_audtable
07-04 13:19:26.234 717-5077/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE

[ 07-04 13:19:26.234 717: 5077 D/ ]
ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
07-04 13:19:26.234 717-5077/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE

[ 07-04 13:19:26.234 717: 5077 D/ ]
ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
07-04 13:19:26.234 717-5077/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
07-04 13:19:26.234 717-5077/? D/ACDB-LOADER: ACDB -> send_audvoltable
07-04 13:19:26.234 717-5077/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_VOL_STEP_TABLE_SIZE

[ 07-04 13:19:26.234 717: 5077 D/ ]
ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
07-04 13:19:26.234 717-5077/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0

[ 07-04 13:19:26.234 717: 5077 D/ ]
ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
07-04 13:19:26.234 717-5077/? D/ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_SIZE
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> send_audstrmtable
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> send_afe_topology
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 15, Topology Id 112fc
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> send_afe_cal
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE

[ 07-04 13:19:26.235 717: 5077 D/ ]
ACDBFILE_MGR:Read the devices count as zero, please check the acdb file

[ 07-04 13:19:26.235 717: 5077 D/ ]
Failed to fetch the lookup information of the device 0000000F
07-04 13:19:26.235 717-5077/? E/ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE

[ 07-04 13:19:26.235 717: 5077 D/ ]
ACDBFILE_MGR:Read the devices count as zero, please check the acdb file

[ 07-04 13:19:26.235 717: 5077 D/ ]
Failed to fetch the lookup information of the device 0000000F
07-04 13:19:26.235 717-5077/? E/ACDB-LOADER: Error: ACDB AFE returned = -19
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 15 path = 0
07-04 13:19:26.235 717-5077/? D/ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
07-04 13:19:26.235 717-5077/? D/audio_hw_primary: enable_audio_route: apply mixer and update path: low-latency-playback speaker
07-04 13:19:26.235 717-5077/? D/audio_route: Apply path: low-latency-playback speaker
07-04 13:19:26.235 742-777/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
07-04 13:19:26.237 736-736/? E/android.hardware.wifi@1.0-service: Could not read interface state for wlan0 (No such device)
07-04 13:19:26.237 736-736/? E/android.hardware.wifi@1.0-service: Failed to set WiFi interface up
07-04 13:19:26.237 736-736/? E/android.hardware.wifi@1.0-service: Failed to start legacy HAL: UNKNOWN
07-04 13:19:26.239 717-5077/? D/audio_hw_primary: select_devices: done
07-04 13:19:26.240 3354-4281/? E/HalDeviceManager: executeChipReconfiguration: configureChip error: 9 (unknown)
07-04 13:19:26.285 717-5077/? D/msm8916_platform: platform_set_channel_map mixer_ctl_name:Playback Channel Map13
07-04 13:19:26.285 717-5077/? D/msm8916_platform: platform_set_channel_map: set mapping(1 2 0 0 0 0 0 0) for channel:2
07-04 13:19:26.286 717-5077/? D/audio_hw_primary: start_output_stream: exit
07-04 13:19:26.452 736-736/? I/android.hardware.wifi@1.0-service: Wifi HAL stopped
07-04 13:19:26.454 3354-4281/? E/WifiNative-wlan0: Failed to start HAL for client mode
07-04 13:19:26.457 3354-3354/? E/WifiController: WifiControllerWifi turn on failed
07-04 13:19:26.458 5808-5808/? I/QDMA:EventsManager: Received WIFI_STATE_CHANGE_ACTION
07-04 13:19:26.458 5808-5808/? I/QDMA:EventsManager: Received WIFI_STATE_CHANGED_ACTION : WIFI_STATE_UNKNOWN
07-04 13:19:26.459 4466-4549/? I/QCNEJ/CndHalConnector: -> SND notifyRatConnectionStatusChanged(rat = 1, UNKNOWN)
07-04 13:19:26.460 3354-4534/? I/WifiService: getWifiApEnabledState uid=1000
07-04 13:19:26.461 3354-3573/? E/BatteryExternalStatsWorker: modem info is invalid: ModemActivityInfo{ mTimestamp=1145942 mSleepTimeMs=52048 mIdleTimeMs=-2572 mTxTimeMs[]=[0, 12, 74, 76, 48] mRxTimeMs=6277 mEnergyUsed=0}
07-04 13:19:26.462 3092-3092/? E/Parcel: Reading a NULL string not supported here.
07-04 13:19:26.462 3092-3092/? I/chatty: uid=1000(system) /system/bin/dpmd identical 2 lines
07-04 13:19:26.462 3092-3092/? E/Parcel: Reading a NULL string not supported here.
07-04 13:19:26.466 3354-4281/? I/WifiVendorHal: Vendor Hal stopped
07-04 13:19:26.466 3354-4281/? D/WificondControl: tearing down interfaces in wificond
07-04 13:19:26.467 3354-4986/? I/WifiService: getWifiEnabledState uid=1000
07-04 13:19:26.468 3354-4499/? I/WifiService: getWifiEnabledState uid=1000
07-04 13:19:26.473 3354-4499/? I/WifiService: getWifiApEnabledState uid=1000
07-04 13:19:26.476 736-736/? I/android.hardware.wifi@1.0-service: Wifi HAL started
07-04 13:19:26.480 736-736/? E/android.hardware.wifi@1.0-service: Could not read interface state for wlan0 (No such device)
07-04 13:19:26.480 736-736/? E/android.hardware.wifi@1.0-service: Failed to set WiFi interface up
07-04 13:19:26.480 736-736/? E/android.hardware.wifi@1.0-service: Failed to start legacy HAL: UNKNOWN
07-04 13:19:26.481 3354-4281/? E/HalDeviceManager: executeChipReconfiguration: configureChip error: 9 (unknown)
07-04 13:19:26.484 3354-4499/? I/WifiService: getWifiEnabledState uid=1000
07-04 13:19:26.683 736-736/? I/android.hardware.wifi@1.0-service: Wifi HAL stopped
07-04 13:19:26.685 3354-4281/? E/WifiNative-wlan0: Failed to start HAL for client mode
07-04 13:19:26.686 3354-3354/? E/WifiController: WifiControllerWifi turn on failed
07-04 13:19:26.688 5808-5808/? I/QDMA:EventsManager: Received WIFI_STATE_CHANGE_ACTION
07-04 13:19:26.688 5808-5808/? I/QDMA:EventsManager: Received WIFI_STATE_CHANGED_ACTION : WIFI_STATE_UNKNOWN
07-04 13:19:26.691 4466-4549/? I/QCNEJ/CndHalConnector: -> SND notifyRatConnectionStatusChanged(rat = 1, UNKNOWN)
07-04 13:19:26.692 3354-4499/? I/WifiService: getWifiApEnabledState uid=1000
07-04 13:19:26.692 3354-4281/? I/WifiVendorHal: Vendor Hal stopped
07-04 13:19:26.692 3354-4281/? D/WificondControl: tearing down interfaces in wificond
07-04 13:19:26.695 3092-3092/? E/Parcel: Reading a NULL string not supported here.
07-04 13:19:26.697 736-736/? I/android.hardware.wifi@1.0-service: Wifi HAL started
07-04 13:19:26.695 3092-3092/? I/chatty: uid=1000(system) /system/bin/dpmd identical 2 lines
07-04 13:19:26.695 3092-3092/? E/Parcel: Reading a NULL string not supported here.
07-04 13:19:26.700 3354-4499/? I/WifiService: getWifiEnabledState uid=1000
07-04 13:19:26.703 736-736/? E/android.hardware.wifi@1.0-service: Could not read interface state for wlan0 (No such device)
07-04 13:19:26.704 736-736/? E/android.hardware.wifi@1.0-service: Failed to set WiFi interface up
07-04 13:19:26.704 736-736/? E/android.hardware.wifi@1.0-service: Failed to start legacy HAL: UNKNOWN
07-04 13:19:26.703 3354-4499/? I/WifiService: getWifiEnabledState uid=1000
07-04 13:19:26.705 3354-4499/? I/WifiService: getWifiApEnabledState uid=1000
07-04 13:19:26.705 3354-4281/? E/HalDeviceManager: executeChipReconfiguration: configureChip error: 9 (unknown)
07-04 13:19:26.717 3354-4499/? I/WifiService: getWifiEnabledState uid=1000
07-04 13:19:26.732 717-1842/? D/audio_hw_primary: out_standby: enter: stream (0xe9611800) usecase(1: low-latency-playback)
07-04 13:19:26.789 717-1842/? D/audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback speaker
07-04 13:19:26.792 717-1842/? D/hardware_info: hw_info_append_hw_type : device_name = speaker
07-04 13:19:26.792 717-1842/? D/audio_hw_primary: disable_snd_device: snd_device(2: speaker)
07-04 13:19:26.792 717-1842/? D/msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
07-04 13:19:26.792 717-1842/? D/audio_hw_primary: out_standby: exit
07-04 13:19:26.908 736-736/? I/android.hardware.wifi@1.0-service: Wifi HAL stopped
07-04 13:19:26.909 3354-4281/? E/WifiNative-wlan0: Failed to start HAL for client mode
07-04 13:19:26.911 3354-3354/? E/WifiController: WifiControllerWifi turn on failed
07-04 13:19:26.913 5808-5808/? I/QDMA:EventsManager: Received WIFI_STATE_CHANGE_ACTION
07-04 13:19:26.913 5808-5808/? I/QDMA:EventsManager: Received WIFI_STATE_CHANGED_ACTION : WIFI_STATE_UNKNOWN
07-04 13:19:26.915 4466-4549/? I/QCNEJ/CndHalConnector: -> SND notifyRatConnectionStatusChanged(rat = 1, UNKNOWN)
07-04 13:19:26.918 3354-4499/? I/WifiService: getWifiApEnabledState uid=1000
07-04 13:19:26.920 3092-3092/? E/Parcel: Reading a NULL string not supported here.
07-04 13:19:26.920 3354-4281/? I/WifiVendorHal: Vendor Hal stopped
07-04 13:19:26.920 3354-4281/? D/WificondControl: tearing down interfaces in wificond
07-04 13:19:26.921 3354-4499/? I/WifiService: getWifiEnabledState uid=1000
07-04 13:19:26.923 3092-3092/? E/Parcel: Reading a NULL string not supported here.
07-04 13:19:26.923 3092-3092/? I/chatty: uid=1000(system) /system/bin/dpmd identical 1 line
07-04 13:19:26.923 3092-3092/? E/Parcel: Reading a NULL string not supported here.
07-04 13:19:26.925 3354-4986/? I/WifiService: getWifiEnabledState uid=1000
07-04 13:19:26.926 3354-4986/? I/WifiService: getWifiApEnabledState uid=1000
07-04 13:19:26.928 3354-4986/? I/WifiService: getWifiEnabledState uid=1000
07-04 13:19:27.493 791-816/? I/mmid: select timeout: wait for receiving msg