diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 1bd1e3aa..bf5ebf02 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -3754,10 +3754,12 @@ static int cfg80211_rtw_get_txpower(struct wiphy *wiphy, HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter); RTW_INFO("%s\n", __func__); - - // *dbm = (12); - *dbm = pHalData->CurrentTxPwrIdx; - +if(padapter->registrypriv.RegTxPowerIndexOverride){ + *dbm = padapter->registrypriv.RegTxPowerIndexOverride; + }else{ + // *dbm = (12); + *dbm = pHalData->CurrentTxPwrIdx; + } return 0; }