mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-01-06 06:06:09 +00:00
fix USB3 mode switch for 8814
This commit is contained in:
parent
c3d92cfb08
commit
d74b406b17
@ -1974,16 +1974,24 @@ hal_ReadUsbModeSwitch_8814AU(
|
|||||||
IN BOOLEAN AutoloadFail
|
IN BOOLEAN AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
if(AutoloadFail)
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
||||||
|
if (AutoloadFail)
|
||||||
|
pHalData->EEPROMUsbSwitch = _FALSE;
|
||||||
|
else
|
||||||
|
/* check efuse 0x08 bit2 */
|
||||||
|
pHalData->EEPROMUsbSwitch = (PROMContent[EEPROM_USB_MODE_8814A] & BIT1) >> 1;
|
||||||
|
|
||||||
|
/* if(AutoloadFail)
|
||||||
{
|
{
|
||||||
UsbModeSwitch_SetUsbModeMechOn(Adapter, _FALSE);
|
UsbModeSwitch_SetUsbModeMechOn(Adapter, _FALSE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
UsbModeSwitch_SetUsbModeMechOn(Adapter, ((PROMContent[8]&BIT1)>>1));
|
UsbModeSwitch_SetUsbModeMechOn(Adapter, ((PROMContent[8]&BIT1)>>1));
|
||||||
}
|
}*/
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
|
Loading…
Reference in New Issue
Block a user