diff options
author | Po-Hao Huang <phhuang@realtek.com> | 2021-12-21 11:50:10 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2021-12-21 21:19:13 +0300 |
commit | 10d162b2ed395e69720926b4f8d87f1f25ca920f (patch) | |
tree | 1a34b64c240c40b96e116441d43de76102dd02dc /drivers/net/wireless/realtek/rtw88/debug.h | |
parent | bc11517bc8219314948780570ec92814d14d6602 (diff) | |
download | linux-10d162b2ed395e69720926b4f8d87f1f25ca920f.tar.xz |
rtw88: 8822c: add ieee80211_ops::hw_scan
Declare this function allows us to use customized scanning policy.
By doing so we can be more time efficient on each scan. In order to
make existing coex mechanism work as usual, firmware notifies driver
on each channel switch event, then decide antenna ownership based on
the current channel/band. Do note that this new mechanism affects
throughput more than the sw_scan we used to have, but the overall
average throughput is not affected since each scan take less time.
Since the firmware size is limited, we only support probe requests
with custom IEs length under 128 bytes for now, if any user space
tools requires more than that, we'll introduce related changes
afterwards. For backward compatibility, we fallback to sw_scan when
using older firmware that does not support this feature.
Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20211221085010.39421-1-pkshih@realtek.com
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/debug.h')
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/debug.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/debug.h b/drivers/net/wireless/realtek/rtw88/debug.h index 47c57f395f52..61f8369fe2d6 100644 --- a/drivers/net/wireless/realtek/rtw88/debug.h +++ b/drivers/net/wireless/realtek/rtw88/debug.h @@ -22,6 +22,7 @@ enum rtw_debug_mask { RTW_DBG_CFO = 0x00002000, RTW_DBG_PATH_DIV = 0x00004000, RTW_DBG_ADAPTIVITY = 0x00008000, + RTW_DBG_HW_SCAN = 0x00010000, RTW_DBG_ALL = 0xffffffff }; |