From f2298e305f632b1acc941b0381810c8f4a029dd4 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Tue, 21 May 2019 23:17:24 +0200 Subject: [PATCH] 8812au fix: Use HAL methods to apply TX power settings --- dkms.conf | 2 +- hal/rtl8812a/rtl8812a_phycfg.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dkms.conf b/dkms.conf index 1d70c91..5e62558 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="realtek-rtl88xxau" -PACKAGE_VERSION="5.3.4~20190406" +PACKAGE_VERSION="5.3.4~20190407" CLEAN="'make' clean" BUILT_MODULE_NAME[0]=88XXau PROCS_NUM=`nproc` diff --git a/hal/rtl8812a/rtl8812a_phycfg.c b/hal/rtl8812a/rtl8812a_phycfg.c index 2ad12da..c5df1b6 100644 --- a/hal/rtl8812a/rtl8812a_phycfg.c +++ b/hal/rtl8812a/rtl8812a_phycfg.c @@ -473,6 +473,8 @@ PHY_GetTxPowerLevel8812( OUT s32 *powerlevel ) { + HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); + *powerlevel = pHalData->CurrentTxPwrIdx; #if 0 HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); PMGNT_INFO pMgntInfo = &(Adapter->MgntInfo);