mirror of https://gitee.com/openkylin/linux.git
staging/vt6656: coding style fix in BSSvSecondTxData
this function seemed bit more coding style fix... The following fixes: remove spaces at start of line and use tabs use space between if and ( give a space in a multiplication operation use space after = and another variable/constant Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6bab320b40
commit
a984fa5540
|
@ -1273,32 +1273,32 @@ void vResetCommandTimer(void *hDeviceContext)
|
||||||
|
|
||||||
void BSSvSecondTxData(void *hDeviceContext)
|
void BSSvSecondTxData(void *hDeviceContext)
|
||||||
{
|
{
|
||||||
PSDevice pDevice = (PSDevice)hDeviceContext;
|
PSDevice pDevice = (PSDevice)hDeviceContext;
|
||||||
PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
|
PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
|
||||||
|
|
||||||
pDevice->nTxDataTimeCout++;
|
pDevice->nTxDataTimeCout++;
|
||||||
|
|
||||||
if(pDevice->nTxDataTimeCout<4) //don't tx data if timer less than 40s
|
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__,
|
||||||
// printk("mike:%s-->no data Tx not exceed the desired Time as %d\n",__FUNCTION__,
|
// (int)pDevice->nTxDataTimeCout);
|
||||||
// (int)pDevice->nTxDataTimeCout);
|
pDevice->sTimerTxData.expires = RUN_AT(10 * HZ); //10s callback
|
||||||
pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback
|
add_timer(&pDevice->sTimerTxData);
|
||||||
add_timer(&pDevice->sTimerTxData);
|
return;
|
||||||
return;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
spin_lock_irq(&pDevice->lock);
|
spin_lock_irq(&pDevice->lock);
|
||||||
//is wap_supplicant running successful OR only open && sharekey mode!
|
//is wap_supplicant running successful OR only open && sharekey mode!
|
||||||
if(((pDevice->bLinkPass ==TRUE)&&(pMgmt->eAuthenMode < WMAC_AUTH_WPA)) || //open && sharekey linking
|
if (((pDevice->bLinkPass == TRUE) &&
|
||||||
(pDevice->fWPA_Authened == TRUE)) { //wpa linking
|
(pMgmt->eAuthenMode < WMAC_AUTH_WPA)) || //open && sharekey linking
|
||||||
// printk("mike:%s-->InSleep Tx Data Procedure\n",__FUNCTION__);
|
(pDevice->fWPA_Authened == TRUE)) { //wpa linking
|
||||||
pDevice->fTxDataInSleep = TRUE;
|
// printk("mike:%s-->InSleep Tx Data Procedure\n",__FUNCTION__);
|
||||||
PSbSendNullPacket(pDevice); //send null packet
|
pDevice->fTxDataInSleep = TRUE;
|
||||||
pDevice->fTxDataInSleep = FALSE;
|
PSbSendNullPacket(pDevice); //send null packet
|
||||||
}
|
pDevice->fTxDataInSleep = FALSE;
|
||||||
spin_unlock_irq(&pDevice->lock);
|
}
|
||||||
|
spin_unlock_irq(&pDevice->lock);
|
||||||
|
|
||||||
pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback
|
pDevice->sTimerTxData.expires = RUN_AT(10 * HZ); //10s callback
|
||||||
add_timer(&pDevice->sTimerTxData);
|
add_timer(&pDevice->sTimerTxData);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue