rtlwifi: Extend tx_power_by_rate_offset size for newer IC
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 29 Jan 2018 03:26:35 +0000 (11:26 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Feb 2018 16:15:19 +0000 (18:15 +0200)
commit4a7093b914aaee8d6fd7da75789a075745bc2d29
tree85418daa420910ede765a0215c8cd64a66ef5ff0
parent5f380ceff5f5c84039cd399120c5cb11f39376a8
rtlwifi: Extend tx_power_by_rate_offset size for newer IC

In older design, the TX power is grouped into rate section (smaller array
size), but new design groups them into rate (larger array size). Thus,
we extend the size for both cases, and add compile time assertion.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/base.c
drivers/net/wireless/realtek/rtlwifi/wifi.h