Merge pull request #216 from kimocoder/v5.3.4

V5.3.4
This commit is contained in:
Christian B 2018-10-09 13:11:08 +02:00 committed by GitHub
commit c30c56787d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,8 @@
#include <rtl8812a_hal.h> #include <rtl8812a_hal.h>
#ifdef CONFIG_RTL8812A #ifdef CONFIG_RTL8812A
#include "hal8812a_fw.h" #include "hal8812a_fw.h"
#else #endif
#ifdef CONFIG_RTL8821A
#include "hal8821a_fw.h" #include "hal8821a_fw.h"
#endif #endif
/* ------------------------------------------------------------------------- /* -------------------------------------------------------------------------
@ -548,11 +549,16 @@ FirmwareDownload8812(
#ifdef CONFIG_WOWLAN #ifdef CONFIG_WOWLAN
if (pwrpriv->wowlan_mode) { if (pwrpriv->wowlan_mode) {
#ifdef CONFIG_RTL8812A #ifdef CONFIG_RTL8812A
pFirmware->szFwBuffer = array_mp_8812a_fw_wowlan; if (IS_HARDWARE_TYPE_8812(Adapter)) {
pFirmware->ulFwLength = array_length_mp_8812a_fw_wowlan; pFirmware->szFwBuffer = array_mp_8812a_fw_wowlan;
#else pFirmware->ulFwLength = array_length_mp_8812a_fw_wowlan;
pFirmware->szFwBuffer = array_mp_8821a_fw_wowlan; }
pFirmware->ulFwLength = array_length_mp_8821a_fw_wowlan; #endif
#ifdef CONFIG_RTL8821A
if (IS_HARDWARE_TYPE_8821(Adapter)) {
pFirmware->szFwBuffer = array_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);
@ -562,11 +568,16 @@ FirmwareDownload8812(
#ifdef CONFIG_AP_WOWLAN #ifdef CONFIG_AP_WOWLAN
if (pwrpriv->wowlan_ap_mode) { if (pwrpriv->wowlan_ap_mode) {
#ifdef CONFIG_RTL8812A #ifdef CONFIG_RTL8812A
pFirmware->szFwBuffer = array_mp_8812a_fw_ap; if (IS_HARDWARE_TYPE_8812(Adapter)) {
pFirmware->ulFwLength = array_length_mp_8812a_fw_ap; pFirmware->szFwBuffer = array_mp_8812a_fw_ap;
#else pFirmware->ulFwLength = array_length_mp_8812a_fw_ap;
pFirmware->szFwBuffer = array_mp_8821a_fw_ap; }
pFirmware->ulFwLength = array_length_mp_8821a_fw_ap; #endif
#ifdef CONFIG_RTL8821A
if (IS_HARDWARE_TYPE_8821(Adapter)) {
pFirmware->szFwBuffer = array_mp_8821a_fw_ap;
pFirmware->ulFwLength = array_length_mp_8821a_fw_ap;
}
#endif #endif
RTW_INFO("%s fw: %s, size: %d\n", __func__, "AP_WoWLAN", pFirmware->ulFwLength); RTW_INFO("%s fw: %s, size: %d\n", __func__, "AP_WoWLAN", pFirmware->ulFwLength);
@ -577,11 +588,16 @@ FirmwareDownload8812(
if (pHalData->EEPROMBluetoothCoexist == _TRUE) { if (pHalData->EEPROMBluetoothCoexist == _TRUE) {
#ifdef CONFIG_RTL8812A #ifdef CONFIG_RTL8812A
pFirmware->szFwBuffer = array_mp_8812a_fw_nic_bt; if (IS_HARDWARE_TYPE_8812(pAdapter)) {
pFirmware->ulFwLength = array_length_mp_8812a_fw_nic_bt; pFirmware->szFwBuffer = array_mp_8812a_fw_nic_bt;
#else pFirmware->ulFwLength = array_length_mp_8812a_fw_nic_bt;
pFirmware->szFwBuffer = array_mp_8821a_fw_nic_bt; }
pFirmware->ulFwLength = array_length_mp_8821a_fw_nic_bt; #endif
#ifdef CONFIG_RTL8821A
if (IS_HARDWARE_TYPE_8821(pAdapter)) {
pFirmware->szFwBuffer = array_mp_8821a_fw_nic_bt;
pFirmware->ulFwLength = array_length_mp_8821a_fw_nic_bt;
}
#endif #endif
RTW_INFO("%s fw:%s, size: %d\n", __FUNCTION__, "NIC-BTCOEX", pFirmware->ulFwLength); RTW_INFO("%s fw:%s, size: %d\n", __FUNCTION__, "NIC-BTCOEX", pFirmware->ulFwLength);
@ -590,11 +606,16 @@ FirmwareDownload8812(
{ {
#ifdef CONFIG_RTL8812A #ifdef CONFIG_RTL8812A
pFirmware->szFwBuffer = array_mp_8812a_fw_nic; if (IS_HARDWARE_TYPE_8812(Adapter)) {
pFirmware->ulFwLength = array_length_mp_8812a_fw_nic; pFirmware->szFwBuffer = array_mp_8812a_fw_nic;
#else pFirmware->ulFwLength = array_length_mp_8812a_fw_nic;
pFirmware->szFwBuffer = array_mp_8821a_fw_nic; }
pFirmware->ulFwLength = array_length_mp_8821a_fw_nic; #endif
#ifdef CONFIG_RTL8821A
if (IS_HARDWARE_TYPE_8821(Adapter)) {
pFirmware->szFwBuffer = array_mp_8821a_fw_nic;
pFirmware->ulFwLength = array_length_mp_8821a_fw_nic;
}
#endif #endif
RTW_INFO("%s fw:%s, size: %d\n", __FUNCTION__, "NIC", pFirmware->ulFwLength); RTW_INFO("%s fw:%s, size: %d\n", __FUNCTION__, "NIC", pFirmware->ulFwLength);