From: Larry Finger Date: Wed, 13 Jul 2011 02:46:30 +0000 (-0500) Subject: staging: rtl8192e: Remove dead code associated with CONFIG_MP X-Git-Tag: firefly_0821_release~3680^2~4313^2^2~864^2~132^2~44 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6e1acf20a7a17ef7f0442ab0a2da640477720424;p=firefly-linux-kernel-4.4.55.git staging: rtl8192e: Remove dead code associated with CONFIG_MP Signed-off-by: Larry Finger --- diff --git a/drivers/staging/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl_core.c index 49f787e05503..8be9be508a0c 100644 --- a/drivers/staging/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl_core.c @@ -1044,13 +1044,9 @@ int _rtl8192_sta_up(struct net_device *dev,bool is_silent_reset) #endif if (priv->rtllib->state != RTLLIB_LINKED) -#ifndef CONFIG_MP rtllib_softmac_start_protocol(priv->rtllib, 0); -#endif rtllib_reset_queue(priv->rtllib); -#ifndef CONFIG_MP watch_dog_timer_callback((unsigned long) dev); -#endif if (!netif_queue_stopped(dev)) @@ -1411,9 +1407,6 @@ short rtl8192_init(struct net_device *dev) struct r8192_priv *priv = rtllib_priv(dev); memset(&(priv->stats),0,sizeof(struct Stats)); -#ifdef CONFIG_MP - rtl8192_init_mp(dev); -#endif rtl8192_dbgp_flag_init(dev); @@ -2724,27 +2717,9 @@ int rtl8192_close(struct net_device *dev) int rtl8192_down(struct net_device *dev, bool shutdownrf) { -#ifdef CONFIG_MP - struct r8192_priv *priv = rtllib_priv(dev); -#endif - if (rtl8192_sta_down(dev, shutdownrf) == -1) return -1; -#ifdef CONFIG_MP - if (priv->bCckContTx) { - RT_TRACE(COMP_DBG, "####RTL819X MP####stop single cck continious TX\n"); - mpt_StopCckCoNtTx(dev); - } - if (priv->bOfdmContTx) { - RT_TRACE(COMP_DBG, "####RTL819X MP####stop single ofdm continious TX\n"); - mpt_StopOfdmContTx(dev); - } - if (priv->bSingleCarrier) { - RT_TRACE(COMP_DBG, "####RTL819X MP####stop single carrier mode\n"); - MPT_ProSetSingleCarrier(dev, false); - } -#endif return 0; } diff --git a/drivers/staging/rtl8192e/rtl_wx.c b/drivers/staging/rtl8192e/rtl_wx.c index 910a375af513..9cdc5eac33ec 100644 --- a/drivers/staging/rtl8192e/rtl_wx.c +++ b/drivers/staging/rtl8192e/rtl_wx.c @@ -23,10 +23,6 @@ #include "dot11d.h" #endif -#ifdef CONFIG_MP -#include "r8192S_mp.h" -#endif - #define RATE_COUNT 12 u32 rtl8192_rates[] = {1000000,2000000,5500000,11000000, 6000000,9000000,12000000,18000000,24000000,36000000,48000000,54000000}; @@ -458,10 +454,6 @@ static int r8192_wx_set_scan(struct net_device *dev, struct iw_request_info *a, RT_RF_POWER_STATE rtState; int ret; -#ifdef CONFIG_MP - printk("######################%s(): In MP Test Can not Scan\n",__func__); - return 0; -#endif if (!(ieee->softmac_features & IEEE_SOFTMAC_SCAN)){ if ((ieee->state >= RTLLIB_ASSOCIATING) && (ieee->state <= RTLLIB_ASSOCIATING_AUTHENTICATED)){ return 0; @@ -567,10 +559,6 @@ static int r8192_wx_set_essid(struct net_device *dev, if ((rtllib_act_scanning(priv->rtllib, false)) && !(priv->rtllib->softmac_features & IEEE_SOFTMAC_SCAN)){ ; } -#ifdef CONFIG_MP - printk("######################%s(): In MP Test Can not Set Essid\n",__func__); - return 0; -#endif if (priv->bHwRadioOff == true){ printk("=========>%s():hw radio off,or Rf state is eRfOff, return\n",__func__); return 0; @@ -759,10 +747,6 @@ static int r8192_wx_set_enc(struct net_device *dev, if ((rtllib_act_scanning(priv->rtllib, false)) && !(priv->rtllib->softmac_features & IEEE_SOFTMAC_SCAN)){ ; } -#ifdef CONFIG_MP - printk("######################%s(): In MP Test Can not Set Enc\n",__func__); - return 0; -#endif if (priv->bHwRadioOff == true) return 0; @@ -1325,48 +1309,6 @@ static const struct iw_priv_args r8192_private_args[] = { SIOCIWFIRSTPRIV + 0xc, 0, IW_PRIV_TYPE_CHAR|2047, "adhoc_peer_list" } -#ifdef CONFIG_MP - , - { - SIOCIWFIRSTPRIV + 0xe, - IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, "SetChan" - } - , - { - SIOCIWFIRSTPRIV + 0xf, - IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, "SetRate" - } - , - { - SIOCIWFIRSTPRIV + 0x10, - IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, "SetTxPower" - } - , - { - SIOCIWFIRSTPRIV + 0x11, - IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, "SetBW" - } - , - { - SIOCIWFIRSTPRIV + 0x12, - IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, "TxStart" - } - , - { - SIOCIWFIRSTPRIV + 0x13, - IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,0, "SetSingleCarrier" - } - , - { - SIOCIWFIRSTPRIV + 0x14, - IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 3, 0, "WriteRF" - } - , - { - SIOCIWFIRSTPRIV + 0x15, - IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 3, 0, "WriteMAC" - } -#endif , { SIOCIWFIRSTPRIV + 0x16, @@ -1395,16 +1337,6 @@ static iw_handler r8192_private_handler[] = { (iw_handler)r8192se_wx_set_force_lps, (iw_handler)r8192_wx_get_adhoc_peers, (iw_handler)NULL, -#ifdef CONFIG_MP - (iw_handler)r8192_wx_mp_set_chan, - (iw_handler)r8192_wx_mp_set_txrate, - (iw_handler)r8192_wx_mp_set_txpower, - (iw_handler)r8192_wx_mp_set_bw, - (iw_handler)r8192_wx_mp_set_txstart, - (iw_handler)r8192_wx_mp_set_singlecarrier, - (iw_handler)r8192_wx_mp_write_rf, - (iw_handler)r8192_wx_mp_write_mac, -#else (iw_handler)NULL, (iw_handler)NULL, (iw_handler)NULL, @@ -1413,7 +1345,6 @@ static iw_handler r8192_private_handler[] = { (iw_handler)NULL, (iw_handler)NULL, (iw_handler)NULL, -#endif (iw_handler)r8192_wx_set_PromiscuousMode, (iw_handler)r8192_wx_get_PromiscuousMode, };