staging: vt6655: BSSvSecondTxData remove #if 1 else directive
There is a code alignment error after this directive realign code Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f2af99ee5b
commit
c98323a7da
@ -1001,19 +1001,17 @@ BSSvSecondTxData(
|
|||||||
}
|
}
|
||||||
|
|
||||||
spin_lock_irq(&pDevice->lock);
|
spin_lock_irq(&pDevice->lock);
|
||||||
#if 1
|
|
||||||
if ((pDevice->bLinkPass && (pMgmt->eAuthenMode < WMAC_AUTH_WPA)) || //open && sharekey linking
|
|
||||||
pDevice->fWPA_Authened) { //wpa linking
|
|
||||||
#else
|
|
||||||
if (pDevice->bLinkPass == true) {
|
|
||||||
#endif
|
|
||||||
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
|
/* open && sharekey linking */
|
||||||
add_timer(&pDevice->sTimerTxData);
|
if ((pDevice->bLinkPass && (pMgmt->eAuthenMode < WMAC_AUTH_WPA)) ||
|
||||||
return;
|
pDevice->fWPA_Authened) { /* wpa linking */
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user