rtlwifi: Fix VHT NSS in RC
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 29 Jan 2018 03:26:37 +0000 (11:26 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Feb 2018 16:15:23 +0000 (18:15 +0200)
commit50da5da1562b0bb54c537b0d218dcbbdd9843775
tree8027ac48081b996cde811642247fecfb46d1e0b8
parent81b813ed2fde96fd28cee477281b724ea4a28dcc
rtlwifi: Fix VHT NSS in RC

NSS is a argument of highest rate in RC, and it occupies bit 4-7 so use
ieee80211_rate_set_vht() to fill the values. Since it got correct rate
index, we don't need to check chips to assign NSS in set function anymore.

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/rc.c