mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-14 00:59:37 +00:00
rtl8188eu: Remove RTL8192C_RECONFIG_TO_1T1R
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
4c042ff344
commit
bef55d3a6c
4 changed files with 2 additions and 34 deletions
|
@ -2991,22 +2991,12 @@ void rtw_update_ht_cap(struct adapter *padapter, u8 *pie, uint ie_len)
|
||||||
padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
|
padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
|
||||||
|
|
||||||
/* update the MCS rates */
|
/* update the MCS rates */
|
||||||
for (i = 0; i < 16; i++)
|
for (i = 0; i < 16; i++) {
|
||||||
{
|
|
||||||
if((rf_type == RF_1T1R) || (rf_type == RF_1T2R))
|
if((rf_type == RF_1T1R) || (rf_type == RF_1T2R))
|
||||||
{
|
|
||||||
pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
|
pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R[i];
|
pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R[i];
|
||||||
}
|
}
|
||||||
#ifdef RTL8192C_RECONFIG_TO_1T1R
|
|
||||||
{
|
|
||||||
pmlmeinfo->HT_caps.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
/* switch to the 40M Hz mode accoring to the AP */
|
/* switch to the 40M Hz mode accoring to the AP */
|
||||||
pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
|
pmlmeext->cur_bwmode = HT_CHANNEL_WIDTH_40;
|
||||||
switch ((pmlmeinfo->HT_info.infos[0] & 0x3))
|
switch ((pmlmeinfo->HT_info.infos[0] & 0x3))
|
||||||
|
|
|
@ -6838,15 +6838,6 @@ void issue_assocreq(struct adapter *padapter)
|
||||||
memcpy(pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate, MCS_rate_2R, 16);
|
memcpy(pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate, MCS_rate_2R, 16);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifdef RTL8192C_RECONFIG_TO_1T1R
|
|
||||||
{
|
|
||||||
if(pregpriv->rx_stbc)
|
|
||||||
pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info |= cpu_to_le16(0x0100);/* RX STBC One spatial stream */
|
|
||||||
|
|
||||||
memcpy(pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate, MCS_rate_1R, 16);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_BT_COEXIST
|
#ifdef CONFIG_BT_COEXIST
|
||||||
if (BT_1Ant(padapter) == true)
|
if (BT_1Ant(padapter) == true)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1029,22 +1029,12 @@ void HT_caps_handler(struct adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
|
||||||
rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
|
rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
|
||||||
|
|
||||||
/* update the MCS rates */
|
/* update the MCS rates */
|
||||||
for (i = 0; i < 16; i++)
|
for (i = 0; i < 16; i++) {
|
||||||
{
|
|
||||||
if((rf_type == RF_1T1R) || (rf_type == RF_1T2R))
|
if((rf_type == RF_1T1R) || (rf_type == RF_1T2R))
|
||||||
{
|
|
||||||
pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
|
pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R[i];
|
pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R[i];
|
||||||
}
|
}
|
||||||
#ifdef RTL8192C_RECONFIG_TO_1T1R
|
|
||||||
{
|
|
||||||
pmlmeinfo->HT_caps.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i];
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HT_info_handler(struct adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
|
void HT_info_handler(struct adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
|
||||||
|
|
|
@ -352,9 +352,6 @@ SetAntennaConfig92C(
|
||||||
IN u8 DefaultAnt
|
IN u8 DefaultAnt
|
||||||
);
|
);
|
||||||
|
|
||||||
#ifdef RTL8192C_RECONFIG_TO_1T1R
|
|
||||||
extern void PHY_Reconfig_To_1T1R(struct adapter *padapter);
|
|
||||||
#endif
|
|
||||||
/*--------------------------Exported Function prototype---------------------*/
|
/*--------------------------Exported Function prototype---------------------*/
|
||||||
|
|
||||||
#define PHY_QueryBBReg(Adapter, RegAddr, BitMask) rtl8192c_PHY_QueryBBReg((Adapter), (RegAddr), (BitMask))
|
#define PHY_QueryBBReg(Adapter, RegAddr, BitMask) rtl8192c_PHY_QueryBBReg((Adapter), (RegAddr), (BitMask))
|
||||||
|
|
Loading…
Reference in a new issue