diff --git a/core/rtw_recv.c b/core/rtw_recv.c index 2c4018e..468e5cc 100755 --- a/core/rtw_recv.c +++ b/core/rtw_recv.c @@ -2496,15 +2496,7 @@ int amsdu_to_msdu(struct adapter *padapter, union recv_frame *prframe) sub_skb->protocol = eth_type_trans(sub_skb, padapter->pnetdev); sub_skb->dev = padapter->pnetdev; -#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX - if ( (pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1) ) { - sub_skb->ip_summed = CHECKSUM_UNNECESSARY; - } else { - sub_skb->ip_summed = CHECKSUM_NONE; - } -#else /* !CONFIG_TCP_CSUM_OFFLOAD_RX */ sub_skb->ip_summed = CHECKSUM_NONE; -#endif /* CONFIG_TCP_CSUM_OFFLOAD_RX */ rtw_netif_rx(padapter->pnetdev, sub_skb); } diff --git a/include/rtw_recv.h b/include/rtw_recv.h index b1a4a38..b6a59cc 100755 --- a/include/rtw_recv.h +++ b/include/rtw_recv.h @@ -152,11 +152,9 @@ struct rx_pkt_attrib { u8 ack_policy; -//#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX u8 tcpchk_valid; // 0: invalid, 1: valid u8 ip_chkrpt; //0: incorrect, 1: correct u8 tcp_chkrpt; //0: incorrect, 1: correct -//#endif u8 key_index; u8 mcs_rate; @@ -165,13 +163,6 @@ struct rx_pkt_attrib { u8 pkt_rpt_type; u32 MacIDValidEntry[2]; // 64 bits present 64 entry. -/* - u8 signal_qual; - s8 rx_mimo_signal_qual[2]; - u8 signal_strength; - u32 RxPWDBAll; - s32 RecvSignalPower; -*/ struct phy_info phy_info; }; diff --git a/os_dep/recv_linux.c b/os_dep/recv_linux.c index fdb294c..d5fccd6 100755 --- a/os_dep/recv_linux.c +++ b/os_dep/recv_linux.c @@ -197,16 +197,10 @@ int rtw_recv_indicatepkt(struct adapter *padapter, union recv_frame *precv_frame _queue *pfree_recv_queue; _pkt *skb; struct mlme_priv*pmlmepriv = &padapter->mlmepriv; -#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX - struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; -#endif - #ifdef CONFIG_BR_EXT void *br_port = NULL; #endif -; - precvpriv = &(padapter->recvpriv); pfree_recv_queue = &(precvpriv->free_recv_queue); @@ -318,22 +312,8 @@ int rtw_recv_indicatepkt(struct adapter *padapter, union recv_frame *precv_frame } #endif /* CONFIG_BR_EXT */ - - -#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX - if ( (pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1) ) { - skb->ip_summed = CHECKSUM_UNNECESSARY; - /* DBG_871X("CHECKSUM_UNNECESSARY \n"); */ - } else { - skb->ip_summed = CHECKSUM_NONE; - /* DBG_871X("CHECKSUM_NONE(%d, %d) \n", pattrib->tcpchk_valid, pattrib->tcp_chkrpt); */ - } -#else /* !CONFIG_TCP_CSUM_OFFLOAD_RX */ - skb->ip_summed = CHECKSUM_NONE; -#endif - skb->dev = padapter->pnetdev; skb->protocol = eth_type_trans(skb, padapter->pnetdev);