Skip to content

Commit

Permalink
rtl8192du: Restore full speed to 5G
Browse files Browse the repository at this point in the history
This patch fixes the remaining bug that was limiting the 5G rate.
Both RX and TX get in excess of 80 Mbps using netperf. In fact, the
actual rate could be higher as my netperf server is connected to the AP
with a 100 Mbps wired connection, and netperf only gets about 90 Mbps
over the wire.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
lwfinger committed Nov 15, 2014
1 parent afe9e50 commit e0dc795
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/rtw_mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -2667,12 +2667,12 @@ unsigned int rtw_restructure_ht_ie(struct rtw_adapter *padapter, u8 *in_ie,
u32 ielen, out_len;
unsigned char *p, *pframe;
struct rtw_ieee80211_ht_cap ht_capie;
unsigned char WMM_IE[] = {0x00, 0x50, 0xf2, 0x02, 0x00, 0x01, 0x00};
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct qos_priv *pqospriv = &pmlmepriv->qospriv;
struct ht_priv *phtpriv = &pmlmepriv->htpriv;
struct registry_priv *pregpriv = &padapter->registrypriv;
u8 cbw40_enable = 0;
unsigned char WMM_IE[] = {0x00, 0x50, 0xf2, 0x02, 0x00, 0x01, 0x00};

phtpriv->ht_option = false;

Expand Down Expand Up @@ -2743,7 +2743,7 @@ unsigned int rtw_restructure_ht_ie(struct rtw_adapter *padapter, u8 *in_ie,
return phtpriv->ht_option;
}

/* the fucntion is > passive_level (in critical_section) */
/* the function is > passive_level (in critical_section) */
void rtw_update_ht_cap(struct rtw_adapter *padapter, u8 *pie, uint ie_len,
u8 channel)
{
Expand Down
4 changes: 3 additions & 1 deletion core/rtw_mlme_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -4240,7 +4240,9 @@ void issue_action_BA(struct rtw_adapter *adapt, unsigned char *raddr,
(unsigned char *)(&status),
&(pattrib->pktlen));

le_tmp = cpu_to_le16((pmlmeinfo->ADDBA_req.BA_para_set & 0x3f) | 0x1000); /* 64 buffer size */
le_tmp = cpu_to_le16((pmlmeinfo->ADDBA_req.BA_para_set &
0x3f) | 0x1000);/*64 buffer size*/
BA_para_set = le16_to_cpu(le_tmp);

if (pregpriv->ampdu_amsdu == 0) /* disabled */
le_tmp = cpu_to_le16(BA_para_set & ~BIT(0));
Expand Down

0 comments on commit e0dc795

Please sign in to comment.