]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: add a debugfs entry to enable/disable coex mechanism
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Fri, 13 Mar 2020 03:30:07 +0000 (11:30 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 26 Mar 2020 09:41:57 +0000 (11:41 +0200)
commit904e2f4048035cee044fa73eef5ef86f20963945
tree7343cdfb52756fb5aa433f6d0c3503c51a99c597
parentfdca13036b124923c56cbb3ca25bf4b55d72c707
rtw88: add a debugfs entry to enable/disable coex mechanism

Sometimes we need to stop the coex mechanism to debug, so that we
can manually control the device through various outer commands.
Hence, add a new debugfs coex_enable to allow us to enable/disable
the coex mechanism when driver is running.

To disable coex
echo 0 > /sys/kernel/debug/ieee80211/phyX/rtw88/coex_enable

To enable coex
echo 1 > /sys/kernel/debug/ieee80211/phyX/rtw88/coex_enable

To check coex dm is enabled or not
cat /sys/kernel/debug/ieee80211/phyX/rtw88/coex_enable

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200313033008.20070-3-yhchuang@realtek.com
drivers/net/wireless/realtek/rtw88/debug.c