wifi: rtw89: make generic functions to convert subband gain index
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 5 Oct 2022 08:32:11 +0000 (16:32 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 11 Oct 2022 16:45:20 +0000 (19:45 +0300)
commit6e5125bcbaf810520969c121c7f12f20b8f3987d
treeb9e67ccaa168f4c0e9fb2d0ee241593c192bcb2d
parent3e870b4817333a1a4b01805073da3e00449acf43
wifi: rtw89: make generic functions to convert subband gain index

The gain tables use different domain index, so we need to convert the index
from subband of chandef. Since these conversion functions can share with
8852b, make generic functions for further use.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221005083212.45683-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/phy.h
drivers/net/wireless/realtek/rtw89/rtw8852c.c