wifi: rtw89: correct unit for port offset and refine macro
authorZong-Zhe Yang <kevin_yang@realtek.com>
Thu, 19 Jan 2023 06:24:51 +0000 (14:24 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 13 Feb 2023 17:04:59 +0000 (19:04 +0200)
commit1120e6a6c5cd1144694209d6aa6a225af064950a
tree69cf3760ae4ba8950b27a85c109348b283531cb4
parentde06588cb95cb3bbece81e9838547c1a3c2aa023
wifi: rtw89: correct unit for port offset and refine macro

Strictly speaking, the unit of the offset should be TU instead of ms.
So, correct it and the macro for calculation. Then, to make the macro
generic, the factor n is moved outside.

Signed-off-by: Zong-Zhe Yang <kevin_yang@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/20230119062453.58341-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c
drivers/net/wireless/realtek/rtw89/mac.h