Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205791
b: refs/heads/master
c: feaf03d
h: refs/heads/master
i:
  205789: e70728c
  205787: 0529441
  205783: 07659a5
  205775: 5d95aa7
  205759: fabad6a
v: v3
  • Loading branch information
Andres More authored and Greg Kroah-Hartman committed Jul 8, 2010
1 parent 770e1a0 commit 2f0649c
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 38 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3adb149d2b118654305591db6a28df9e1798550f
refs/heads/master: feaf03d3b42290f4c275ebf11641759bf4e1c458
3 changes: 0 additions & 3 deletions trunk/drivers/staging/vt6656/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -794,13 +794,10 @@ typedef struct __device_info {
// command timer
struct timer_list sTimerCommand;

//2007-0115-01<Add>by MikeLiu
#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??
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/vt6656/main_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1239,10 +1239,7 @@ device_release_WPADEV(pDevice);
del_timer(&pDevice->sTimerCommand);
del_timer(&pMgmt->sTimerSecondCallback);

//2007-0115-02<Add>by MikeLiu
#ifdef TxInSleep
del_timer(&pDevice->sTimerTxData);
#endif

if (pDevice->bDiversityRegCtlON) {
del_timer(&pDevice->TimerSQ3Tmax1);
Expand Down
8 changes: 1 addition & 7 deletions trunk/drivers/staging/vt6656/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,17 +290,11 @@ BOOL PSbSendNullPacket(void *hDeviceContext)
return FALSE;
}

//2007-0115-03<Add>by MikeLiu
#ifdef TxInSleep
if ((pDevice->bEnablePSMode == FALSE) &&
(pDevice->fTxDataInSleep == FALSE)){
return FALSE;
}
#else
if (pDevice->bEnablePSMode == FALSE) {
return FALSE;
}
#endif

memset(pMgmt->pbyPSPacketPool, 0, sizeof(STxMgmtPacket) + WLAN_NULLDATA_FR_MAXLEN);
pTxPacket = (PSTxMgmtPacket)pMgmt->pbyPSPacketPool;
pTxPacket->p80211Header = (PUWLAN_80211HDR)((PBYTE)pTxPacket + sizeof(STxMgmtPacket));
Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/staging/vt6656/ttype.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@

/******* Common definitions and typedefs ***********************************/

//2007-0115-05<Add>by MikeLiu
#ifndef TxInSleep
#define TxInSleep
#endif

//DavidWang

//2007-0814-01<Add>by MikeLiu
#ifndef Safe_Close
#define Safe_Close
Expand Down
5 changes: 1 addition & 4 deletions trunk/drivers/staging/vt6656/usbpipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,10 +784,7 @@ s_nsBulkOutIoCompleteWrite(
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Write %d bytes\n",(int)ulBufLen);
pDevice->ulBulkOutBytesWrite += ulBufLen;
pDevice->ulBulkOutContCRCError = 0;
//2007-0115-06<Add>by MikeLiu
#ifdef TxInSleep
pDevice->nTxDataTimeCout = 0;
#endif
pDevice->nTxDataTimeCout = 0;

} else {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"BULK Out failed %d\n", status);
Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/staging/vt6656/wcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,6 @@ void vRunCommand(void *hDeviceContext)
netif_wake_queue(pDevice->dev);
}

//2007-0115-07<Add>by MikeLiu
#ifdef TxInSleep
if(pDevice->IsTxDataTrigger != FALSE) { //TxDataTimer is not triggered at the first time
// printk("Re-initial TxDataTimer****\n");
del_timer(&pDevice->sTimerTxData);
Expand All @@ -759,7 +757,6 @@ void vRunCommand(void *hDeviceContext)
}
pDevice->IsTxDataTrigger = TRUE;
add_timer(&pDevice->sTimerTxData);
#endif

}
else if(pMgmt->eCurrState < WMAC_STATE_ASSOCPENDING) {
Expand Down Expand Up @@ -1276,8 +1273,6 @@ void vResetCommandTimer(void *hDeviceContext)
pDevice->bCmdClear = FALSE;
}

//2007-0115-08<Add>by MikeLiu
#ifdef TxInSleep
void BSSvSecondTxData(void *hDeviceContext)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
Expand Down Expand Up @@ -1313,5 +1308,3 @@ void BSSvSecondTxData(void *hDeviceContext)
add_timer(&pDevice->sTimerTxData);
return;
}
#endif

3 changes: 0 additions & 3 deletions trunk/drivers/staging/vt6656/wcmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ WCMDvCommandThread(
);
*/

//2007-0115-09<Add>by MikeLiu
#ifdef TxInSleep
void BSSvSecondTxData(void *hDeviceContext);
#endif

#endif /* __WCMD_H__ */
3 changes: 0 additions & 3 deletions trunk/drivers/staging/vt6656/wmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,16 +373,13 @@ void vMgrObjectInit(void *hDeviceContext)
pDevice->sTimerCommand.function = (TimerFunction)vRunCommand;
pDevice->sTimerCommand.expires = RUN_AT(HZ);

//2007-0115-10<Add>by MikeLiu
#ifdef TxInSleep
init_timer(&pDevice->sTimerTxData);
pDevice->sTimerTxData.data = (unsigned long)pDevice;
pDevice->sTimerTxData.function = (TimerFunction)BSSvSecondTxData;
pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback
pDevice->fTxDataInSleep = FALSE;
pDevice->IsTxDataTrigger = FALSE;
pDevice->nTxDataTimeCout = 0;
#endif

pDevice->cbFreeCmdQueue = CMD_Q_SIZE;
pDevice->uCmdDequeueIdx = 0;
Expand Down

0 comments on commit 2f0649c

Please sign in to comment.