From 587fda34bdf9dcbcb5f6d4f75fff08880bc41edd Mon Sep 17 00:00:00 2001 From: Sergei Makarenkov Date: Sat, 11 Feb 2017 13:54:53 +0300 Subject: [PATCH] Apply TX power settings --- hal/rtl8812a/rtl8812a_phycfg.c | 2 +- os_dep/linux/ioctl_cfg80211.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hal/rtl8812a/rtl8812a_phycfg.c b/hal/rtl8812a/rtl8812a_phycfg.c index 675b908..05315e3 100755 --- a/hal/rtl8812a/rtl8812a_phycfg.c +++ b/hal/rtl8812a/rtl8812a_phycfg.c @@ -723,7 +723,7 @@ PHY_GetTxPowerIndex_8812A( if ( txPower % 2 == 1 && !IS_NORMAL_CHIP(pHalData->VersionID)) --txPower; - DBG_871X("Final Tx Power(RF-%c, Channel: %d) = %d(0x%X)\n", ((RFPath==0)?'A':'B'), Channel,txPower, txPower); + // DBG_871X("Final Tx Power(RF-%c, Channel: %d) = %d(0x%X)\n", ((RFPath==0)?'A':'B'), Channel,txPower, txPower); return (u8) txPower; } diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index fc2b40d..20ee8db 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -3460,6 +3460,7 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy, value = 40; pHalData->CurrentTxPwrIdx = value; + PHY_SetTxPowerLevel8812(padapter, pHalData->CurrentChannel); #if 0 struct iwm_priv *iwm = wiphy_to_iwm(wiphy);