1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2025-01-07 06:35:29 +00:00

cleanup fix

This commit is contained in:
farid 2018-10-09 12:55:58 +02:00
parent dced504a95
commit 1a04d7c442

View File

@ -550,14 +550,14 @@ FirmwareDownload8812(
if (pwrpriv->wowlan_mode) { if (pwrpriv->wowlan_mode) {
#ifdef CONFIG_RTL8812A #ifdef CONFIG_RTL8812A
if (IS_HARDWARE_TYPE_8812(Adapter)) { if (IS_HARDWARE_TYPE_8812(Adapter)) {
pFirmware->szFwBuffer = array_mp_8812a_fw_wowlan; pFirmware->szFwBuffer = array_mp_8812a_fw_wowlan;
pFirmware->ulFwLength = array_length_mp_8812a_fw_wowlan; pFirmware->ulFwLength = array_length_mp_8812a_fw_wowlan;
} }
#endif #endif
#ifdef CONFIG_RTL8821A #ifdef CONFIG_RTL8821A
if (IS_HARDWARE_TYPE_8821(Adapter)) { if (IS_HARDWARE_TYPE_8821(Adapter)) {
pFirmware->szFwBuffer = array_mp_8821a_fw_wowlan; pFirmware->szFwBuffer = array_mp_8821a_fw_wowlan;
pFirmware->ulFwLength = array_length_mp_8821a_fw_wowlan; pFirmware->ulFwLength = array_length_mp_8821a_fw_wowlan;
} }
#endif #endif
RTW_INFO("%s fw:%s, size: %d\n", __func__, "WoWLAN", pFirmware->ulFwLength); RTW_INFO("%s fw:%s, size: %d\n", __func__, "WoWLAN", pFirmware->ulFwLength);
@ -569,14 +569,14 @@ FirmwareDownload8812(
if (pwrpriv->wowlan_ap_mode) { if (pwrpriv->wowlan_ap_mode) {
#ifdef CONFIG_RTL8812A #ifdef CONFIG_RTL8812A
if (IS_HARDWARE_TYPE_8812(Adapter)) { if (IS_HARDWARE_TYPE_8812(Adapter)) {
pFirmware->szFwBuffer = array_mp_8812a_fw_ap; pFirmware->szFwBuffer = array_mp_8812a_fw_ap;
pFirmware->ulFwLength = array_length_mp_8812a_fw_ap; pFirmware->ulFwLength = array_length_mp_8812a_fw_ap;
} }
#endif #endif
#ifdef CONFIG_RTL8821A #ifdef CONFIG_RTL8821A
if (IS_HARDWARE_TYPE_8821(Adapter)) { if (IS_HARDWARE_TYPE_8821(Adapter)) {
pFirmware->szFwBuffer = array_mp_8821a_fw_ap; pFirmware->szFwBuffer = array_mp_8821a_fw_ap;
pFirmware->ulFwLength = array_length_mp_8821a_fw_ap; pFirmware->ulFwLength = array_length_mp_8821a_fw_ap;
} }
#endif #endif
@ -589,14 +589,14 @@ FirmwareDownload8812(
#ifdef CONFIG_RTL8812A #ifdef CONFIG_RTL8812A
if (IS_HARDWARE_TYPE_8812(pAdapter)) { if (IS_HARDWARE_TYPE_8812(pAdapter)) {
pFirmware->szFwBuffer = array_mp_8812a_fw_nic_bt; pFirmware->szFwBuffer = array_mp_8812a_fw_nic_bt;
pFirmware->ulFwLength = array_length_mp_8812a_fw_nic_bt; pFirmware->ulFwLength = array_length_mp_8812a_fw_nic_bt;
} }
#endif #endif
#ifdef CONFIG_RTL8821A #ifdef CONFIG_RTL8821A
if (IS_HARDWARE_TYPE_8821(pAdapter)) { if (IS_HARDWARE_TYPE_8821(pAdapter)) {
pFirmware->szFwBuffer = array_mp_8821a_fw_nic_bt; pFirmware->szFwBuffer = array_mp_8821a_fw_nic_bt;
pFirmware->ulFwLength = array_length_mp_8821a_fw_nic_bt; pFirmware->ulFwLength = array_length_mp_8821a_fw_nic_bt;
} }
#endif #endif
@ -607,14 +607,14 @@ FirmwareDownload8812(
#ifdef CONFIG_RTL8812A #ifdef CONFIG_RTL8812A
if (IS_HARDWARE_TYPE_8812(Adapter)) { if (IS_HARDWARE_TYPE_8812(Adapter)) {
pFirmware->szFwBuffer = array_mp_8812a_fw_nic; pFirmware->szFwBuffer = array_mp_8812a_fw_nic;
pFirmware->ulFwLength = array_length_mp_8812a_fw_nic; pFirmware->ulFwLength = array_length_mp_8812a_fw_nic;
} }
#endif #endif
#ifdef CONFIG_RTL8821A #ifdef CONFIG_RTL8821A
if (IS_HARDWARE_TYPE_8821(Adapter)) { if (IS_HARDWARE_TYPE_8821(Adapter)) {
pFirmware->szFwBuffer = array_mp_8821a_fw_nic; pFirmware->szFwBuffer = array_mp_8821a_fw_nic;
pFirmware->ulFwLength = array_length_mp_8821a_fw_nic; pFirmware->ulFwLength = array_length_mp_8821a_fw_nic;
} }
#endif #endif