]> asedeno.scripts.mit.edu Git - linux.git/commit
rtw88: fix rate mask for 1SS chip
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 20 Dec 2019 09:21:46 +0000 (17:21 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 15:38:05 +0000 (17:38 +0200)
commit35a68fa5f96a80797e11b6952a47c5a84939a7bf
tree2fe34ee33f1e67de36c820a3bd8211f5ba03c1bc
parentb6c12908a33e4e413523e73464cd5957690f1a76
rtw88: fix rate mask for 1SS chip

The rate mask is used to tell firmware the supported rate depends on
negotiation. We loop 2 times for all VHT/HT 2SS rate mask first, and then
only keep the part according to chip's NSS.

This commit fixes the logic error of '&' operations for VHT/HT rate, and
we should run this logic before adding legacy rate.

To access HT MCS map, index 0/1 represent MCS 0-7/8-15 respectively. Use
NL80211_BAND_xxx is incorrect, so fix it as well.

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