mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-13 01:22:30 +00:00
Small beauty cleanup for the 8814 usb fix.
This commit is contained in:
parent
d74b406b17
commit
6334f182c1
@ -1974,24 +1974,13 @@ hal_ReadUsbModeSwitch_8814AU(
|
|||||||
IN BOOLEAN AutoloadFail
|
IN BOOLEAN AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
||||||
if (AutoloadFail)
|
if (AutoloadFail)
|
||||||
pHalData->EEPROMUsbSwitch = _FALSE;
|
pHalData->EEPROMUsbSwitch = _FALSE;
|
||||||
else
|
else
|
||||||
/* check efuse 0x08 bit2 */
|
/* check efuse 0x0E bit2 */
|
||||||
pHalData->EEPROMUsbSwitch = (PROMContent[EEPROM_USB_MODE_8814A] & BIT1) >> 1;
|
pHalData->EEPROMUsbSwitch = (PROMContent[EEPROM_USB_MODE_8814A] & BIT1) >> 1;
|
||||||
|
|
||||||
/* if(AutoloadFail)
|
|
||||||
{
|
|
||||||
UsbModeSwitch_SetUsbModeMechOn(Adapter, _FALSE);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
UsbModeSwitch_SetUsbModeMechOn(Adapter, ((PROMContent[8]&BIT1)>>1));
|
|
||||||
}*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
|
Loading…
Reference in New Issue
Block a user