Skip to content

Commit

Permalink
Update ioctl_cfg80211.c
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed May 5, 2024
1 parent 7817fca commit 1773a2c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions os_dep/linux/ioctl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1773a2c

Please sign in to comment.