mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 08:09:56 +00:00
staging: rtl8192ee: Fix setting highest n rate
Commit 4fb6a37c3f94c1cb4b828bfcc4347771e1628f88 by Andrey Utkin <andrey.krieger.utkin@gmail.com> and entitled "staging: rtl8192ee: "Correct bitmask in comparsion" fixed what appeared to be a typo. After consultation with the Realtek engineers, merely testing for a 2T2R device is sufficient to ensure that the TX MCS map will equal 0x0c, thus the second test can be ignored. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b5726cb8b2
commit
7da8d6a015
@ -826,8 +826,7 @@ static u8 _rtl_get_vht_highest_n_rate(struct ieee80211_hw *hw,
|
|||||||
u8 hw_rate;
|
u8 hw_rate;
|
||||||
u16 map = le16_to_cpu(sta->vht_cap.vht_mcs.tx_mcs_map);
|
u16 map = le16_to_cpu(sta->vht_cap.vht_mcs.tx_mcs_map);
|
||||||
|
|
||||||
if ((get_rf_type(rtlphy) == RF_2T2R) &&
|
if (get_rf_type(rtlphy) == RF_2T2R) {
|
||||||
(map & 0x000c) != 0x000c) {
|
|
||||||
if ((map & 0x000c) >> 2 == IEEE80211_VHT_MCS_SUPPORT_0_7)
|
if ((map & 0x000c) >> 2 == IEEE80211_VHT_MCS_SUPPORT_0_7)
|
||||||
hw_rate =
|
hw_rate =
|
||||||
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_2SS_MCS7];
|
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_2SS_MCS7];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user