提交 a91ed190 编写于 作者: L Larry Finger 提交者: John W. Linville

rtlwifi: rtl8821ae: Fix 5G detection problem

The changes associated with moving this driver from staging to the regular
tree missed one section setting the allowable rates for the 5GHz band.

This patch is needed to fix the regression reported in Bug #88811
(https://bugzilla.kernel.org/show_bug.cgi?id=88811).
Reported-by: NValerio Passini <valerio.passini@unicam.it>
Tested-by: NValerio Passini <valerio.passini@unicam.it>
Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
Cc: Valerio Passini <valerio.passini@unicam.it>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 90d8879d
...@@ -3672,8 +3672,9 @@ static void rtl8821ae_update_hal_rate_mask(struct ieee80211_hw *hw, ...@@ -3672,8 +3672,9 @@ static void rtl8821ae_update_hal_rate_mask(struct ieee80211_hw *hw,
mac->opmode == NL80211_IFTYPE_ADHOC) mac->opmode == NL80211_IFTYPE_ADHOC)
macid = sta->aid + 1; macid = sta->aid + 1;
if (wirelessmode == WIRELESS_MODE_N_5G || if (wirelessmode == WIRELESS_MODE_N_5G ||
wirelessmode == WIRELESS_MODE_AC_5G) wirelessmode == WIRELESS_MODE_AC_5G ||
ratr_bitmap = sta->supp_rates[NL80211_BAND_5GHZ]; wirelessmode == WIRELESS_MODE_A)
ratr_bitmap = sta->supp_rates[NL80211_BAND_5GHZ] << 4;
else else
ratr_bitmap = sta->supp_rates[NL80211_BAND_2GHZ]; ratr_bitmap = sta->supp_rates[NL80211_BAND_2GHZ];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册