]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: fix NSS of hw_cap
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 2 Oct 2019 06:35:30 +0000 (14:35 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 4 Oct 2019 13:45:05 +0000 (16:45 +0300)
commit11733c0234da46e61588507581799ec300c9121d
tree36c70755eda70cd115cbbc691a645782b6ffd228
parenta96a2f9c94d0a94c19fce09c40145f25d9247fa9
rtw88: fix NSS of hw_cap

8822C is a 2x2 11ac chip, and then NSS must be less or equal to 2. However,
current nss of hw cap is 3, likes
hw cap: hci=0x0f, bw=0x07, ptcl=0x03, ant_num=7, nss=3

This commit adds constraint to make sure NSS <= rf_path_num, and result
looks like
hw cap: hci=0x0f, bw=0x07, ptcl=0x03, ant_num=7, nss=2

Fixes: febe62489926 ("rtw88: new Realtek 802.11ac driver")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/main.c