Commit bb513cf8 authored by Felipe Pena's avatar Felipe Pena Committed by Greg Kroah-Hartman

rtlwifi: rtl8192se: Fix wrong assignment

commit 3aef7dde upstream.

There is a typo in the struct member name on assignment when checking
rtlphy->current_chan_bw == HT_CHANNEL_WIDTH_20_40, the check uses pwrgroup_ht40
for bound limit and uses pwrgroup_ht20 when assigning instead.
Signed-off-by: default avatarFelipe Pena <felipensp@gmail.com>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 22363fb4
...@@ -268,7 +268,7 @@ static void _rtl92s_get_txpower_writeval_byregulatory(struct ieee80211_hw *hw, ...@@ -268,7 +268,7 @@ static void _rtl92s_get_txpower_writeval_byregulatory(struct ieee80211_hw *hw,
rtlefuse->pwrgroup_ht40 rtlefuse->pwrgroup_ht40
[RF90_PATH_A][chnl - 1]) { [RF90_PATH_A][chnl - 1]) {
pwrdiff_limit[i] = pwrdiff_limit[i] =
rtlefuse->pwrgroup_ht20 rtlefuse->pwrgroup_ht40
[RF90_PATH_A][chnl - 1]; [RF90_PATH_A][chnl - 1];
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment