Staging: rtl8192su: remove RTL8192S_DISABLE_FW_DM ifdefs
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 3 Jul 2009 14:07:00 +0000 (16:07 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:38 +0000 (12:01 -0700)
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192su/Makefile
drivers/staging/rtl8192su/ieee80211/ieee80211_softmac_wx.c
drivers/staging/rtl8192su/r8192S_phy.c
drivers/staging/rtl8192su/r8192U_core.c

index 784d96f609285f0349a32aabaf31516a6ee77e60..fb026f12d461d1f55a99d63975e53ca5eb7e3de2 100644 (file)
@@ -12,7 +12,6 @@ EXTRA_CFLAGS += -DRTL8190_Download_Firmware_From_Header=1
 EXTRA_CFLAGS += -DRTL8192S_PREPARE_FOR_NORMAL_RELEASE
 EXTRA_CFLAGS += -DRTL8192SU_DISABLE_IQK=1
 
-EXTRA_CFLAGS += -DRTL8192S_DISABLE_FW_DM=0
 EXTRA_CFLAGS += -DDISABLE_BB_RF=0
 EXTRA_CFLAGS += -DRTL8192SU_USE_PARAM_TXPWR=0
 EXTRA_CFLAGS += -DRTL8192SU_FPGA_UNSPECIFIED_NETWORK=0
index 9e7f957742266ea9bebcd1aad90221a69e285900..0d4bcc8ec4ff59afff9874045347d3698fb8bda1 100644 (file)
@@ -330,13 +330,11 @@ void ieee80211_wx_sync_scan_wq(struct work_struct *work)
 #ifndef RTL8192SE
        ieee->InitialGainHandler(ieee->dev,IG_Backup);
 #endif
-#if(RTL8192S_DISABLE_FW_DM == 0)
        if (ieee->SetFwCmdHandler)
        {
                ieee->SetFwCmdHandler(ieee->dev, FW_CMD_DIG_HALT);
                ieee->SetFwCmdHandler(ieee->dev, FW_CMD_HIGH_PWR_DISABLE);
        }
-#endif
        if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT && ieee->pHTInfo->bCurBW40MHz) {
                b40M = 1;
                chan_offset = ieee->pHTInfo->CurSTAExtChnlOffset;
@@ -361,13 +359,11 @@ void ieee80211_wx_sync_scan_wq(struct work_struct *work)
 #ifndef RTL8192SE
        ieee->InitialGainHandler(ieee->dev,IG_Restore);
 #endif
-#if(RTL8192S_DISABLE_FW_DM == 0)
        if (ieee->SetFwCmdHandler)
        {
                ieee->SetFwCmdHandler(ieee->dev, FW_CMD_DIG_RESUME);
                ieee->SetFwCmdHandler(ieee->dev, FW_CMD_HIGH_PWR_ENABLE);
        }
-#endif
        ieee->state = IEEE80211_LINKED;
        ieee->link_change(ieee->dev);
        // To prevent the immediately calling watch_dog after scan.
index 36f5e247c91c968cd1a7a99704c92488ac28dfd2..b8586e64585d49d1cc2eae5acfea5d4641281321 100644 (file)
@@ -3074,7 +3074,6 @@ PHY_ScanOperationBackup8192S(
 
 
 
-#if(RTL8192S_DISABLE_FW_DM == 0)
 
        if(!Adapter->bDriverStopped)
        {
@@ -3103,7 +3102,6 @@ PHY_ScanOperationBackup8192S(
                                break;
                }
        }
-#endif
 }
 #endif
 
index 908adc2534f75fe1b5ef7ab67c9eb7c792edcffc..21d9d76bbebadb39625638c14e3916730c98ecaa 100644 (file)
@@ -7014,9 +7014,6 @@ start:
        //
        rtl8192SU_MacConfigAfterFwDownload(dev);
 
-#if (RTL8192S_DISABLE_FW_DM == 1)
-       write_nic_dword(dev, WFM5, FW_DM_DISABLE);
-#endif
        //priv->bLbusEnable = TRUE;
        //if(priv->RegRfOff == TRUE)
        //      priv->eRFPowerState = eRfOff;