Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318004
b: refs/heads/master
c: a984fa5
h: refs/heads/master
v: v3
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Jul 17, 2012
1 parent ded5f4f commit 009eeb2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 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: 6bab320b40fa59f5dd6468c1bc6204fbaac68700
refs/heads/master: a984fa55400b647f88bb3ee64d0cf932f7b510cd
56 changes: 28 additions & 28 deletions trunk/drivers/staging/vt6656/wcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1273,32 +1273,32 @@ void vResetCommandTimer(void *hDeviceContext)

void BSSvSecondTxData(void *hDeviceContext)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
PSMgmtObject pMgmt = &(pDevice->sMgmtObj);

pDevice->nTxDataTimeCout++;

if(pDevice->nTxDataTimeCout<4) //don't tx data if timer less than 40s
{
// printk("mike:%s-->no data Tx not exceed the desired Time as %d\n",__FUNCTION__,
// (int)pDevice->nTxDataTimeCout);
pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback
add_timer(&pDevice->sTimerTxData);
return;
}

spin_lock_irq(&pDevice->lock);
//is wap_supplicant running successful OR only open && sharekey mode!
if(((pDevice->bLinkPass ==TRUE)&&(pMgmt->eAuthenMode < WMAC_AUTH_WPA)) || //open && sharekey linking
(pDevice->fWPA_Authened == TRUE)) { //wpa linking
// printk("mike:%s-->InSleep Tx Data Procedure\n",__FUNCTION__);
pDevice->fTxDataInSleep = TRUE;
PSbSendNullPacket(pDevice); //send null packet
pDevice->fTxDataInSleep = FALSE;
}
spin_unlock_irq(&pDevice->lock);

pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback
add_timer(&pDevice->sTimerTxData);
return;
PSDevice pDevice = (PSDevice)hDeviceContext;
PSMgmtObject pMgmt = &(pDevice->sMgmtObj);

pDevice->nTxDataTimeCout++;

if (pDevice->nTxDataTimeCout < 4) { //don't tx data if timer less than 40s
// printk("mike:%s-->no data Tx not exceed the desired Time as %d\n",__FUNCTION__,
// (int)pDevice->nTxDataTimeCout);
pDevice->sTimerTxData.expires = RUN_AT(10 * HZ); //10s callback
add_timer(&pDevice->sTimerTxData);
return;
}

spin_lock_irq(&pDevice->lock);
//is wap_supplicant running successful OR only open && sharekey mode!
if (((pDevice->bLinkPass == TRUE) &&
(pMgmt->eAuthenMode < WMAC_AUTH_WPA)) || //open && sharekey linking
(pDevice->fWPA_Authened == TRUE)) { //wpa linking
// printk("mike:%s-->InSleep Tx Data Procedure\n",__FUNCTION__);
pDevice->fTxDataInSleep = TRUE;
PSbSendNullPacket(pDevice); //send null packet
pDevice->fTxDataInSleep = FALSE;
}
spin_unlock_irq(&pDevice->lock);

pDevice->sTimerTxData.expires = RUN_AT(10 * HZ); //10s callback
add_timer(&pDevice->sTimerTxData);
return;
}

0 comments on commit 009eeb2

Please sign in to comment.