summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek/rtw88/coex.h
diff options
context:
space:
mode:
authorPo-Hao Huang <phhuang@realtek.com>2021-04-16 11:09:01 +0800
committerKalle Valo <kvalo@codeaurora.org>2021-04-18 09:38:27 +0300
commitfb8517f4fade44fa5e42e29ca4d6e4a7ed50b512 (patch)
treedcee176fd19cf37630b2d2adcfa101846dddcf79 /drivers/net/wireless/realtek/rtw88/coex.h
parentc544d89b0d67d9b714846035913c270375c0ce00 (diff)
rtw88: 8822c: add CFO tracking
Add CFO tracking, which stands for central frequency offset tracking, to adjust oscillator to align central frequency of connected AP. Then, it can yield better performance. Signed-off-by: Po-Hao Huang <phhuang@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20210416030901.7099-1-pkshih@realtek.com
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/coex.h')
-rw-r--r--drivers/net/wireless/realtek/rtw88/coex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/coex.h b/drivers/net/wireless/realtek/rtw88/coex.h
index 57018700ac39..fc61a0cab3e4 100644
--- a/drivers/net/wireless/realtek/rtw88/coex.h
+++ b/drivers/net/wireless/realtek/rtw88/coex.h
@@ -406,4 +406,12 @@ void rtw_coex_switchband_notify(struct rtw_dev *rtwdev, u8 type);
void rtw_coex_wl_status_change_notify(struct rtw_dev *rtwdev, u32 type);
void rtw_coex_display_coex_info(struct rtw_dev *rtwdev, struct seq_file *m);
+static inline bool rtw_coex_disabled(struct rtw_dev *rtwdev)
+{
+ struct rtw_coex *coex = &rtwdev->coex;
+ struct rtw_coex_stat *coex_stat = &coex->stat;
+
+ return coex_stat->bt_disabled;
+}
+
#endif