rtlwifi: rtl8192su: Fix problem connecting to HT-enabled AP
The driver fails to connect to 802.11n-enabled APs. The patch fixes Bug #42262. Signed-off-by: George <george0505@realtek.com> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Stable <stable@kernel.org> [2.6.39+] Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
@@ -549,14 +549,15 @@ void rtl92cu_tx_fill_desc(struct ieee80211_hw *hw,
|
|||||||
(tcb_desc->rts_use_shortpreamble ? 1 : 0)
|
(tcb_desc->rts_use_shortpreamble ? 1 : 0)
|
||||||
: (tcb_desc->rts_use_shortgi ? 1 : 0)));
|
: (tcb_desc->rts_use_shortgi ? 1 : 0)));
|
||||||
if (mac->bw_40) {
|
if (mac->bw_40) {
|
||||||
if (tcb_desc->packet_bw) {
|
if (rate_flag & IEEE80211_TX_RC_DUP_DATA) {
|
||||||
SET_TX_DESC_DATA_BW(txdesc, 1);
|
SET_TX_DESC_DATA_BW(txdesc, 1);
|
||||||
SET_TX_DESC_DATA_SC(txdesc, 3);
|
SET_TX_DESC_DATA_SC(txdesc, 3);
|
||||||
|
} else if(rate_flag & IEEE80211_TX_RC_40_MHZ_WIDTH){
|
||||||
|
SET_TX_DESC_DATA_BW(txdesc, 1);
|
||||||
|
SET_TX_DESC_DATA_SC(txdesc, mac->cur_40_prime_sc);
|
||||||
} else {
|
} else {
|
||||||
SET_TX_DESC_DATA_BW(txdesc, 0);
|
SET_TX_DESC_DATA_BW(txdesc, 0);
|
||||||
if (rate_flag & IEEE80211_TX_RC_DUP_DATA)
|
SET_TX_DESC_DATA_SC(txdesc, 0);
|
||||||
SET_TX_DESC_DATA_SC(txdesc,
|
|
||||||
mac->cur_40_prime_sc);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
SET_TX_DESC_DATA_BW(txdesc, 0);
|
SET_TX_DESC_DATA_BW(txdesc, 0);
|
||||||
|
Reference in New Issue
Block a user