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)
commitd05550936ac87bd067351e96f781051d6a2a642e
tree7343cdfb52756fb5aa433f6d0c3503c51a99c597
parent1fe188da9de58c1021aedb9ea1e7a3d95895ea5c
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