|
@@ -650,7 +650,6 @@ int sta2sta_data_frame(
|
|
|
int sta2sta_data_frame(struct adapter *adapter, struct recv_frame *precv_frame,
|
|
|
struct sta_info **psta)
|
|
|
{
|
|
|
- u8 *ptr = precv_frame->rx_data;
|
|
|
int ret = _SUCCESS;
|
|
|
struct rx_pkt_attrib *pattrib = &precv_frame->attrib;
|
|
|
struct sta_priv *pstapriv = &adapter->stapriv;
|
|
@@ -706,14 +705,6 @@ int sta2sta_data_frame(struct adapter *adapter, struct recv_frame *precv_frame,
|
|
|
|
|
|
sta_addr = pattrib->src;
|
|
|
}
|
|
|
- } else if (check_fwstate(pmlmepriv, WIFI_MP_STATE)) {
|
|
|
- memcpy(pattrib->dst, GetAddr1Ptr(ptr), ETH_ALEN);
|
|
|
- memcpy(pattrib->src, GetAddr2Ptr(ptr), ETH_ALEN);
|
|
|
- memcpy(pattrib->bssid, GetAddr3Ptr(ptr), ETH_ALEN);
|
|
|
- memcpy(pattrib->ra, pattrib->dst, ETH_ALEN);
|
|
|
- memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
|
|
|
-
|
|
|
- sta_addr = mybssid;
|
|
|
} else {
|
|
|
ret = _FAIL;
|
|
|
}
|
|
@@ -802,23 +793,6 @@ static int ap2sta_data_frame(
|
|
|
ret = RTW_RX_HANDLED;
|
|
|
goto exit;
|
|
|
}
|
|
|
- } else if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == true) &&
|
|
|
- (check_fwstate(pmlmepriv, _FW_LINKED) == true)) {
|
|
|
- memcpy(pattrib->dst, GetAddr1Ptr(ptr), ETH_ALEN);
|
|
|
- memcpy(pattrib->src, GetAddr2Ptr(ptr), ETH_ALEN);
|
|
|
- memcpy(pattrib->bssid, GetAddr3Ptr(ptr), ETH_ALEN);
|
|
|
- memcpy(pattrib->ra, pattrib->dst, ETH_ALEN);
|
|
|
- memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
|
|
|
-
|
|
|
- /* */
|
|
|
- memcpy(pattrib->bssid, mybssid, ETH_ALEN);
|
|
|
-
|
|
|
- *psta = rtw_get_stainfo(pstapriv, pattrib->bssid); /* get sta_info */
|
|
|
- if (*psta == NULL) {
|
|
|
- RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, ("can't get psta under MP_MODE ; drop pkt\n"));
|
|
|
- ret = _FAIL;
|
|
|
- goto exit;
|
|
|
- }
|
|
|
} else if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) {
|
|
|
/* Special case */
|
|
|
ret = RTW_RX_HANDLED;
|
|
@@ -1309,8 +1283,6 @@ static int wlanhdr_to_ethhdr(struct recv_frame *precvframe)
|
|
|
u8 *psnap_type;
|
|
|
struct ieee80211_snap_hdr *psnap;
|
|
|
|
|
|
- struct adapter *adapter = precvframe->adapter;
|
|
|
- struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
|
|
|
u8 *ptr = precvframe->rx_data;
|
|
|
struct rx_pkt_attrib *pattrib = &precvframe->attrib;
|
|
|
|
|
@@ -1341,19 +1313,7 @@ static int wlanhdr_to_ethhdr(struct recv_frame *precvframe)
|
|
|
eth_type = ntohs(be_tmp); /* pattrib->ether_type */
|
|
|
pattrib->eth_type = eth_type;
|
|
|
|
|
|
- if ((check_fwstate(pmlmepriv, WIFI_MP_STATE))) {
|
|
|
- ptr += rmv_len;
|
|
|
- *ptr = 0x87;
|
|
|
- *(ptr+1) = 0x12;
|
|
|
-
|
|
|
- eth_type = 0x8712;
|
|
|
- /* append rx status for mp test packets */
|
|
|
- ptr = recvframe_pull(precvframe, (rmv_len-sizeof(struct ethhdr)+2)-24);
|
|
|
- memcpy(ptr, get_rxmem(precvframe), 24);
|
|
|
- ptr += 24;
|
|
|
- } else {
|
|
|
- ptr = recvframe_pull(precvframe, (rmv_len-sizeof(struct ethhdr) + (bsnaphdr ? 2 : 0)));
|
|
|
- }
|
|
|
+ ptr = recvframe_pull(precvframe, (rmv_len-sizeof(struct ethhdr) + (bsnaphdr ? 2 : 0)));
|
|
|
|
|
|
memcpy(ptr, pattrib->dst, ETH_ALEN);
|
|
|
memcpy(ptr+ETH_ALEN, pattrib->src, ETH_ALEN);
|