rtw88: Use secondary channel offset enumeration
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 30 Jan 2020 05:31:11 +0000 (13:31 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 12 Feb 2020 16:20:39 +0000 (18:20 +0200)
commit40fb04b22f31e17aeb7740bba36cf3297f689f46
treeb2513c0a1939daf561a52a7595b3180c29271393
parentbafbc6f0b51b0bb8566c5d8ec255838c8cfe3545
rtw88: Use secondary channel offset enumeration

The hardware value of secondary channel offset isn't very intuitive. This
commit adds enumeration, so we can easier to check the logic with the
suffix of enumeration name, likes _UPPER or _LOWER.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Reviewed-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/mac.c
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/main.h
drivers/net/wireless/realtek/rtw88/rtw8822b.c
drivers/net/wireless/realtek/rtw88/rtw8822c.c