]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: rtw89: coex: Enable outsource info H2C command
authorChing-Te Ku <ku920601@realtek.com>
Mon, 16 Jun 2025 09:02:43 +0000 (17:02 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 24 Jun 2025 06:23:43 +0000 (14:23 +0800)
The before several patches collect driver information, then this patch
packet these information as outsource info and update to firmware by H2C
command.

Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250616090252.51098-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/coex.c

index d95ddc928e3d98391c93f579d3e78c7cd92b8929..3c607f5548b8d442c44aba59a60757a9dab8c691 100644 (file)
@@ -5561,6 +5561,16 @@ static void _action_common(struct rtw89_dev *rtwdev)
                wl->scbd_change = false;
                btc->cx.cnt_wl[BTC_WCNT_SCBDUPDATE]++;
        }
+
+       if (btc->ver->fcxosi) {
+               if (memcmp(&dm->ost_info_last, &dm->ost_info,
+                          sizeof(dm->ost_info_last)) ||
+                   dm->run_reason == BTC_RSN_NTFY_INIT ||
+                   dm->run_reason == BTC_RSN_NTFY_RADIO_STATE) {
+                       dm->ost_info_last = dm->ost_info;
+                       _fw_set_drv_info(rtwdev, CXDRVINFO_OSI);
+               }
+       }
        btc->dm.tdma_instant_excute = 0;
        wl->pta_reg_mac_chg = false;
 }