Skip to content

Commit cc43391

Browse files
Ching-Te Kujfvogel
authored andcommitted
wifi: rtw89: coex: Separated Wi-Fi connecting event from Wi-Fi scan event
[ Upstream commit 4a57346 ] Wi-Fi connecting process don't need to assign to firmware slot control, if assign firmware slot control for Wi-Fi connecting event, firmware will not toggle slots because driver don't tell the slot schedule to firmware. Wi-Fi connecting event end should also cancel the 4way handshake status. Signed-off-by: Ching-Te Ku <[email protected]> Signed-off-by: Ping-Ke Shih <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit 1cc37163730aa0b6ff7c5cdf51c72aa24e9de91c) Signed-off-by: Jack Vogel <[email protected]>
1 parent addcedf commit cc43391

File tree

1 file changed

+6
-2
lines changed
  • drivers/net/wireless/realtek/rtw89

1 file changed

+6
-2
lines changed

drivers/net/wireless/realtek/rtw89/coex.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5356,7 +5356,8 @@ static void _action_wl_scan(struct rtw89_dev *rtwdev)
53565356
struct rtw89_btc_wl_info *wl = &btc->cx.wl;
53575357
struct rtw89_btc_wl_dbcc_info *wl_dinfo = &wl->dbcc_info;
53585358

5359-
if (RTW89_CHK_FW_FEATURE(SCAN_OFFLOAD, &rtwdev->fw)) {
5359+
if (btc->cx.state_map != BTC_WLINKING &&
5360+
RTW89_CHK_FW_FEATURE(SCAN_OFFLOAD, &rtwdev->fw)) {
53605361
_action_wl_25g_mcc(rtwdev);
53615362
rtw89_debug(rtwdev, RTW89_DBG_BTC, "[BTC], Scan offload!\n");
53625363
} else if (rtwdev->dbcc_en) {
@@ -7178,6 +7179,8 @@ void rtw89_btc_ntfy_scan_finish(struct rtw89_dev *rtwdev, u8 phy_idx)
71787179
_fw_set_drv_info(rtwdev, CXDRVINFO_DBCC);
71797180
}
71807181

7182+
btc->dm.tdma_instant_excute = 1;
7183+
71817184
_run_coex(rtwdev, BTC_RSN_NTFY_SCAN_FINISH);
71827185
}
71837186

@@ -7630,7 +7633,8 @@ void rtw89_btc_ntfy_role_info(struct rtw89_dev *rtwdev,
76307633
else
76317634
wl->status.map.connecting = 0;
76327635

7633-
if (state == BTC_ROLE_MSTS_STA_DIS_CONN)
7636+
if (state == BTC_ROLE_MSTS_STA_DIS_CONN ||
7637+
state == BTC_ROLE_MSTS_STA_CONN_END)
76347638
wl->status.map._4way = false;
76357639

76367640
_run_coex(rtwdev, BTC_RSN_NTFY_ROLE_INFO);

0 commit comments

Comments
 (0)