mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Remove tests on macro CONFIG_80211N_HT
This one is always selected. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
e9184bd34c
commit
e3e242b712
28 changed files with 46 additions and 428 deletions
143
core/rtw_ap.c
143
core/rtw_ap.c
|
@ -395,7 +395,6 @@ void expire_timeout_chk(_adapter *padapter)
|
|||
psta->expire_to--;
|
||||
|
||||
#ifndef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
|
||||
#ifdef CONFIG_80211N_HT
|
||||
#ifdef CONFIG_TX_MCAST2UNI
|
||||
if ((psta->flags & WLAN_STA_HT) && (psta->htpriv.agg_enable_bitmap || psta->under_exist_checking)) {
|
||||
/* check sta by delba(addba) for 11n STA */
|
||||
|
@ -416,7 +415,6 @@ void expire_timeout_chk(_adapter *padapter)
|
|||
}
|
||||
}
|
||||
#endif /* CONFIG_TX_MCAST2UNI */
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
#endif /* CONFIG_ACTIVE_KEEP_ALIVE_CHECK */
|
||||
|
||||
if (psta->expire_to <= 0) {
|
||||
|
@ -428,7 +426,6 @@ void expire_timeout_chk(_adapter *padapter)
|
|||
}
|
||||
|
||||
#ifndef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
|
||||
#ifdef CONFIG_80211N_HT
|
||||
|
||||
#define KEEP_ALIVE_TRYCNT (3)
|
||||
|
||||
|
@ -478,7 +475,6 @@ void expire_timeout_chk(_adapter *padapter)
|
|||
RTW_INFO("change to another methods to check alive if staion is at ps mode\n");
|
||||
}
|
||||
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
#endif /* CONFIG_ACTIVE_KEEP_ALIVE_CHECK */
|
||||
if (psta->state & WIFI_SLEEP_STATE) {
|
||||
if (!(psta->state & WIFI_STA_ALIVE_CHK_STATE)) {
|
||||
|
@ -618,12 +614,10 @@ void add_RATid(_adapter *padapter, struct sta_info *psta, u8 rssi_level, u8 is_u
|
|||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||
WLAN_BSSID_EX *pcur_network = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
if (psta)
|
||||
psta_ht = &psta->htpriv;
|
||||
else
|
||||
return;
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
if (!(psta->state & _FW_LINKED))
|
||||
return;
|
||||
|
@ -674,9 +668,7 @@ void update_bmc_sta(_adapter *padapter)
|
|||
if (psta) {
|
||||
psta->aid = 0;/* default set to 0 */
|
||||
psta->qos_option = 0;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
psta->htpriv.ht_option = _FALSE;
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
psta->ieee8021x_blocked = 0;
|
||||
|
||||
|
@ -721,10 +713,8 @@ void update_sta_info_apmode(_adapter *padapter, struct sta_info *psta)
|
|||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
||||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
struct ht_priv *phtpriv_ap = &pmlmepriv->htpriv;
|
||||
struct ht_priv *phtpriv_sta = &psta->htpriv;
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
u8 cur_ldpc_cap = 0, cur_stbc_cap = 0, cur_beamform_cap = 0;
|
||||
/* set intf_tag to if1 */
|
||||
/* psta->intf_tag = 0; */
|
||||
|
@ -746,7 +736,6 @@ void update_sta_info_apmode(_adapter *padapter, struct sta_info *psta)
|
|||
|
||||
/* ERP */
|
||||
VCS_update(padapter, psta);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
/* HT related cap */
|
||||
if (phtpriv_sta->ht_option) {
|
||||
/* check if sta supports rx ampdu */
|
||||
|
@ -835,7 +824,6 @@ void update_sta_info_apmode(_adapter *padapter, struct sta_info *psta)
|
|||
send_delba(padapter, 1, psta->hwaddr);/* */ /* originator */
|
||||
phtpriv_sta->agg_enable_bitmap = 0x0;/* reset */
|
||||
phtpriv_sta->candidate_tid_bitmap = 0x0;/* reset */
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
update_ldpc_stbc_cap(psta);
|
||||
|
||||
|
@ -856,16 +844,13 @@ static void update_ap_info(_adapter *padapter, struct sta_info *psta)
|
|||
WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX *)&pmlmepriv->cur_network.network;
|
||||
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
||||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
struct ht_priv *phtpriv_ap = &pmlmepriv->htpriv;
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
psta->wireless_mode = pmlmeext->cur_wireless_mode;
|
||||
|
||||
psta->bssratelen = rtw_get_rateset_len(pnetwork->SupportedRates);
|
||||
_rtw_memcpy(psta->bssrateset, pnetwork->SupportedRates, psta->bssratelen);
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
/* HT related cap */
|
||||
if (phtpriv_ap->ht_option) {
|
||||
/* check if sta supports rx ampdu */
|
||||
|
@ -894,8 +879,6 @@ static void update_ap_info(_adapter *padapter, struct sta_info *psta)
|
|||
|
||||
_rtw_memcpy(&psta->htpriv, &pmlmepriv->htpriv, sizeof(struct ht_priv));
|
||||
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
psta->state |= WIFI_AP_STATE; /* Aries, add,fix bug of flush_cam_entry at STOP AP mode , 0724 */
|
||||
}
|
||||
|
||||
|
@ -1246,7 +1229,6 @@ void start_bss_network(_adapter *padapter, struct createbss_parm *parm)
|
|||
/* pmlmeinfo->HT_enable; */
|
||||
if (pmlmepriv->qospriv.qos_option)
|
||||
pmlmeinfo->WMM_enable = _TRUE;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
if (pmlmepriv->htpriv.ht_option) {
|
||||
pmlmeinfo->WMM_enable = _TRUE;
|
||||
pmlmeinfo->HT_enable = _TRUE;
|
||||
|
@ -1255,7 +1237,6 @@ void start_bss_network(_adapter *padapter, struct createbss_parm *parm)
|
|||
|
||||
update_hw_ht_param(padapter);
|
||||
}
|
||||
#endif /* #CONFIG_80211N_HT */
|
||||
if (pmlmepriv->cur_network.join_res != _TRUE) { /* setting only at first time */
|
||||
/* WEP Key will be set before this function, do not clear CAM. */
|
||||
if ((psecuritypriv->dot11PrivacyAlgrthm != _WEP40_) && (psecuritypriv->dot11PrivacyAlgrthm != _WEP104_))
|
||||
|
@ -1681,7 +1662,6 @@ int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len)
|
|||
break;
|
||||
}
|
||||
}
|
||||
#ifdef CONFIG_80211N_HT
|
||||
/* parsing HT_CAP_IE */
|
||||
p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_CAPABILITY_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
|
||||
if (p && ie_len > 0) {
|
||||
|
@ -1801,7 +1781,6 @@ int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len)
|
|||
p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_ADD_INFO_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
|
||||
if (p && ie_len > 0)
|
||||
pHT_info_ie = p;
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
switch (network_type) {
|
||||
case WIRELESS_11B:
|
||||
pbss_network->NetworkTypeInUse = Ndis802_11DS;
|
||||
|
@ -1822,7 +1801,6 @@ int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len)
|
|||
|
||||
pmlmepriv->cur_network.network_type = network_type;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
pmlmepriv->htpriv.ht_option = _FALSE;
|
||||
|
||||
if ((psecuritypriv->wpa2_pairwise_cipher & WPA_CIPHER_TKIP) ||
|
||||
|
@ -1842,7 +1820,6 @@ int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len)
|
|||
|
||||
HT_info_handler(padapter, (PNDIS_802_11_VARIABLE_IEs)pHT_info_ie);
|
||||
}
|
||||
#endif
|
||||
if(pbss_network->Configuration.DSConfig <= 14 && padapter->registrypriv.wifi_spec == 1) {
|
||||
uint len = 0;
|
||||
|
||||
|
@ -2677,8 +2654,6 @@ void _update_beacon(_adapter *padapter, u8 ie_id, u8 *oui, u8 tx, const char *ta
|
|||
#endif /* !CONFIG_INTERRUPT_BASED_TXBCN */
|
||||
}
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
|
||||
void rtw_process_public_act_bsscoex(_adapter *padapter, u8 *pframe, uint frame_len)
|
||||
{
|
||||
struct sta_info *psta;
|
||||
|
@ -2853,8 +2828,6 @@ int rtw_ht_operation_update(_adapter *padapter)
|
|||
|
||||
}
|
||||
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
void associated_clients_update(_adapter *padapter, u8 updated, u32 sta_info_type)
|
||||
{
|
||||
/* update associcated stations cap. */
|
||||
|
@ -3006,8 +2979,6 @@ void bss_cap_update_on_sta_join(_adapter *padapter, struct sta_info *psta)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
|
||||
if (psta->flags & WLAN_STA_HT) {
|
||||
u16 ht_capab = le16_to_cpu(psta->htpriv.ht_cap.cap_info);
|
||||
|
||||
|
@ -3060,8 +3031,6 @@ void bss_cap_update_on_sta_join(_adapter *padapter, struct sta_info *psta)
|
|||
/*beacon_updated = _TRUE;*/
|
||||
}
|
||||
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
/* update associcated stations cap. */
|
||||
associated_clients_update(padapter, beacon_updated, STA_INFO_UPDATE_ALL);
|
||||
|
||||
|
@ -3107,8 +3076,6 @@ u8 bss_cap_update_on_sta_leave(_adapter *padapter, struct sta_info *psta)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
|
||||
if (psta->no_ht_gf_set) {
|
||||
psta->no_ht_gf_set = 0;
|
||||
pmlmepriv->num_sta_ht_no_gf--;
|
||||
|
@ -3124,24 +3091,14 @@ u8 bss_cap_update_on_sta_leave(_adapter *padapter, struct sta_info *psta)
|
|||
pmlmepriv->num_sta_ht_20mhz--;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (rtw_ht_operation_update(padapter) > 0) {
|
||||
update_beacon(padapter, _HT_CAPABILITY_IE_, NULL, _FALSE);
|
||||
update_beacon(padapter, _HT_ADD_INFO_IE_, NULL, _TRUE);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
#if 0
|
||||
/* update associated stations cap. */
|
||||
associated_clients_update(padapter, beacon_updated, STA_INFO_UPDATE_ALL); /* move it to avoid deadlock */
|
||||
#endif
|
||||
|
||||
RTW_INFO("%s, updated=%d\n", __func__, beacon_updated);
|
||||
|
||||
return beacon_updated;
|
||||
|
||||
}
|
||||
|
||||
u8 ap_free_sta(_adapter *padapter, struct sta_info *psta, bool active, u16 reason, bool enqueue)
|
||||
|
@ -3156,15 +3113,12 @@ u8 ap_free_sta(_adapter *padapter, struct sta_info *psta, bool active, u16 reaso
|
|||
return beacon_updated;
|
||||
|
||||
if (active == _TRUE) {
|
||||
#ifdef CONFIG_80211N_HT
|
||||
/* tear down Rx AMPDU */
|
||||
send_delba(padapter, 0, psta->hwaddr);/* recipient */
|
||||
|
||||
/* tear down TX AMPDU */
|
||||
send_delba(padapter, 1, psta->hwaddr);/* */ /* originator */
|
||||
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
issue_deauth(padapter, psta->hwaddr, reason);
|
||||
}
|
||||
|
||||
|
@ -3316,8 +3270,6 @@ void sta_info_update(_adapter *padapter, struct sta_info *psta)
|
|||
if (pmlmepriv->qospriv.qos_option == 0)
|
||||
psta->qos_option = 0;
|
||||
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
/* update 802.11n ht cap. */
|
||||
if (WLAN_STA_HT & flags) {
|
||||
psta->htpriv.ht_option = _TRUE;
|
||||
|
@ -3330,7 +3282,6 @@ void sta_info_update(_adapter *padapter, struct sta_info *psta)
|
|||
|
||||
if (pmlmepriv->htpriv.ht_option == _FALSE)
|
||||
psta->htpriv.ht_option = _FALSE;
|
||||
#endif
|
||||
update_sta_info_apmode(padapter, psta);
|
||||
}
|
||||
|
||||
|
@ -3426,9 +3377,7 @@ void start_ap_mode(_adapter *padapter)
|
|||
pmlmepriv->num_sta_no_short_preamble = 0;
|
||||
|
||||
pmlmepriv->num_sta_ht_no_gf = 0;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
pmlmepriv->num_sta_no_ht = 0;
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
pmlmeinfo->HT_info_enable = 0;
|
||||
pmlmeinfo->HT_caps_enable = 0;
|
||||
pmlmeinfo->HT_enable = 0;
|
||||
|
@ -3438,12 +3387,10 @@ void start_ap_mode(_adapter *padapter)
|
|||
ATOMIC_SET(&pmlmepriv->olbc, _FALSE);
|
||||
ATOMIC_SET(&pmlmepriv->olbc_ht, _FALSE);
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
pmlmepriv->ht_20mhz_width_req = _FALSE;
|
||||
pmlmepriv->ht_intolerant_ch_reported = _FALSE;
|
||||
pmlmepriv->ht_op_mode = 0;
|
||||
pmlmepriv->sw_to_20mhz = 0;
|
||||
#endif
|
||||
|
||||
_rtw_memset(pmlmepriv->ext_capab_ie_data, 0, sizeof(pmlmepriv->ext_capab_ie_data));
|
||||
pmlmepriv->ext_capab_ie_len = 0;
|
||||
|
@ -3549,58 +3496,54 @@ void rtw_ap_update_bss_chbw(_adapter *adapter, WLAN_BSSID_EX *bss, u8 ch, u8 bw,
|
|||
#define UPDATE_VHT_CAP 1
|
||||
#define UPDATE_HT_CAP 1
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
{
|
||||
struct ht_priv *htpriv = &adapter->mlmepriv.htpriv;
|
||||
u8 *ht_cap_ie, *ht_op_ie;
|
||||
int ht_cap_ielen, ht_op_ielen;
|
||||
struct ht_priv *htpriv = &adapter->mlmepriv.htpriv;
|
||||
u8 *ht_cap_ie, *ht_op_ie;
|
||||
int ht_cap_ielen, ht_op_ielen;
|
||||
|
||||
ht_cap_ie = rtw_get_ie((bss->IEs + sizeof(NDIS_802_11_FIXED_IEs)), EID_HTCapability, &ht_cap_ielen, (bss->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
|
||||
ht_op_ie = rtw_get_ie((bss->IEs + sizeof(NDIS_802_11_FIXED_IEs)), EID_HTInfo, &ht_op_ielen, (bss->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
|
||||
ht_cap_ie = rtw_get_ie((bss->IEs + sizeof(NDIS_802_11_FIXED_IEs)), EID_HTCapability, &ht_cap_ielen, (bss->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
|
||||
ht_op_ie = rtw_get_ie((bss->IEs + sizeof(NDIS_802_11_FIXED_IEs)), EID_HTInfo, &ht_op_ielen, (bss->IELength - sizeof(NDIS_802_11_FIXED_IEs)));
|
||||
|
||||
/* update ht cap ie */
|
||||
if (ht_cap_ie && ht_cap_ielen) {
|
||||
#if UPDATE_HT_CAP
|
||||
if (bw >= CHANNEL_WIDTH_40)
|
||||
SET_HT_CAP_ELE_CHL_WIDTH(ht_cap_ie + 2, 1);
|
||||
else
|
||||
SET_HT_CAP_ELE_CHL_WIDTH(ht_cap_ie + 2, 0);
|
||||
/* update ht cap ie */
|
||||
if (ht_cap_ie && ht_cap_ielen) {
|
||||
#if UPDATE_HT_CAP
|
||||
if (bw >= CHANNEL_WIDTH_40)
|
||||
SET_HT_CAP_ELE_CHL_WIDTH(ht_cap_ie + 2, 1);
|
||||
else
|
||||
SET_HT_CAP_ELE_CHL_WIDTH(ht_cap_ie + 2, 0);
|
||||
|
||||
if (bw >= CHANNEL_WIDTH_40 && htpriv->sgi_40m)
|
||||
SET_HT_CAP_ELE_SHORT_GI40M(ht_cap_ie + 2, 1);
|
||||
else
|
||||
SET_HT_CAP_ELE_SHORT_GI40M(ht_cap_ie + 2, 0);
|
||||
if (bw >= CHANNEL_WIDTH_40 && htpriv->sgi_40m)
|
||||
SET_HT_CAP_ELE_SHORT_GI40M(ht_cap_ie + 2, 1);
|
||||
else
|
||||
SET_HT_CAP_ELE_SHORT_GI40M(ht_cap_ie + 2, 0);
|
||||
|
||||
if (htpriv->sgi_20m)
|
||||
SET_HT_CAP_ELE_SHORT_GI20M(ht_cap_ie + 2, 1);
|
||||
else
|
||||
SET_HT_CAP_ELE_SHORT_GI20M(ht_cap_ie + 2, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* update ht op ie */
|
||||
if (ht_op_ie && ht_op_ielen) {
|
||||
SET_HT_OP_ELE_PRI_CHL(ht_op_ie + 2, ch);
|
||||
switch (offset) {
|
||||
case HAL_PRIME_CHNL_OFFSET_LOWER:
|
||||
SET_HT_OP_ELE_2ND_CHL_OFFSET(ht_op_ie + 2, SCA);
|
||||
break;
|
||||
case HAL_PRIME_CHNL_OFFSET_UPPER:
|
||||
SET_HT_OP_ELE_2ND_CHL_OFFSET(ht_op_ie + 2, SCB);
|
||||
break;
|
||||
case HAL_PRIME_CHNL_OFFSET_DONT_CARE:
|
||||
default:
|
||||
SET_HT_OP_ELE_2ND_CHL_OFFSET(ht_op_ie + 2, SCN);
|
||||
break;
|
||||
}
|
||||
|
||||
if (bw >= CHANNEL_WIDTH_40)
|
||||
SET_HT_OP_ELE_STA_CHL_WIDTH(ht_op_ie + 2, 1);
|
||||
else
|
||||
SET_HT_OP_ELE_STA_CHL_WIDTH(ht_op_ie + 2, 0);
|
||||
}
|
||||
if (htpriv->sgi_20m)
|
||||
SET_HT_CAP_ELE_SHORT_GI20M(ht_cap_ie + 2, 1);
|
||||
else
|
||||
SET_HT_CAP_ELE_SHORT_GI20M(ht_cap_ie + 2, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* update ht op ie */
|
||||
if (ht_op_ie && ht_op_ielen) {
|
||||
SET_HT_OP_ELE_PRI_CHL(ht_op_ie + 2, ch);
|
||||
switch (offset) {
|
||||
case HAL_PRIME_CHNL_OFFSET_LOWER:
|
||||
SET_HT_OP_ELE_2ND_CHL_OFFSET(ht_op_ie + 2, SCA);
|
||||
break;
|
||||
case HAL_PRIME_CHNL_OFFSET_UPPER:
|
||||
SET_HT_OP_ELE_2ND_CHL_OFFSET(ht_op_ie + 2, SCB);
|
||||
break;
|
||||
case HAL_PRIME_CHNL_OFFSET_DONT_CARE:
|
||||
default:
|
||||
SET_HT_OP_ELE_2ND_CHL_OFFSET(ht_op_ie + 2, SCN);
|
||||
break;
|
||||
}
|
||||
|
||||
if (bw >= CHANNEL_WIDTH_40)
|
||||
SET_HT_OP_ELE_STA_CHL_WIDTH(ht_op_ie + 2, 1);
|
||||
else
|
||||
SET_HT_OP_ELE_STA_CHL_WIDTH(ht_op_ie + 2, 0);
|
||||
}
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
{
|
||||
u8 *p;
|
||||
|
|
|
@ -1353,9 +1353,7 @@ u8 rtw_joinbss_cmd(_adapter *padapter, struct wlan_network *pnetwork)
|
|||
struct qos_priv *pqospriv = &pmlmepriv->qospriv;
|
||||
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
||||
struct registry_priv *pregistrypriv = &padapter->registrypriv;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
struct ht_priv *phtpriv = &pmlmepriv->htpriv;
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
NDIS_802_11_NETWORK_INFRASTRUCTURE ndis_network_mode = pnetwork->network.InfrastructureMode;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
@ -1450,7 +1448,6 @@ u8 rtw_joinbss_cmd(_adapter *padapter, struct wlan_network *pnetwork)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
phtpriv->ht_option = _FALSE;
|
||||
ptmp = rtw_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_, &tmp_len, pnetwork->network.IELength - 12);
|
||||
if (pregistrypriv->ht_enable && ptmp && tmp_len > 0) {
|
||||
|
@ -1473,8 +1470,6 @@ u8 rtw_joinbss_cmd(_adapter *padapter, struct wlan_network *pnetwork)
|
|||
|
||||
rtw_append_exented_cap(padapter, &psecnetwork->IEs[0], &psecnetwork->IELength);
|
||||
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
#ifdef CONFIG_RTW_80211R
|
||||
/*IEEE802.11-2012 Std. Table 8-101¡XAKM suite selectors*/
|
||||
if ((rtw_chk_ft_flags(padapter, RTW_FT_STA_SUPPORTED)) &&
|
||||
|
|
|
@ -1002,10 +1002,7 @@ int proc_get_ht_option(struct seq_file *m, void *v)
|
|||
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
|
||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
RTW_PRINT_SEL(m, "ht_option=%d\n", pmlmepriv->htpriv.ht_option);
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1035,17 +1032,10 @@ int proc_get_scan_param(struct seq_file *m, void *v)
|
|||
#define SCAN_PARAM_VALUE_FMT "%-10u"
|
||||
#define SCAN_PARAM_TITLE_ARG , "scan_ch_ms"
|
||||
#define SCAN_PARAM_VALUE_ARG , ss->scan_ch_ms
|
||||
#ifdef CONFIG_80211N_HT
|
||||
#define SCAN_PARAM_TITLE_FMT_HT " %15s %13s"
|
||||
#define SCAN_PARAM_VALUE_FMT_HT " %-15u %-13u"
|
||||
#define SCAN_PARAM_TITLE_ARG_HT , "rx_ampdu_accept", "rx_ampdu_size"
|
||||
#define SCAN_PARAM_VALUE_ARG_HT , ss->rx_ampdu_accept, ss->rx_ampdu_size
|
||||
#else
|
||||
#define SCAN_PARAM_TITLE_FMT_HT ""
|
||||
#define SCAN_PARAM_VALUE_FMT_HT ""
|
||||
#define SCAN_PARAM_TITLE_ARG_HT
|
||||
#define SCAN_PARAM_VALUE_ARG_HT
|
||||
#endif
|
||||
#ifdef CONFIG_SCAN_BACKOP
|
||||
#define SCAN_PARAM_TITLE_FMT_BACKOP " %9s %12s"
|
||||
#define SCAN_PARAM_VALUE_FMT_BACKOP " %-9u %-12u"
|
||||
|
@ -1093,15 +1083,10 @@ ssize_t proc_set_scan_param(struct file *file, const char __user *buffer, size_t
|
|||
u16 scan_ch_ms;
|
||||
#define SCAN_PARAM_INPUT_FMT "%hu"
|
||||
#define SCAN_PARAM_INPUT_ARG , &scan_ch_ms
|
||||
#ifdef CONFIG_80211N_HT
|
||||
u8 rx_ampdu_accept;
|
||||
u8 rx_ampdu_size;
|
||||
#define SCAN_PARAM_INPUT_FMT_HT " %hhu %hhu"
|
||||
#define SCAN_PARAM_INPUT_ARG_HT , &rx_ampdu_accept, &rx_ampdu_size
|
||||
#else
|
||||
#define SCAN_PARAM_INPUT_FMT_HT ""
|
||||
#define SCAN_PARAM_INPUT_ARG_HT
|
||||
#endif
|
||||
#ifdef CONFIG_SCAN_BACKOP
|
||||
u16 backop_ms;
|
||||
u8 scan_cnt_max;
|
||||
|
@ -1133,12 +1118,10 @@ ssize_t proc_set_scan_param(struct file *file, const char __user *buffer, size_t
|
|||
|
||||
if (num-- > 0)
|
||||
ss->scan_ch_ms = scan_ch_ms;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
if (num-- > 0)
|
||||
ss->rx_ampdu_accept = rx_ampdu_accept;
|
||||
if (num-- > 0)
|
||||
ss->rx_ampdu_size = rx_ampdu_size;
|
||||
#endif
|
||||
#ifdef CONFIG_SCAN_BACKOP
|
||||
if (num-- > 0)
|
||||
ss->backop_ms = backop_ms;
|
||||
|
@ -1404,13 +1387,11 @@ int proc_get_ap_info(struct seq_file *m, void *v)
|
|||
RTW_PRINT_SEL(m, "cur_channel=%d, cur_bwmode=%d, cur_ch_offset=%d\n", pmlmeext->cur_channel, pmlmeext->cur_bwmode, pmlmeext->cur_ch_offset);
|
||||
RTW_PRINT_SEL(m, "wireless_mode=0x%x, rtsen=%d, cts2slef=%d\n", psta->wireless_mode, psta->rtsen, psta->cts2self);
|
||||
RTW_PRINT_SEL(m, "state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta->raid);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
RTW_PRINT_SEL(m, "qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, psta->init_rate);
|
||||
RTW_PRINT_SEL(m, "bwmode=%d, ch_offset=%d, sgi_20m=%d,sgi_40m=%d\n", psta->bw_mode, psta->htpriv.ch_offset, psta->htpriv.sgi_20m, psta->htpriv.sgi_40m);
|
||||
RTW_PRINT_SEL(m, "ampdu_enable = %d\n", psta->htpriv.ampdu_enable);
|
||||
RTW_PRINT_SEL(m, "agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap);
|
||||
RTW_PRINT_SEL(m, "ldpc_cap=0x%x, stbc_cap=0x%x, beamform_cap=0x%x\n", psta->htpriv.ldpc_cap, psta->htpriv.stbc_cap, psta->htpriv.beamform_cap);
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
sta_rx_reorder_ctl_dump(m, psta);
|
||||
} else
|
||||
RTW_PRINT_SEL(m, "can't get sta's macaddr, cur_network's macaddr:" MAC_FMT "\n", MAC_ARG(cur_network->network.MacAddress));
|
||||
|
@ -2272,7 +2253,6 @@ ssize_t proc_set_rx_signal(struct file *file, const char __user *buffer, size_t
|
|||
return count;
|
||||
|
||||
}
|
||||
#ifdef CONFIG_80211N_HT
|
||||
|
||||
int proc_get_ht_enable(struct seq_file *m, void *v)
|
||||
{
|
||||
|
@ -2709,7 +2689,6 @@ ssize_t proc_set_tx_amsdu_rate(struct file *file, const char __user *buffer, siz
|
|||
return count;
|
||||
}
|
||||
#endif /* CONFIG_TX_AMSDU */
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
int proc_get_en_fwps(struct seq_file *m, void *v)
|
||||
{
|
||||
|
@ -2771,7 +2750,6 @@ int proc_get_two_path_rssi(struct seq_file *m, void *v)
|
|||
return 0;
|
||||
}
|
||||
*/
|
||||
#ifdef CONFIG_80211N_HT
|
||||
void rtw_dump_dft_phy_cap(void *sel, _adapter *adapter)
|
||||
{
|
||||
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
|
||||
|
@ -3013,60 +2991,7 @@ ssize_t proc_set_txbf_cap(struct file *file, const char __user *buffer, size_t c
|
|||
return count;
|
||||
}
|
||||
#endif
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
/*int proc_get_rssi_disp(struct seq_file *m, void *v)
|
||||
{
|
||||
struct net_device *dev = m->private;
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
|
||||
/*ssize_t proc_set_rssi_disp(struct file *file, const char __user *buffer, size_t count, loff_t *pos, void *data)
|
||||
{
|
||||
struct net_device *dev = data;
|
||||
_adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
|
||||
char tmp[32];
|
||||
u32 enable=0;
|
||||
|
||||
if (count < 1)
|
||||
{
|
||||
RTW_INFO("argument size is less than 1\n");
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
if (count > sizeof(tmp)) {
|
||||
rtw_warn_on(1);
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
if (buffer && !copy_from_user(tmp, buffer, count)) {
|
||||
|
||||
int num = sscanf(tmp, "%x", &enable);
|
||||
|
||||
if (num != 1) {
|
||||
RTW_INFO("invalid set_rssi_disp parameter!\n");
|
||||
return count;
|
||||
}
|
||||
|
||||
if(enable)
|
||||
{
|
||||
RTW_INFO("Linked info Function Enable\n");
|
||||
padapter->bLinkInfoDump = enable ;
|
||||
}
|
||||
else
|
||||
{
|
||||
RTW_INFO("Linked info Function Disable\n");
|
||||
padapter->bLinkInfoDump = 0 ;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return count;
|
||||
|
||||
}
|
||||
|
||||
*/
|
||||
#ifdef CONFIG_AP_MODE
|
||||
|
||||
int proc_get_all_sta_info(struct seq_file *m, void *v)
|
||||
|
@ -3098,13 +3023,11 @@ int proc_get_all_sta_info(struct seq_file *m, void *v)
|
|||
RTW_PRINT_SEL(m, "sta's macaddr:" MAC_FMT "\n", MAC_ARG(psta->hwaddr));
|
||||
RTW_PRINT_SEL(m, "rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self);
|
||||
RTW_PRINT_SEL(m, "state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta->raid);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
RTW_PRINT_SEL(m, "qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, psta->init_rate);
|
||||
RTW_PRINT_SEL(m, "bwmode=%d, ch_offset=%d, sgi_20m=%d,sgi_40m=%d\n", psta->bw_mode, psta->htpriv.ch_offset, psta->htpriv.sgi_20m, psta->htpriv.sgi_40m);
|
||||
RTW_PRINT_SEL(m, "ampdu_enable = %d\n", psta->htpriv.ampdu_enable);
|
||||
RTW_PRINT_SEL(m, "tx_amsdu_enable = %d\n", psta->htpriv.tx_amsdu_enable);
|
||||
RTW_PRINT_SEL(m, "agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap);
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
RTW_PRINT_SEL(m, "sleepq_len=%d\n", psta->sleepq_len);
|
||||
RTW_PRINT_SEL(m, "sta_xmitpriv.vo_q_qcnt=%d\n", psta->sta_xmitpriv.vo_q.qcnt);
|
||||
RTW_PRINT_SEL(m, "sta_xmitpriv.vi_q_qcnt=%d\n", psta->sta_xmitpriv.vi_q.qcnt);
|
||||
|
|
|
@ -498,13 +498,11 @@ int rtw_generate_ie(struct registry_priv *pregistrypriv)
|
|||
if (rateLen > 8)
|
||||
ie = rtw_set_ie(ie, _EXT_SUPPORTEDRATES_IE_, (rateLen - 8), (pdev_network->SupportedRates + 8), &sz);
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
/* HT Cap. */
|
||||
if (((pregistrypriv->wireless_mode & WIRELESS_11_5N) || (pregistrypriv->wireless_mode & WIRELESS_11_24N))
|
||||
&& (pregistrypriv->ht_enable == _TRUE)) {
|
||||
/* todo: */
|
||||
}
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
return sz;
|
||||
}
|
||||
|
@ -1421,7 +1419,6 @@ err_chk:
|
|||
RTW_INFO("%s mac addr:"MAC_FMT"\n", __func__, MAC_ARG(out));
|
||||
}
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
void dump_ht_cap_ie_content(void *sel, u8 *buf, u32 buf_len)
|
||||
{
|
||||
if (buf_len != 26) {
|
||||
|
@ -1451,7 +1448,6 @@ static void dump_ht_cap_ie(void *sel, u8 *ie, u32 ie_len)
|
|||
|
||||
dump_ht_cap_ie_content(sel, ht_cap_ie + 2, ht_cap_ielen);
|
||||
}
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
void dump_ies(void *sel, u8 *buf, u32 buf_len)
|
||||
{
|
||||
|
@ -1463,9 +1459,7 @@ void dump_ies(void *sel, u8 *buf, u32 buf_len)
|
|||
len = *(pos + 1);
|
||||
|
||||
RTW_PRINT_SEL(sel, "%s ID:%u, LEN:%u\n", __func__, id, len);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
dump_ht_cap_ie(sel, pos, len + 2);
|
||||
#endif
|
||||
dump_wps_ie(sel, pos, len + 2);
|
||||
#ifdef CONFIG_P2P
|
||||
dump_p2p_ie(sel, pos, len + 2);
|
||||
|
@ -1524,7 +1518,6 @@ void rtw_ies_get_chbw(u8 *ies, int ies_len, u8 *ch, u8 *bw, u8 *offset)
|
|||
if (p && ie_len > 0)
|
||||
*ch = *(p + 2);
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
{
|
||||
u8 *ht_cap_ie, *ht_op_ie;
|
||||
int ht_cap_ielen, ht_op_ielen;
|
||||
|
@ -1559,7 +1552,6 @@ void rtw_ies_get_chbw(u8 *ies, int ies_len, u8 *ch, u8 *bw, u8 *offset)
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
}
|
||||
|
||||
void rtw_bss_get_chbw(WLAN_BSSID_EX *bss, u8 *ch, u8 *bw, u8 *offset)
|
||||
|
|
|
@ -982,9 +982,7 @@ u16 rtw_get_cur_max_rate(_adapter *adapter)
|
|||
WLAN_BSSID_EX *pcur_bss = &pmlmepriv->cur_network.network;
|
||||
struct sta_info *psta = NULL;
|
||||
u8 short_GI = 0;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
u8 rf_type = 0;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MP_INCLUDED
|
||||
if (adapter->registrypriv.mp_mode == 1) {
|
||||
|
@ -1003,7 +1001,6 @@ u16 rtw_get_cur_max_rate(_adapter *adapter)
|
|||
|
||||
short_GI = query_ra_short_GI(psta, psta->bw_mode);
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
if (is_supported_ht(psta->wireless_mode)) {
|
||||
rtw_hal_get_hwreg(adapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
|
||||
max_rate = rtw_mcs_rate(rf_type
|
||||
|
@ -1011,10 +1008,7 @@ u16 rtw_get_cur_max_rate(_adapter *adapter)
|
|||
, short_GI
|
||||
, psta->htpriv.ht_cap.supp_mcs_set
|
||||
);
|
||||
}
|
||||
else
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
{
|
||||
} else {
|
||||
while ((pcur_bss->SupportedRates[i] != 0) && (pcur_bss->SupportedRates[i] != 0xFF)) {
|
||||
rate = pcur_bss->SupportedRates[i] & 0x7F;
|
||||
if (rate > max_rate)
|
||||
|
|
|
@ -35,9 +35,7 @@ static sint _rtw_init_mlme_priv(_adapter *padapter)
|
|||
sint res = _SUCCESS;
|
||||
|
||||
/*ht_priv*/
|
||||
#ifdef CONFIG_80211N_HT
|
||||
pmlmepriv->htpriv.ampdu_enable = _FALSE;/*set to disabled*/
|
||||
#endif
|
||||
|
||||
pmlmepriv->nic_hdl = (u8 *)padapter;
|
||||
|
||||
|
@ -1880,9 +1878,7 @@ static void rtw_joinbss_update_network(_adapter *padapter, struct wlan_network *
|
|||
rtw_update_protection(padapter, (cur_network->network.IEs) + sizeof(NDIS_802_11_FIXED_IEs),
|
||||
(cur_network->network.IELength));
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
rtw_update_ht_cap(padapter, cur_network->network.IEs, cur_network->network.IELength, (u8) cur_network->network.Configuration.DSConfig);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Notes: the fucntion could be > passive_level (the same context as Rx tasklet)
|
||||
|
@ -3780,8 +3776,6 @@ void rtw_joinbss_reset(_adapter *padapter)
|
|||
u8 threshold;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
/* todo: if you want to do something io/reg/hw setting before join_bss, please add code here */
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
struct ht_priv *phtpriv = &pmlmepriv->htpriv;
|
||||
|
||||
pmlmepriv->num_FortyMHzIntolerant = 0;
|
||||
|
@ -3802,10 +3796,8 @@ void rtw_joinbss_reset(_adapter *padapter)
|
|||
threshold = 1;
|
||||
rtw_hal_set_hwreg(padapter, HW_VAR_RXDMA_AGG_PG_TH, (u8 *)(&threshold));
|
||||
}
|
||||
#endif/* #ifdef CONFIG_80211N_HT */
|
||||
}
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
void rtw_ht_use_default_setting(_adapter *padapter)
|
||||
{
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
|
@ -4322,7 +4314,6 @@ void rtw_append_exented_cap(_adapter *padapter, u8 *out_ie, uint *pout_len)
|
|||
if (_FALSE == _rtw_memcmp(cap_content, null_content, 8))
|
||||
pframe = rtw_set_ie(out_ie + *pout_len, EID_EXTCapability, 8, cap_content , pout_len);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LAYER2_ROAMING
|
||||
inline void rtw_set_to_roam(_adapter *adapter, u8 to_roam)
|
||||
|
|
|
@ -1705,7 +1705,6 @@ _continue:
|
|||
psta->qos_option = 1;
|
||||
psta->bw_mode = CHANNEL_WIDTH_20;
|
||||
psta->ieee8021x_blocked = _FALSE;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
psta->htpriv.ht_option = _TRUE;
|
||||
psta->htpriv.ampdu_enable = _FALSE;
|
||||
psta->htpriv.sgi_20m = _FALSE;
|
||||
|
@ -1713,7 +1712,6 @@ _continue:
|
|||
psta->htpriv.ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
|
||||
psta->htpriv.agg_enable_bitmap = 0x0;/* reset */
|
||||
psta->htpriv.candidate_tid_bitmap = 0x0;/* reset */
|
||||
#endif
|
||||
|
||||
rtw_hal_set_odm_var(padapter, HAL_ODM_STA_INFO, psta, _TRUE);
|
||||
|
||||
|
@ -2808,7 +2806,6 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
|
|||
}
|
||||
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
if (pmlmepriv->htpriv.ht_option == _FALSE)
|
||||
goto bypass_ht_chk;
|
||||
|
||||
|
@ -2830,7 +2827,6 @@ bypass_ht_chk:
|
|||
status = _STATS_FAILURE_;
|
||||
goto OnAssocReqFail;
|
||||
}
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
if (((pstat->flags & WLAN_STA_HT) || (pstat->flags & WLAN_STA_VHT)) &&
|
||||
((pstat->wpa2_pairwise_cipher & WPA_CIPHER_TKIP) ||
|
||||
|
@ -3761,7 +3757,6 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
|
|||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
|
||||
RTW_INFO("%s\n", __func__);
|
||||
|
||||
|
@ -3769,12 +3764,6 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
|
|||
if (!_rtw_memcmp(adapter_mac_addr(padapter), GetAddr1Ptr(pframe), ETH_ALEN))
|
||||
return _SUCCESS;
|
||||
|
||||
#if 0
|
||||
/* check A1 matches or not */
|
||||
if (!_rtw_memcmp(adapter_mac_addr(padapter), get_da(pframe), ETH_ALEN))
|
||||
return _SUCCESS;
|
||||
#endif
|
||||
|
||||
if ((pmlmeinfo->state & 0x03) != WIFI_FW_AP_STATE)
|
||||
if (!(pmlmeinfo->state & WIFI_FW_ASSOC_SUCCESS))
|
||||
return _SUCCESS;
|
||||
|
@ -3859,7 +3848,6 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
|
|||
break;
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -6837,13 +6825,11 @@ unsigned int on_action_public(_adapter *padapter, union recv_frame *precv_frame)
|
|||
action = frame_body[1];
|
||||
switch (action) {
|
||||
case ACT_PUBLIC_BSSCOEXIST:
|
||||
#ifdef CONFIG_80211N_HT
|
||||
#ifdef CONFIG_AP_MODE
|
||||
/*20/40 BSS Coexistence Management frame is a Public Action frame*/
|
||||
if (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
rtw_process_public_act_bsscoex(padapter, pframe, frame_len);
|
||||
#endif /*CONFIG_AP_MODE*/
|
||||
#endif /*CONFIG_80211N_HT*/
|
||||
break;
|
||||
case ACT_PUBLIC_VENDOR:
|
||||
ret = on_action_public_vendor(precv_frame);
|
||||
|
@ -6960,12 +6946,10 @@ unsigned int OnAction_ht(_adapter *padapter, union recv_frame *precv_frame)
|
|||
action = frame_body[1];
|
||||
switch (action) {
|
||||
case RTW_WLAN_ACTION_HT_SM_PS:
|
||||
#ifdef CONFIG_80211N_HT
|
||||
#ifdef CONFIG_AP_MODE
|
||||
if (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
rtw_process_ht_action_smps(padapter, get_addr2_ptr(pframe), frame_body[2]);
|
||||
#endif /*CONFIG_AP_MODE*/
|
||||
#endif /*CONFIG_80211N_HT*/
|
||||
break;
|
||||
case RTW_WLAN_ACTION_HT_COMPRESS_BEAMFORMING:
|
||||
#ifdef CONFIG_BEAMFORMING
|
||||
|
@ -8457,7 +8441,6 @@ void issue_asocrsp(_adapter *padapter, unsigned short status, struct sta_info *p
|
|||
}
|
||||
#endif /* CONFIG_IEEE80211W */
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
if ((pstat->flags & WLAN_STA_HT) && (pmlmepriv->htpriv.ht_option)) {
|
||||
uint ie_len = 0;
|
||||
|
||||
|
@ -8480,7 +8463,6 @@ void issue_asocrsp(_adapter *padapter, unsigned short status, struct sta_info *p
|
|||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
/*adding EXT_CAPAB_IE */
|
||||
if (pmlmepriv->ext_capab_ie_len > 0) {
|
||||
|
@ -8801,7 +8783,6 @@ void _issue_assocreq(_adapter *padapter, u8 is_reassoc)
|
|||
#endif
|
||||
pframe = rtw_set_ie(pframe, EID_WPA2, pIE->Length, pIE->data, &(pattrib->pktlen));
|
||||
break;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
case EID_HTCapability:
|
||||
if (padapter->mlmepriv.htpriv.ht_option == _TRUE) {
|
||||
if (!(is_ap_in_tkip(padapter))) {
|
||||
|
@ -8815,7 +8796,6 @@ void _issue_assocreq(_adapter *padapter, u8 is_reassoc)
|
|||
if (padapter->mlmepriv.htpriv.ht_option == _TRUE)
|
||||
pframe = rtw_set_ie(pframe, EID_EXTCapability, pIE->Length, pIE->data, &(pattrib->pktlen));
|
||||
break;
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -9679,8 +9659,6 @@ static int issue_action_ba(_adapter *padapter, unsigned char *raddr, unsigned ch
|
|||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
struct registry_priv *pregpriv = &padapter->registrypriv;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
|
||||
if (rtw_rfctl_is_tx_blocked_by_ch_waiting(adapter_to_rfctl(padapter)))
|
||||
goto exit;
|
||||
|
||||
|
@ -9807,7 +9785,6 @@ static int issue_action_ba(_adapter *padapter, unsigned char *raddr, unsigned ch
|
|||
}
|
||||
|
||||
exit:
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -10003,7 +9980,7 @@ static void issue_action_BSSCoexistPacket(_adapter *padapter)
|
|||
_queue *queue = &(pmlmepriv->scanned_queue);
|
||||
u8 InfoContent[16] = {0};
|
||||
u8 ICS[8][15];
|
||||
#ifdef CONFIG_80211N_HT
|
||||
|
||||
if ((pmlmepriv->num_FortyMHzIntolerant == 0) || (pmlmepriv->num_sta_no_ht == 0))
|
||||
return;
|
||||
|
||||
|
@ -10132,7 +10109,6 @@ static void issue_action_BSSCoexistPacket(_adapter *padapter)
|
|||
pattrib->last_txcmdsz = pattrib->pktlen;
|
||||
|
||||
dump_mgntframe(padapter, pmgntframe);
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
}
|
||||
|
||||
/* Spatial Multiplexing Powersave (SMPS) action frame */
|
||||
|
@ -10316,13 +10292,11 @@ static unsigned int _send_delba_sta_tid(_adapter *adapter, u8 initiator, struct
|
|||
}
|
||||
} else if (initiator == 1) {
|
||||
/* originator */
|
||||
#ifdef CONFIG_80211N_HT
|
||||
if (force || sta->htpriv.agg_enable_bitmap & BIT(tid)) {
|
||||
sta->htpriv.agg_enable_bitmap &= ~BIT(tid);
|
||||
sta->htpriv.candidate_tid_bitmap &= ~BIT(tid);
|
||||
issue_del_ba(adapter, sta->hwaddr, tid, 37, initiator);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
exit:
|
||||
|
@ -10635,7 +10609,6 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
|
|||
/* 20/40 BSS Coexistence check */
|
||||
if ((pregistrypriv->wifi_spec == 1) && (_FALSE == pmlmeinfo->bwmode_updated)) {
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
p = rtw_get_ie(bssid->IEs + ie_offset, _HT_CAPABILITY_IE_, &len, bssid->IELength - ie_offset);
|
||||
if (p && len > 0) {
|
||||
struct HT_caps_element *pHT_caps;
|
||||
|
@ -10645,8 +10618,6 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
|
|||
pmlmepriv->num_FortyMHzIntolerant++;
|
||||
} else
|
||||
pmlmepriv->num_sta_no_ht++;
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INTEL_WIDI
|
||||
|
@ -11636,7 +11607,6 @@ void update_sta_info(_adapter *padapter, struct sta_info *psta)
|
|||
/* ERP */
|
||||
VCS_update(padapter, psta);
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
/* HT */
|
||||
if (pmlmepriv->htpriv.ht_option) {
|
||||
psta->htpriv.ht_option = _TRUE;
|
||||
|
@ -11659,25 +11629,20 @@ void update_sta_info(_adapter *padapter, struct sta_info *psta)
|
|||
|
||||
_rtw_memcpy(&psta->htpriv.ht_cap, &pmlmeinfo->HT_caps, sizeof(struct rtw_ieee80211_ht_cap));
|
||||
} else
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
{
|
||||
#ifdef CONFIG_80211N_HT
|
||||
psta->htpriv.ht_option = _FALSE;
|
||||
psta->htpriv.ampdu_enable = _FALSE;
|
||||
psta->htpriv.tx_amsdu_enable = _FALSE;
|
||||
psta->htpriv.sgi_20m = _FALSE;
|
||||
psta->htpriv.sgi_40m = _FALSE;
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
psta->qos_option = _FALSE;
|
||||
|
||||
}
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
psta->htpriv.ch_offset = pmlmeext->cur_ch_offset;
|
||||
|
||||
psta->htpriv.agg_enable_bitmap = 0x0;/* reset */
|
||||
psta->htpriv.candidate_tid_bitmap = 0x0;/* reset */
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
psta->bw_mode = pmlmeext->cur_bwmode;
|
||||
|
||||
|
@ -12556,7 +12521,6 @@ void link_timer_hdl(_adapter *padapter)
|
|||
|
||||
void addba_timer_hdl(struct sta_info *psta)
|
||||
{
|
||||
#ifdef CONFIG_80211N_HT
|
||||
struct ht_priv *phtpriv;
|
||||
|
||||
if (!psta)
|
||||
|
@ -12569,7 +12533,6 @@ void addba_timer_hdl(struct sta_info *psta)
|
|||
phtpriv->candidate_tid_bitmap = 0x0;
|
||||
|
||||
}
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
}
|
||||
|
||||
#ifdef CONFIG_IEEE80211W
|
||||
|
@ -13169,8 +13132,6 @@ u8 join_cmd_hdl(_adapter *padapter, u8 *pbuf)
|
|||
if (_rtw_memcmp(pIE->data, WMM_OUI, 4))
|
||||
WMM_param_handler(padapter, pIE);
|
||||
break;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
case _HT_CAPABILITY_IE_: /* Get HT Cap IE. */
|
||||
pmlmeinfo->HT_caps_enable = 1;
|
||||
break;
|
||||
|
@ -13178,8 +13139,6 @@ u8 join_cmd_hdl(_adapter *padapter, u8 *pbuf)
|
|||
case _HT_EXTRA_INFO_IE_: /* Get HT Info IE. */
|
||||
pmlmeinfo->HT_info_enable = 1;
|
||||
break;
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -14526,7 +14485,6 @@ u8 add_ba_hdl(_adapter *padapter, unsigned char *pbuf)
|
|||
if (!psta)
|
||||
return H2C_SUCCESS;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
if (((pmlmeinfo->state & WIFI_FW_ASSOC_SUCCESS) && (pmlmeinfo->HT_enable)) ||
|
||||
((pmlmeinfo->state & 0x03) == WIFI_FW_AP_STATE)) {
|
||||
/* pmlmeinfo->ADDBA_retry_count = 0; */
|
||||
|
@ -14546,7 +14504,6 @@ u8 add_ba_hdl(_adapter *padapter, unsigned char *pbuf)
|
|||
#endif /* CONFIG */
|
||||
else
|
||||
psta->htpriv.candidate_tid_bitmap &= ~BIT(pparm->tid);
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
return H2C_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -154,10 +154,7 @@ static void _init_mp_priv_(struct mp_priv *pmp_priv)
|
|||
_rtw_memcpy(pnetwork->Ssid.Ssid, "mp_871x", pnetwork->Ssid.SsidLength);
|
||||
|
||||
pmp_priv->tx.payload = 2;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
pmp_priv->tx.attrib.ht_en = 1;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
static int init_mp_priv_by_os(struct mp_priv *pmp_priv)
|
||||
|
|
|
@ -3086,9 +3086,6 @@ int process_recv_indicatepkts(_adapter *padapter, union recv_frame *prframe)
|
|||
#ifdef CONFIG_TDLS
|
||||
struct sta_info *psta = prframe->u.hdr.psta;
|
||||
#endif /* CONFIG_TDLS */
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
|
||||
struct ht_priv *phtpriv = &pmlmepriv->htpriv;
|
||||
|
||||
DBG_COUNTER(padapter->rx_logs.core_rx_post_indicate);
|
||||
|
@ -3115,7 +3112,6 @@ int process_recv_indicatepkts(_adapter *padapter, union recv_frame *prframe)
|
|||
}
|
||||
}
|
||||
} else /* B/G mode */
|
||||
#endif
|
||||
{
|
||||
retval = wlanhdr_to_ethhdr(prframe);
|
||||
if (retval != _SUCCESS) {
|
||||
|
@ -3802,7 +3798,6 @@ static int recv_func_posthandle(_adapter *padapter, union recv_frame *prframe)
|
|||
rtw_wapi_update_info(padapter, prframe);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
ret = process_recv_indicatepkts(padapter, prframe);
|
||||
if (ret != _SUCCESS) {
|
||||
#ifdef DBG_RX_DROP_FRAME
|
||||
|
@ -3812,54 +3807,6 @@ static int recv_func_posthandle(_adapter *padapter, union recv_frame *prframe)
|
|||
DBG_COUNTER(padapter->rx_logs.core_rx_post_indicate_err);
|
||||
goto _recv_data_drop;
|
||||
}
|
||||
#else /* CONFIG_80211N_HT */
|
||||
if (!pattrib->amsdu) {
|
||||
ret = wlanhdr_to_ethhdr(prframe);
|
||||
if (ret != _SUCCESS) {
|
||||
#ifdef DBG_RX_DROP_FRAME
|
||||
RTW_INFO("DBG_RX_DROP_FRAME %s wlanhdr_to_ethhdr: drop pkt\n", __func__);
|
||||
#endif
|
||||
rtw_free_recvframe(orig_prframe, pfree_recv_queue);/* free this recv_frame */
|
||||
goto _recv_data_drop;
|
||||
}
|
||||
|
||||
if (!RTW_CANNOT_RUN(padapter)) {
|
||||
/* indicate this recv_frame */
|
||||
ret = rtw_recv_indicatepkt(padapter, prframe);
|
||||
if (ret != _SUCCESS) {
|
||||
#ifdef DBG_RX_DROP_FRAME
|
||||
RTW_INFO("DBG_RX_DROP_FRAME %s rtw_recv_indicatepkt fail!\n", __func__);
|
||||
#endif
|
||||
goto _recv_data_drop;
|
||||
}
|
||||
} else {
|
||||
|
||||
#ifdef DBG_RX_DROP_FRAME
|
||||
RTW_INFO("DBG_RX_DROP_FRAME %s recv_func:bDriverStopped(%s) OR bSurpriseRemoved(%s)\n", __func__
|
||||
, rtw_is_drv_stopped(padapter) ? "True" : "False"
|
||||
, rtw_is_surprise_removed(padapter) ? "True" : "False");
|
||||
#endif
|
||||
ret = _FAIL;
|
||||
rtw_free_recvframe(orig_prframe, pfree_recv_queue); /* free this recv_frame */
|
||||
}
|
||||
|
||||
} else if (pattrib->amsdu == 1) {
|
||||
|
||||
ret = amsdu_to_msdu(padapter, prframe);
|
||||
if (ret != _SUCCESS) {
|
||||
#ifdef DBG_RX_DROP_FRAME
|
||||
RTW_INFO("DBG_RX_DROP_FRAME %s amsdu_to_msdu fail\n", __func__);
|
||||
#endif
|
||||
rtw_free_recvframe(orig_prframe, pfree_recv_queue);
|
||||
goto _recv_data_drop;
|
||||
}
|
||||
} else {
|
||||
#ifdef DBG_RX_DROP_FRAME
|
||||
RTW_INFO("DBG_RX_DROP_FRAME %s what is this condition??\n", __func__);
|
||||
#endif
|
||||
goto _recv_data_drop;
|
||||
}
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
||||
_exit_recv_func:
|
||||
return ret;
|
||||
|
|
|
@ -316,7 +316,6 @@ void rtw_tdls_set_key(_adapter *padapter, struct sta_info *ptdls_sta)
|
|||
rtw_setstakey_cmd(padapter, ptdls_sta, TDLS_KEY, _TRUE);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
void rtw_tdls_process_ht_cap(_adapter *padapter, struct sta_info *ptdls_sta, u8 *data, u8 Length)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
@ -419,7 +418,6 @@ u8 *rtw_tdls_set_ht_cap(_adapter *padapter, u8 *pframe, struct pkt_attrib *pattr
|
|||
|
||||
return pframe + pattrib->pktlen;
|
||||
}
|
||||
#endif
|
||||
|
||||
u8 *rtw_tdls_set_sup_ch(struct mlme_ext_priv *pmlmeext, u8 *pframe, struct pkt_attrib *pattrib)
|
||||
{
|
||||
|
@ -1619,11 +1617,9 @@ sint On_TDLS_Setup_Req(_adapter *padapter, union recv_frame *precv_frame)
|
|||
break;
|
||||
case _RIC_Descriptor_IE_:
|
||||
break;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
case _HT_CAPABILITY_IE_:
|
||||
rtw_tdls_process_ht_cap(padapter, ptdls_sta, pIE->data, pIE->Length);
|
||||
break;
|
||||
#endif
|
||||
case EID_BSSCoexistence:
|
||||
break;
|
||||
case _LINK_ID_IE_:
|
||||
|
@ -1799,11 +1795,9 @@ int On_TDLS_Setup_Rsp(_adapter *padapter, union recv_frame *precv_frame)
|
|||
break;
|
||||
case _RIC_Descriptor_IE_:
|
||||
break;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
case _HT_CAPABILITY_IE_:
|
||||
rtw_tdls_process_ht_cap(padapter, ptdls_sta, pIE->data, pIE->Length);
|
||||
break;
|
||||
#endif
|
||||
case EID_BSSCoexistence:
|
||||
break;
|
||||
case _LINK_ID_IE_:
|
||||
|
@ -1943,10 +1937,8 @@ int On_TDLS_Setup_Cfm(_adapter *padapter, union recv_frame *precv_frame)
|
|||
case _TIMEOUT_ITVL_IE_:
|
||||
ptimeout_ie = (u8 *)pIE;
|
||||
break;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
case _HT_EXTRA_INFO_IE_:
|
||||
break;
|
||||
#endif
|
||||
case _LINK_ID_IE_:
|
||||
plinkid_ie = (u8 *)pIE;
|
||||
break;
|
||||
|
@ -2536,11 +2528,9 @@ void rtw_build_tdls_setup_req_ies(_adapter *padapter, struct xmit_frame *pxmitfr
|
|||
pframe = rtw_tdls_set_timeout_interval(ptxmgmt, pframe, pattrib, _TRUE, ptdls_sta);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
/* Sup_reg_classes(optional) */
|
||||
if (pregistrypriv->ht_enable == _TRUE)
|
||||
pframe = rtw_tdls_set_ht_cap(padapter, pframe_head, pattrib);
|
||||
#endif
|
||||
|
||||
pframe = rtw_tdls_set_bss_coexist(padapter, pframe, pattrib);
|
||||
|
||||
|
@ -2620,11 +2610,9 @@ void rtw_build_tdls_setup_rsp_ies(_adapter *padapter, struct xmit_frame *pxmitfr
|
|||
pframe = rtw_tdls_set_timeout_interval(ptxmgmt, pframe, pattrib, _FALSE, ptdls_sta);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
/* Sup_reg_classes(optional) */
|
||||
if (pregistrypriv->ht_enable == _TRUE)
|
||||
pframe = rtw_tdls_set_ht_cap(padapter, pframe_head, pattrib);
|
||||
#endif
|
||||
|
||||
pframe = rtw_tdls_set_bss_coexist(padapter, pframe, pattrib);
|
||||
|
||||
|
@ -2775,17 +2763,13 @@ void rtw_build_tdls_dis_rsp_ies(_adapter *padapter, struct xmit_frame *pxmitfram
|
|||
pframe = rtw_tdls_set_timeout_interval(ptxmgmt, pframe, pattrib, _TRUE, NULL);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
if (pregistrypriv->ht_enable == _TRUE)
|
||||
pframe = rtw_tdls_set_ht_cap(padapter, pframe_head - pktlen_index, pattrib);
|
||||
#endif
|
||||
|
||||
pframe = rtw_tdls_set_bss_coexist(padapter, pframe, pattrib);
|
||||
pframe = rtw_tdls_set_linkid(pframe, pattrib, _FALSE);
|
||||
|
||||
}
|
||||
|
||||
|
||||
void rtw_build_tdls_peer_traffic_indication_ies(_adapter *padapter, struct xmit_frame *pxmitframe, u8 *pframe, struct tdls_txmgmt *ptxmgmt)
|
||||
{
|
||||
|
||||
|
|
|
@ -1763,7 +1763,6 @@ void WMMOnAssocRsp(_adapter *padapter)
|
|||
|
||||
static void bwmode_update_check(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
|
||||
{
|
||||
#ifdef CONFIG_80211N_HT
|
||||
unsigned char new_bwmode;
|
||||
unsigned char new_ch_offset;
|
||||
struct HT_info_element *pHT_info;
|
||||
|
@ -1862,12 +1861,10 @@ static void bwmode_update_check(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pI
|
|||
|
||||
/* pmlmeinfo->bwmode_updated = _FALSE; */ /* bwmode_updated done, reset it! */
|
||||
}
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
}
|
||||
|
||||
void HT_caps_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
|
||||
{
|
||||
#ifdef CONFIG_80211N_HT
|
||||
unsigned int i;
|
||||
u8 rf_type = RF_1T1R;
|
||||
u8 max_AMPDU_len, min_MPDU_spacing;
|
||||
|
@ -2026,13 +2023,10 @@ void HT_caps_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
|
|||
RTW_INFO("Client HT Beamforming Cap = 0x%02X\n", cur_beamform_cap);
|
||||
#endif /*CONFIG_BEAMFORMING*/
|
||||
}
|
||||
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
}
|
||||
|
||||
void HT_info_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
|
||||
{
|
||||
#ifdef CONFIG_80211N_HT
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
|
@ -2050,7 +2044,6 @@ void HT_info_handler(_adapter *padapter, PNDIS_802_11_VARIABLE_IEs pIE)
|
|||
|
||||
pmlmeinfo->HT_info_enable = 1;
|
||||
_rtw_memcpy(&(pmlmeinfo->HT_info), pIE->data, pIE->Length);
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2189,8 +2182,6 @@ void VCS_update(_adapter *padapter, struct sta_info *psta)
|
|||
|
||||
void update_ldpc_stbc_cap(struct sta_info *psta)
|
||||
{
|
||||
#ifdef CONFIG_80211N_HT
|
||||
|
||||
if (psta->htpriv.ht_option) {
|
||||
if (TEST_FLAG(psta->htpriv.ldpc_cap, LDPC_HT_ENABLE_TX))
|
||||
psta->ldpc = 1;
|
||||
|
@ -2201,7 +2192,6 @@ void update_ldpc_stbc_cap(struct sta_info *psta)
|
|||
psta->ldpc = 0;
|
||||
psta->stbc = 0;
|
||||
}
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
}
|
||||
|
||||
static int check_ielen(u8 *start, uint len)
|
||||
|
|
|
@ -682,10 +682,8 @@ u8 query_ra_short_GI(struct sta_info *psta, u8 bw)
|
|||
{
|
||||
u8 sgi = _FALSE, sgi_20m = _FALSE, sgi_40m = _FALSE, sgi_80m = _FALSE;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
sgi_20m = psta->htpriv.sgi_20m;
|
||||
sgi_40m = psta->htpriv.sgi_40m;
|
||||
#endif
|
||||
|
||||
switch (bw) {
|
||||
case CHANNEL_WIDTH_80:
|
||||
|
@ -837,7 +835,6 @@ static void update_attrib_phy_info(_adapter *padapter, struct pkt_attrib *pattri
|
|||
pattrib->ldpc = psta->ldpc;
|
||||
pattrib->stbc = psta->stbc;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
pattrib->ht_en = psta->htpriv.ht_option;
|
||||
pattrib->ch_offset = psta->htpriv.ch_offset;
|
||||
pattrib->ampdu_en = _FALSE;
|
||||
|
@ -857,7 +854,6 @@ static void update_attrib_phy_info(_adapter *padapter, struct pkt_attrib *pattri
|
|||
pattrib->amsdu_ampdu_en = _FALSE;
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
/* if(pattrib->ht_en && psta->htpriv.ampdu_enable) */
|
||||
/* { */
|
||||
/* if(psta->htpriv.agg_enable_bitmap & BIT(pattrib->priority)) */
|
||||
|
@ -869,12 +865,10 @@ static void update_attrib_phy_info(_adapter *padapter, struct pkt_attrib *pattri
|
|||
psta = pattrib->ptdls_sta;
|
||||
|
||||
pattrib->raid = psta->raid;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
pattrib->bwmode = rtw_get_tx_bw_mode(padapter, psta);
|
||||
pattrib->ht_en = psta->htpriv.ht_option;
|
||||
pattrib->ch_offset = psta->htpriv.ch_offset;
|
||||
pattrib->sgi = query_ra_short_GI(psta, pattrib->bwmode);
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
}
|
||||
#endif /* CONFIG_TDLS */
|
||||
|
||||
|
@ -1689,7 +1683,6 @@ s32 rtw_make_wlanhdr(_adapter *padapter , u8 *hdr, struct pkt_attrib *pattrib)
|
|||
|
||||
SetSeqNum(hdr, pattrib->seqnum);
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
/* re-check if enable ampdu by BA_starting_seqctrl */
|
||||
if (pattrib->ampdu_en == _TRUE) {
|
||||
u16 tx_seq;
|
||||
|
@ -1711,10 +1704,8 @@ s32 rtw_make_wlanhdr(_adapter *padapter , u8 *hdr, struct pkt_attrib *pattrib)
|
|||
}
|
||||
|
||||
}
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue