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 6, 2024
1 parent a96ff76 commit 0033867
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions os_dep/linux/ioctl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -3697,11 +3697,11 @@ if(type == NL80211_TX_POWER_FIXED) {
}else{
padapter->registrypriv.RegTxPowerIndexOverride = 0;
}*/
// if(mbm>=0 && mbm<=63){
// padapter->registrypriv.RegTxPowerIndexOverride = mbm;
// RTW_WARN("OpenHD:interpreting %d mBm as tx power index override",(int)mbm);
// }
// RTW_INFO("OpenHD:Tx power index override is %d",padapter->registrypriv.RegTxPowerIndexOverride);
if(mbm>=0 && mbm<=63){
padapter->registrypriv.RegTxPowerIndexOverride = mbm;
RTW_WARN("OpenHD:interpreting %d mBm as tx power index override",(int)mbm);
}
RTW_INFO("OpenHD:Tx power index override is %d",padapter->registrypriv.RegTxPowerIndexOverride);

pHalData->CurrentTxPwrIdx = value;
rtw_hal_set_tx_power_level(padapter, pHalData->current_channel);
Expand Down Expand Up @@ -3734,12 +3734,7 @@ if(type == NL80211_TX_POWER_FIXED) {
return -EOPNOTSUPP;
}
#endif
if(padapter->registrypriv.RegTxPowerIndexOverride){
*dbm = padapter->registrypriv.RegTxPowerIndexOverride;
}else{
// *dbm = (12);
*dbm = pHalData->CurrentTxPwrIdx;
}
RTW_INFO("%s\n", __func__);
return 0;
}

Expand Down

0 comments on commit 0033867

Please sign in to comment.