// command timer
        struct timer_list       sTimerCommand;
-#ifdef TxInSleep
        struct timer_list       sTimerTxData;
        unsigned long nTxDataTimeCout;
        bool fTxDataInSleep;
        bool IsTxDataTrigger;
-#endif
 
 #ifdef WPA_SM_Transtatus
        bool fWPA_Authened;           //is WPA/WPA-PSK or WPA2/WPA2-PSK authen??
 
                bScheduleCommand((void *)pDevice, WLAN_CMD_DISASSOCIATE, NULL);
                mdelay(30);
        }
-#ifdef TxInSleep
+
        del_timer(&pDevice->sTimerTxData);
-#endif
        del_timer(&pDevice->sTimerCommand);
        del_timer(&pMgmt->sTimerSecondCallback);
        if (pDevice->bDiversityRegCtlON) {
        pLastTD->pTDInfo->skb = skb;
        pLastTD->pTDInfo->byFlags = 0;
        pLastTD->pTDInfo->byFlags |= TD_FLAGS_NETIF_SKB;
-#ifdef TxInSleep
        pDevice->nTxDataTimeCout = 0; //2008-8-21 chester <add> for send null packet
-#endif
+
        if (AVAIL_TD(pDevice, TYPE_AC0DMA) <= 1)
                netif_stop_queue(dev);
 
 
        if (!pDevice->bLinkPass)
                return false;
 
-#ifdef TxInSleep
        if (!pDevice->bEnablePSMode && !pDevice->fTxDataInSleep)
                return false;
-#else
-       if (!pDevice->bEnablePSMode)
-               return false;
-#endif
+
        if (pDevice->bEnablePSMode) {
                for (uIdx = 0; uIdx < TYPE_MAXTD; uIdx++) {
                        if (pDevice->iTDUsed[uIdx] != 0)
 
 
        pDevice->apCurrTD[TYPE_TXDMA0] = pFrstTD->next;
 
-#ifdef TxInSleep
        pDevice->nTxDataTimeCout = 0; //2008-8-21 chester <add> for send null packet
-#endif
 
        // Poll Transmit the adapter
        MACvTransmit0(pDevice->PortOffset);
 
 
 /******* Common definitions and typedefs ***********************************/
 
-#ifndef TxInSleep
-#define TxInSleep
-#endif
-
 #ifndef WPA_SM_Transtatus
 #define WPA_SM_Transtatus
 #endif
 
                        if (netif_queue_stopped(pDevice->dev))
                                netif_wake_queue(pDevice->dev);
 
-#ifdef TxInSleep
                        if (pDevice->IsTxDataTrigger) {    //TxDataTimer is not triggered at the first time
                                del_timer(&pDevice->sTimerTxData);
                                init_timer(&pDevice->sTimerTxData);
 
                        pDevice->IsTxDataTrigger = true;
                        add_timer(&pDevice->sTimerTxData);
-#endif
+
                } else if (pMgmt->eCurrState < WMAC_STATE_ASSOCPENDING) {
                        printk("WLAN_ASSOCIATE_WAIT:Association Fail???\n");
                } else if (pDevice->byLinkWaitCount <= 4) {    //mike add:wait another 2 sec if associated_frame delay!
        pDevice->bCmdClear = false;
 }
 
-#ifdef TxInSleep
 void
 BSSvSecondTxData(
        void *hDeviceContext
                add_timer(&pDevice->sTimerTxData);
                return;
        }
-#endif
 
        void *hDeviceContext,
        unsigned int MSecond
 );
-#ifdef TxInSleep
+
 void
 BSSvSecondTxData(
        void *hDeviceContext
 );
-#endif
 
 #endif //__WCMD_H__
 
        pDevice->sTimerCommand.function = (TimerFunction)vCommandTimer;
        pDevice->sTimerCommand.expires = RUN_AT(HZ);
 
-#ifdef TxInSleep
        init_timer(&pDevice->sTimerTxData);
        pDevice->sTimerTxData.data = (unsigned long) pDevice;
        pDevice->sTimerTxData.function = (TimerFunction)BSSvSecondTxData;
        pDevice->fTxDataInSleep = false;
        pDevice->IsTxDataTrigger = false;
        pDevice->nTxDataTimeCout = 0;
-#endif
 
        pDevice->cbFreeCmdQueue = CMD_Q_SIZE;
        pDevice->uCmdDequeueIdx = 0;