diff --git a/core/rtw_recv.c b/core/rtw_recv.c index 417a087..07babc4 100644 --- a/core/rtw_recv.c +++ b/core/rtw_recv.c @@ -2267,15 +2267,7 @@ static int amsdu_to_msdu(_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 */ netif_rx(sub_skb); } diff --git a/include/autoconf.h b/include/autoconf.h index 0b57f4e..659c637 100644 --- a/include/autoconf.h +++ b/include/autoconf.h @@ -59,27 +59,18 @@ #define CONFIG_RECV_REORDERING_CTRL -//#define CONFIG_TCP_CSUM_OFFLOAD_RX - -//#define CONFIG_DRVEXT_MODULE - #define CONFIG_SUPPORT_USB_INT #ifdef CONFIG_SUPPORT_USB_INT -//#define CONFIG_USB_INTERRUPT_IN_PIPE #endif -//#ifndef CONFIG_MP_INCLUDED #define CONFIG_IPS #ifdef CONFIG_IPS - //#define CONFIG_IPS_LEVEL_2 //enable this to set default IPS mode to IPS_LEVEL_2 #endif #define SUPPORT_HW_RFOFF_DETECTED #define CONFIG_LPS #if defined(CONFIG_LPS) && defined(CONFIG_SUPPORT_USB_INT) - - //#define CONFIG_LPS_LCLK #endif #ifdef CONFIG_LPS_LCLK diff --git a/include/rtw_recv.h b/include/rtw_recv.h index f9767bb..13485a2 100644 --- a/include/rtw_recv.h +++ b/include/rtw_recv.h @@ -153,11 +153,6 @@ 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; @@ -166,13 +161,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 cffa585..3a7e374 100644 --- a/os_dep/recv_linux.c +++ b/os_dep/recv_linux.c @@ -209,9 +209,6 @@ int rtw_recv_indicatepkt(_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; @@ -322,20 +319,7 @@ _func_enter_; #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_88E("CHECKSUM_UNNECESSARY\n"); - } else { - skb->ip_summed = CHECKSUM_NONE; - //DBG_88E("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);