From 194f6bb6a4ac52072654d7b34ba42224f3babad7 Mon Sep 17 00:00:00 2001 From: Sergei Makarenkov Date: Tue, 7 Feb 2017 21:19:14 +0300 Subject: [PATCH] Fix compilation error for RTL8812AU/RTL8821AU --- Makefile | 4 ++++ core/rtw_mp.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 5bd74e7..e733262 100755 --- a/Makefile +++ b/Makefile @@ -1686,6 +1686,10 @@ $(MODULE_NAME)-$(CONFIG_MP_INCLUDED) += core/rtw_mp.o \ ifeq ($(CONFIG_RTL8723B), y) $(MODULE_NAME)-$(CONFIG_MP_INCLUDED)+= core/rtw_bt_mp.o endif +ifeq ($(CONFIG_RTL8821A), y) +$(MODULE_NAME)-$(CONFIG_MP_INCLUDED)+= core/rtw_bt_mp.o +endif + obj-$(CONFIG_RTL8814AU) := $(MODULE_NAME).o diff --git a/core/rtw_mp.c b/core/rtw_mp.c index c761b0a..c883bc6 100644 --- a/core/rtw_mp.c +++ b/core/rtw_mp.c @@ -607,8 +607,10 @@ MPT_InitializeAdapter( if (IS_HARDWARE_TYPE_8814A(pAdapter)) { pHalData->BackUp_IG_REG_4_Chnl_Section[0] = (u1Byte)PHY_QueryBBReg(pAdapter, rA_IGI_Jaguar, bMaskByte0); pHalData->BackUp_IG_REG_4_Chnl_Section[1] = (u1Byte)PHY_QueryBBReg(pAdapter, rB_IGI_Jaguar, bMaskByte0); +#ifdef CONFIG_RTL8814A pHalData->BackUp_IG_REG_4_Chnl_Section[2] = (u1Byte)PHY_QueryBBReg(pAdapter, rC_IGI_Jaguar2, bMaskByte0); pHalData->BackUp_IG_REG_4_Chnl_Section[3] = (u1Byte)PHY_QueryBBReg(pAdapter, rD_IGI_Jaguar2, bMaskByte0); +#endif } return rtStatus;