mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-22 02:21:28 +07:00
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
@ -736,30 +736,31 @@ static void device_init_registers(PSDevice pDevice)
|
|||||||
if (pDevice->bHWRadioOff || pDevice->bRadioControlOff)
|
if (pDevice->bHWRadioOff || pDevice->bRadioControlOff)
|
||||||
CARDbRadioPowerOff(pDevice);
|
CARDbRadioPowerOff(pDevice);
|
||||||
|
|
||||||
pMgmt->eScanType = WMAC_SCAN_PASSIVE;
|
pMgmt->eScanType = WMAC_SCAN_PASSIVE;
|
||||||
// get Permanent network address
|
|
||||||
SROMvReadEtherAddress(pDevice->PortOffset, pDevice->abyCurrentNetAddr);
|
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Network address = %pM\n",
|
|
||||||
pDevice->abyCurrentNetAddr);
|
|
||||||
|
|
||||||
// reset Tx pointer
|
/* get Permanent network address */
|
||||||
CARDvSafeResetRx(pDevice);
|
SROMvReadEtherAddress(pDevice->PortOffset, pDevice->abyCurrentNetAddr);
|
||||||
// reset Rx pointer
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Network address = %pM\n",
|
||||||
CARDvSafeResetTx(pDevice);
|
pDevice->abyCurrentNetAddr);
|
||||||
|
|
||||||
if (pDevice->byLocalID <= REV_ID_VT3253_A1)
|
/* reset Tx pointer */
|
||||||
MACvRegBitsOn(pDevice->PortOffset, MAC_REG_RCR, RCR_WPAERR);
|
CARDvSafeResetRx(pDevice);
|
||||||
|
/* reset Rx pointer */
|
||||||
|
CARDvSafeResetTx(pDevice);
|
||||||
|
|
||||||
pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled;
|
if (pDevice->byLocalID <= REV_ID_VT3253_A1)
|
||||||
|
MACvRegBitsOn(pDevice->PortOffset, MAC_REG_RCR, RCR_WPAERR);
|
||||||
|
|
||||||
// Turn On Rx DMA
|
pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled;
|
||||||
MACvReceive0(pDevice->PortOffset);
|
|
||||||
MACvReceive1(pDevice->PortOffset);
|
|
||||||
|
|
||||||
// start the adapter
|
/* Turn On Rx DMA */
|
||||||
MACvStart(pDevice->PortOffset);
|
MACvReceive0(pDevice->PortOffset);
|
||||||
|
MACvReceive1(pDevice->PortOffset);
|
||||||
|
|
||||||
netif_stop_queue(pDevice->dev);
|
/* start the adapter */
|
||||||
|
MACvStart(pDevice->PortOffset);
|
||||||
|
|
||||||
|
netif_stop_queue(pDevice->dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void device_init_diversity_timer(PSDevice pDevice)
|
static void device_init_diversity_timer(PSDevice pDevice)
|
||||||
|
Loading…
Reference in New Issue
Block a user