diff --git a/core/rtw_mlme.c b/core/rtw_mlme.c index c88ef60b..5e82a90f 100644 --- a/core/rtw_mlme.c +++ b/core/rtw_mlme.c @@ -31,12 +31,7 @@ #include #include -#ifdef CONFIG_DISABLE_MCS13TO15 -extern unsigned char MCS_rate_2R_MCS13TO15_OFF[16]; extern unsigned char MCS_rate_2R[16]; -#else /* CONFIG_DISABLE_MCS13TO15 */ -extern unsigned char MCS_rate_2R[16]; -#endif /* CONFIG_DISABLE_MCS13TO15 */ extern unsigned char MCS_rate_1R[16]; int _rtw_init_mlme_priv(struct rtw_adapter *padapter) @@ -2839,19 +2834,8 @@ void rtw_update_ht_cap(struct rtw_adapter *padapter, u8 *pie, uint ie_len, pmlmeinfo->HT_caps.u.HT_cap_element. MCS_rate[i] &= MCS_rate_1R[i]; } else { -#ifdef CONFIG_DISABLE_MCS13TO15 - if (pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40 && - pregistrypriv->wifi_spec != 1) { - pmlmeinfo->HT_caps.u.HT_cap_element. - MCS_rate[i] &= - MCS_rate_2R_MCS13TO15_OFF[i]; - } else - pmlmeinfo->HT_caps.u.HT_cap_element. - MCS_rate[i] &= MCS_rate_2R[i]; -#else pmlmeinfo->HT_caps.u.HT_cap_element. MCS_rate[i] &= MCS_rate_2R[i]; -#endif /* CONFIG_DISABLE_MCS13TO15 */ } if (pregistrypriv->special_rf_path) pmlmeinfo->HT_caps.u.HT_cap_element. diff --git a/core/rtw_mlme_ext.c b/core/rtw_mlme_ext.c index 4de297be..2edb0716 100644 --- a/core/rtw_mlme_ext.c +++ b/core/rtw_mlme_ext.c @@ -106,21 +106,11 @@ extern unsigned char REALTEK_96B_IE[]; /******************************************************** MCS rate definitions *********************************************************/ -#ifdef CONFIG_DISABLE_MCS13TO15 -unsigned char MCS_rate_2R_MCS13TO15_OFF[16] = { - 0xff, 0x1f, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0 -}; -unsigned char MCS_rate_2R[16] = { - 0xff, 0xff, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, - 0x0, 0x0 -}; -#else /* CONFIG_DISABLE_MCS13TO15 */ unsigned char MCS_rate_2R[16] = { 0xff, 0xff, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }; -#endif /* CONFIG_DISABLE_MCS13TO15 */ + unsigned char MCS_rate_1R[16] = { 0xff, 0x00, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 @@ -7104,19 +7094,8 @@ void issue_assocreq(struct rtw_adapter *adapt) ("declare supporting RX STBC\n"); pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info |= cpu_to_le16(0x0200); /* RX STBC two spatial stream */ } -#ifdef CONFIG_DISABLE_MCS13TO15 - if (pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40 && (pregpriv->wifi_spec != 1)) - memcpy(pmlmeinfo->HT_caps.u. - HT_cap_element.MCS_rate, - MCS_rate_2R_MCS13TO15_OFF, 16); - else - memcpy(pmlmeinfo->HT_caps.u. - HT_cap_element.MCS_rate, - MCS_rate_2R, 16); -#else /* CONFIG_DISABLE_MCS13TO15 */ memcpy(pmlmeinfo->HT_caps.u.HT_cap_element. MCS_rate, MCS_rate_2R, 16); -#endif /* CONFIG_DISABLE_MCS13TO15 */ break; } pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info = diff --git a/core/rtw_wlan_util.c b/core/rtw_wlan_util.c index 39b670d2..062392a4 100644 --- a/core/rtw_wlan_util.c +++ b/core/rtw_wlan_util.c @@ -875,18 +875,10 @@ void HT_caps_handler(struct rtw_adapter *padapter, struct ndis_802_11_variable_i /* update the MCS rates */ 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]; - } else { - #ifdef CONFIG_DISABLE_MCS13TO15 - if (pmlmeext->cur_bwmode == HT_CHANNEL_WIDTH_40 && (pregistrypriv->wifi_spec != 1)) - pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R_MCS13TO15_OFF[i]; - else - pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R[i]; - #else + else pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R[i]; - #endif /* CONFIG_DISABLE_MCS13TO15 */ - } if (pregistrypriv->special_rf_path) pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_1R[i]; } diff --git a/include/wifi.h b/include/wifi.h index a7d18a46..18d7a055 100644 --- a/include/wifi.h +++ b/include/wifi.h @@ -1127,9 +1127,6 @@ enum P2P_PS_MODE #define ICMPV6_MCAST_MAC(mac) ((mac[0]==0x33)&&(mac[1]==0x33)&&(mac[2]!=0xff)) extern unsigned char REALTEK_96B_IE[6]; extern unsigned char MCS_rate_2R[16]; -#ifdef CONFIG_DISABLE_MCS13TO15 -extern unsigned char MCS_rate_2R_MCS13TO15_OFF[16]; -#endif /* CONFIG_DISABLE_MCS13TO15 */ extern unsigned char MCS_rate_1R[16]; extern unsigned char RTW_WPA_OUI[]; extern unsigned char WPA_TKIP_CIPHER[4];