mirror of https://gitee.com/openkylin/linux.git
staging: vt6655: clean up the tail of function device_init_registers
Aligning the code. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9f34de35d5
commit
3500a1da81
|
@ -737,14 +737,15 @@ static void device_init_registers(PSDevice pDevice)
|
||||||
CARDbRadioPowerOff(pDevice);
|
CARDbRadioPowerOff(pDevice);
|
||||||
|
|
||||||
pMgmt->eScanType = WMAC_SCAN_PASSIVE;
|
pMgmt->eScanType = WMAC_SCAN_PASSIVE;
|
||||||
// get Permanent network address
|
|
||||||
|
/* get Permanent network address */
|
||||||
SROMvReadEtherAddress(pDevice->PortOffset, pDevice->abyCurrentNetAddr);
|
SROMvReadEtherAddress(pDevice->PortOffset, pDevice->abyCurrentNetAddr);
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Network address = %pM\n",
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Network address = %pM\n",
|
||||||
pDevice->abyCurrentNetAddr);
|
pDevice->abyCurrentNetAddr);
|
||||||
|
|
||||||
// reset Tx pointer
|
/* reset Tx pointer */
|
||||||
CARDvSafeResetRx(pDevice);
|
CARDvSafeResetRx(pDevice);
|
||||||
// reset Rx pointer
|
/* reset Rx pointer */
|
||||||
CARDvSafeResetTx(pDevice);
|
CARDvSafeResetTx(pDevice);
|
||||||
|
|
||||||
if (pDevice->byLocalID <= REV_ID_VT3253_A1)
|
if (pDevice->byLocalID <= REV_ID_VT3253_A1)
|
||||||
|
@ -752,11 +753,11 @@ if (pDevice->byLocalID <= REV_ID_VT3253_A1)
|
||||||
|
|
||||||
pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled;
|
pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled;
|
||||||
|
|
||||||
// Turn On Rx DMA
|
/* Turn On Rx DMA */
|
||||||
MACvReceive0(pDevice->PortOffset);
|
MACvReceive0(pDevice->PortOffset);
|
||||||
MACvReceive1(pDevice->PortOffset);
|
MACvReceive1(pDevice->PortOffset);
|
||||||
|
|
||||||
// start the adapter
|
/* start the adapter */
|
||||||
MACvStart(pDevice->PortOffset);
|
MACvStart(pDevice->PortOffset);
|
||||||
|
|
||||||
netif_stop_queue(pDevice->dev);
|
netif_stop_queue(pDevice->dev);
|
||||||
|
|
Loading…
Reference in New Issue