From 49437ec41764e01204eb519052ed699414a2c7e8 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Fri, 20 Feb 2015 10:11:36 -0600 Subject: [PATCH] rtl8188eu: Remove CONFIG_TX_MCAST2UNI This parameter is always selected. Signed-off-by: Larry Finger --- core/rtw_ap.c | 4 ---- core/rtw_sta_mgt.c | 4 ---- hal/usb_halinit.c | 9 --------- include/autoconf.h | 3 --- include/osdep_service.h | 2 -- include/sta_info.h | 2 -- include/wifi.h | 2 -- os_dep/os_intfs.c | 4 ---- os_dep/xmit_linux.c | 10 ---------- 9 files changed, 40 deletions(-) diff --git a/core/rtw_ap.c b/core/rtw_ap.c index 1e4366b..0728492 100755 --- a/core/rtw_ap.c +++ b/core/rtw_ap.c @@ -416,15 +416,12 @@ void expire_timeout_chk(struct adapter *padapter) if (chk_sta_is_alive(psta) || !psta->expire_to) { psta->expire_to = pstapriv->expire_to; psta->keep_alive_trycnt = 0; - #ifdef CONFIG_TX_MCAST2UNI psta->under_exist_checking = 0; - #endif /* CONFIG_TX_MCAST2UNI */ } else { psta->expire_to--; } #ifndef CONFIG_ACTIVE_KEEP_ALIVE_CHECK -#ifdef CONFIG_TX_MCAST2UNI #ifdef CONFIG_80211N_HT if ( (psta->flags & WLAN_STA_HT) && (psta->htpriv.agg_enable_bitmap || psta->under_exist_checking) ) { /* check sta by delba(addba) for 11n STA */ @@ -445,7 +442,6 @@ void expire_timeout_chk(struct adapter *padapter) } } #endif /* CONFIG_80211N_HT */ -#endif /* CONFIG_TX_MCAST2UNI */ #endif /* CONFIG_ACTIVE_KEEP_ALIVE_CHECK */ if (psta->expire_to <= 0) diff --git a/core/rtw_sta_mgt.c b/core/rtw_sta_mgt.c index 2fea7bb..a1752db 100755 --- a/core/rtw_sta_mgt.c +++ b/core/rtw_sta_mgt.c @@ -72,9 +72,7 @@ void _rtw_init_stainfo(struct sta_info *psta) psta->no_ht_set = 0; psta->ht_20mhz_set = 0; -#ifdef CONFIG_TX_MCAST2UNI psta->under_exist_checking = 0; -#endif /* CONFIG_TX_MCAST2UNI */ psta->keep_alive_trycnt = 0; @@ -588,9 +586,7 @@ u32 rtw_free_stainfo(struct adapter *padapter , struct sta_info *psta) psta->aid = 0; } -#ifdef CONFIG_TX_MCAST2UNI psta->under_exist_checking = 0; -#endif /* CONFIG_TX_MCAST2UNI */ #endif /* CONFIG_AP_MODE */ diff --git a/hal/usb_halinit.c b/hal/usb_halinit.c index 0512709..6646b0a 100755 --- a/hal/usb_halinit.c +++ b/hal/usb_halinit.c @@ -1570,22 +1570,13 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_MISC02); rtw_write32(Adapter,REG_MACID_NO_LINK_0,0xFFFFFFFF); rtw_write32(Adapter,REG_MACID_NO_LINK_1,0xFFFFFFFF); -#if defined(CONFIG_TX_MCAST2UNI) - #ifdef CONFIG_CHECK_AC_LIFETIME /* Enable lifetime check for the four ACs */ rtw_write8(Adapter, REG_LIFETIME_EN, 0x0F); #endif /* CONFIG_CHECK_AC_LIFETIME */ -#ifdef CONFIG_TX_MCAST2UNI rtw_write16(Adapter, REG_PKT_VO_VI_LIFE_TIME, 0x0400); /* unit: 256us. 256ms */ rtw_write16(Adapter, REG_PKT_BE_BK_LIFE_TIME, 0x0400); /* unit: 256us. 256ms */ -#else /* CONFIG_TX_MCAST2UNI */ - rtw_write16(Adapter, REG_PKT_VO_VI_LIFE_TIME, 0x3000); /* unit: 256us. 3s */ - rtw_write16(Adapter, REG_PKT_BE_BK_LIFE_TIME, 0x3000); /* unit: 256us. 3s */ -#endif /* CONFIG_TX_MCAST2UNI */ -#endif /* CONFIG_TX_MCAST2UNI */ - #ifdef CONFIG_LED _InitHWLed(Adapter); diff --git a/include/autoconf.h b/include/autoconf.h index 02b339e..7bbf6b6 100755 --- a/include/autoconf.h +++ b/include/autoconf.h @@ -159,9 +159,6 @@ #define CONFIG_BR_EXT_BRNAME "br0" #endif // CONFIG_BR_EXT -#define CONFIG_TX_MCAST2UNI // Support IP multicast->unicast -//#define CONFIG_CHECK_AC_LIFETIME // Check packet lifetime of 4 ACs. - /* * Interface Related Config */ diff --git a/include/osdep_service.h b/include/osdep_service.h index f66f569..be9cc35 100755 --- a/include/osdep_service.h +++ b/include/osdep_service.h @@ -83,9 +83,7 @@ #include #endif -#ifdef CONFIG_TX_MCAST2UNI extern int rtw_mc2u_disable; -#endif // CONFIG_TX_MCAST2UNI extern char* rtw_initmac; diff --git a/include/sta_info.h b/include/sta_info.h index bbd37d1..01ebbc2 100755 --- a/include/sta_info.h +++ b/include/sta_info.h @@ -249,9 +249,7 @@ struct sta_info { u8 dev_name[32]; #endif //CONFIG_P2P -#ifdef CONFIG_TX_MCAST2UNI u8 under_exist_checking; -#endif // CONFIG_TX_MCAST2UNI u8 keep_alive_trycnt; diff --git a/include/wifi.h b/include/wifi.h index a965d57..cdb24ad 100755 --- a/include/wifi.h +++ b/include/wifi.h @@ -1074,10 +1074,8 @@ enum P2P_PS_MODE { #define WFD_DEVINFO_PC_TDLS 0x0080 #define WFD_DEVINFO_HDCP_SUPPORT 0x0100 -#ifdef CONFIG_TX_MCAST2UNI #define IP_MCAST_MAC(mac) ((mac[0]==0x01)&&(mac[1]==0x00)&&(mac[2]==0x5e)) #define ICMPV6_MCAST_MAC(mac) ((mac[0]==0x33)&&(mac[1]==0x33)&&(mac[2]!=0xff)) -#endif // CONFIG_TX_MCAST2UNI #ifdef CONFIG_WAPI_SUPPORT #ifndef IW_AUTH_WAPI_VERSION_1 diff --git a/os_dep/os_intfs.c b/os_dep/os_intfs.c index 89a2fd1..21181a6 100755 --- a/os_dep/os_intfs.c +++ b/os_dep/os_intfs.c @@ -158,9 +158,7 @@ static int rtw_hwpwrp_detect = 0; /* HW power ping detect 0:disable , 1:enable static int rtw_hw_wps_pbc = 1; -#ifdef CONFIG_TX_MCAST2UNI int rtw_mc2u_disable = 0; -#endif /* CONFIG_TX_MCAST2UNI */ #ifdef CONFIG_80211D static int rtw_80211d = 0; @@ -262,9 +260,7 @@ module_param(rtw_fw_file_path, charp, 0644); MODULE_PARM_DESC(rtw_fw_file_path, "The path of fw image"); #endif /* CONFIG_FILE_FWIMG */ -#ifdef CONFIG_TX_MCAST2UNI module_param(rtw_mc2u_disable, int, 0644); -#endif /* CONFIG_TX_MCAST2UNI */ #ifdef CONFIG_80211D module_param(rtw_80211d, int, 0644); diff --git a/os_dep/xmit_linux.c b/os_dep/xmit_linux.c index 5ddb6a8..4f86fa6 100755 --- a/os_dep/xmit_linux.c +++ b/os_dep/xmit_linux.c @@ -270,7 +270,6 @@ static void rtw_check_xmit_resource(struct adapter *padapter, _pkt *pkt) #endif } -#ifdef CONFIG_TX_MCAST2UNI static int rtw_mlcst2unicst(struct adapter *padapter, struct sk_buff *skb) { struct sta_priv *pstapriv = &padapter->stapriv; @@ -338,16 +337,12 @@ static int rtw_mlcst2unicst(struct adapter *padapter, struct sk_buff *skb) rtw_skb_free(skb); return true; } -#endif /* CONFIG_TX_MCAST2UNI */ - int _rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev) { struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); struct xmit_priv *pxmitpriv = &padapter->xmitpriv; -#ifdef CONFIG_TX_MCAST2UNI struct mlme_priv *pmlmepriv = &padapter->mlmepriv; -#endif /* CONFIG_TX_MCAST2UNI */ s32 res = 0; #if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35)) u16 queue; @@ -367,7 +362,6 @@ int _rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev) rtw_check_xmit_resource(padapter, pkt); -#ifdef CONFIG_TX_MCAST2UNI if ( !rtw_mc2u_disable && check_fwstate(pmlmepriv, WIFI_AP_STATE) == true && ( IP_MCAST_MAC(pkt->data) @@ -380,12 +374,8 @@ int _rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev) if (res == true) { goto exit; } - } else { - /* DBG_871X("Stop M2U(%d, %d)! ", pxmitpriv->free_xmitframe_cnt, pxmitpriv->free_xmitbuf_cnt); */ - /* DBG_871X("!m2u ); */ } } -#endif /* CONFIG_TX_MCAST2UNI */ res = rtw_xmit(padapter, &pkt); if (res < 0) {