[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] _phk_:
Unfortunately I'm still losing the WiFi stack occasionally

maybe this helps

09-13 19:43:08.283 1337 1337 I wificond: Regulatory domain changed to country: DE on wiphy_index: 0
09-13 19:43:08.283 1337 1337 I wificond: UpdateBandInfo
09-13 19:43:08.286 1337 1337 I wificond: 2.4Ghz frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
09-13 19:43:08.286 1337 1337 I wificond: 5Ghz non-DFS frequencies: 5180 5200 5220 5240 5745 5765 5785 5805 5825 5845 5865
09-13 19:43:08.286 1337 1337 I wificond: 5Ghz DFS frequencies: 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5720
09-13 19:43:08.286 1337 1337 I wificond: 6Ghz frequencies:
09-13 19:43:08.286 1337 1337 I wificond: 60Ghz frequencies:
09-13 19:43:08.286 1337 1337 I wificond: Regulatory domain changed to country: DE on wiphy_index: 0
09-13 19:43:08.286 1337 1337 I wificond: UpdateBandInfo
09-13 19:43:08.288 1337 1337 I wificond: 2.4Ghz frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
09-13 19:43:08.288 1337 1337 I wificond: 5Ghz non-DFS frequencies: 5180 5200 5220 5240 5745 5765 5785 5805 5825 5845 5865
09-13 19:43:08.288 1337 1337 I wificond: 5Ghz DFS frequencies: 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5720
09-13 19:43:08.288 1337 1337 I wificond: 6Ghz frequencies:
09-13 19:43:08.288 1337 1337 I wificond: 60Ghz frequencies:
09-13 19:43:08.306 1811 3472 W BroadcastQueue: Target SDK mismatch: receiver ActivityInfo{3542713 com.xiaomi.push.service.receivers.NetworkStatusReceiver} targets 31 but delivery restricted to [0, 23] broadcasting Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) } from android (pid=1811, uid=1000) to com.mxtech.videoplayer.ad/com.xiaomi.push.service.receivers.NetworkStatusReceiver
09-13 19:43:08.307 1811 2162 W BroadcastQueue: Target SDK mismatch: receiver ActivityInfo{a6e9d50 com.google.android.gms.gcm.ServiceAutoStarter} targets 34 but delivery restricted to [0, 23] broadcasting Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) } from android (pid=1811, uid=1000) to com.google.android.gms/.gcm.ServiceAutoStarter
09-13 19:43:08.307 1811 2162 W BroadcastQueue: Target SDK mismatch: receiver ActivityInfo{e78b49 com.google.android.apps.photos.actionqueue.impl.SystemReceiver} targets 34 but delivery restricted to [0, 23] broadcasting Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) } from android (pid=1811, uid=1000) to com.google.android.apps.photos/.actionqueue.impl.SystemReceiver
09-13 19:43:08.307 1811 2162 W BroadcastQueue: Target SDK mismatch: receiver ActivityInfo{27cbc4e com.google.android.apps.photos.jobqueue.JobServiceBroadcastReceiver} targets 34 but delivery restricted to [0, 23] broadcasting Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) } from android (pid=1811, uid=1000) to com.google.android.apps.photos/.jobqueue.JobServiceBroadcastReceiver
09-13 19:43:08.307 1811 2162 W BroadcastQueue: Target SDK mismatch: receiver ActivityInfo{2d0216f de.eosuptrade.mticket.receiver.ConnectivityChangeReceiver} targets 31 but delivery restricted to [0, 23] broadcasting Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) } from android (pid=1811, uid=1000) to com.mdv.VGNCompanion/de.eosuptrade.mticket.receiver.ConnectivityChangeReceiver
09-13 19:43:08.307 1811 2162 W BroadcastQueue: Target SDK mismatch: receiver ActivityInfo{7a83e7c eu.siacs.conversations.services.EventReceiver} targets 33 but delivery restricted to [0, 23] broadcasting Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) } from android (pid=1811, uid=1000) to eu.siacs.conversations/.services.EventReceiver
09-13 19:43:08.307 1811 2162 W BroadcastQueue: Target SDK mismatch: receiver ActivityInfo{5949305 org.kde.kdeconnect.KdeConnectBroadcastReceiver} targets 32 but delivery restricted to [0, 23] broadcasting Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) } from android (pid=1811, uid=1000) to org.kde.kdeconnect_tp/org.kde.kdeconnect.KdeConnectBroadcastReceiver
09-13 19:43:08.365 865 865 E android.hardware.wifi@1.0-service: Could not set interface flags for wlan0 (Try again)
09-13 19:43:08.365 865 865 E android.hardware.wifi@1.0-service: SetUpState(true) failed after retry.
09-13 19:43:08.382 1337 1337 E wificond: NL80211_CMD_START_SCHED_SCAN failed: Network is down
09-13 19:43:08.382 1337 1337 E wificond: Failed to start pno scan
09-13 19:43:10.391 1337 1337 E wificond: NL80211_CMD_START_SCHED_SCAN failed: Network is down
09-13 19:43:10.391 1337 1337 E wificond: Failed to start pno scan
09-13 19:43:10.498 1811 3471 W AppOps : Noting op not finished: uid 10433 pkg com.google.android.gms code 113 startTime of in progress event=1694623930259
09-13 19:43:10.518 1811 4910 W AppOps : Noting op not finished: uid 10433 pkg com.google.android.gms code 113 startTime of in progress event=1694623930259
09-13 19:43:10.569 1811 3116 W AppOps : Noting op not finished: uid 10433 pkg com.google.android.gms code 79 startTime of in progress event=1694623930259
09-13 19:43:10.594 1811 3116 W AppOps : Noting op not finished: uid 10433 pkg com.google.android.gms code 113 startTime of in progress event=1694623930259
09-13 19:43:10.636 1811 3471 W AppOps : Noting op not finished: uid 10448 pkg com.google.android.gms.location.history code 79 startTime of in progress event=1694550131336
09-13 19:43:12.395 1337 1337 E wificond: NL80211_CMD_START_SCHED_SCAN failed: Network is down
09-13 19:43:12.395 1337 1337 E wificond: Failed to start pno scan
09-13 19:43:14.398 1337 1337 E wificond: NL80211_CMD_START_SCHED_SCAN failed: Network is down
09-13 19:43:14.398 1337 1337 E wificond: Failed to start pno scan
09-13 19:43:16.402 1337 1337 E wificond: NL80211_CMD_START_SCHED_SCAN failed: Network is down
09-13 19:43:16.402 1337 1337 E wificond: Failed to start pno scan
09-13 19:43:18.405 1337 1337 E wificond: NL80211_CMD_START_SCHED_SCAN failed: Network is down
09-13 19:43:18.406 1337 1337 E wificond: Failed to start pno scan

and some minutes earlier

9-13 19:29:39.704 1811 2162 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.net.wifi.SCAN_RESULTS flg=0x4000010 (has extras) } to de.payback.client.android/net.payback.proximity.sdk.wifi.receiver.WifiScanReceiver
09-13 19:29:44.026 1337 1337 I wificond: Regulatory domain changed to country: DE on wiphy_index: 0
09-13 19:29:44.026 1337 1337 I wificond: UpdateBandInfo
09-13 19:29:44.033 1337 1337 I wificond: 2.4Ghz frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
09-13 19:29:44.033 1337 1337 I wificond: 5Ghz non-DFS frequencies: 5180 5200 5220 5240 5745 5765 5785 5805 5825 5845 5865
09-13 19:29:44.033 1337 1337 I wificond: 5Ghz DFS frequencies: 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5720
09-13 19:29:44.033 1337 1337 I wificond: 6Ghz frequencies:
09-13 19:29:44.033 1337 1337 I wificond: 60Ghz frequencies:
09-13 19:29:45.336 1811 2162 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.net.wifi.SCAN_RESULTS flg=0x4000010 (has extras) } to de.payback.client.android/net.payback.proximity.sdk.wifi.receiver.WifiScanReceiver