Skip to content

Commit

Permalink
urghs, we cannot simply update the x20. Go back to the previous appro…
Browse files Browse the repository at this point in the history
…ach of setting tx power - but leave the better approach in there for the future
  • Loading branch information
Consti10 committed Apr 22, 2024
1 parent 2891599 commit 366be8f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions os_dep/linux/ioctl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -3692,12 +3692,16 @@ if(type == NL80211_TX_POWER_FIXED) {
// every country. Note, however, that the card is now not doing what linux tells it - but honestly, someone decided
// to just map dBm values to some power index at some point anyways.
// 22.April: Simplify -> use tpi override value (and dummy tx power commits)
int openhd_override_tx_power_index=get_openhd_override_tx_power_index();
/*int openhd_override_tx_power_index=get_openhd_override_tx_power_index();
if(openhd_override_tx_power_index>=0 && openhd_override_tx_power_index<=63){
padapter->registrypriv.RegTxPowerIndexOverride = openhd_override_tx_power_index;
}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);

pHalData->CurrentTxPwrIdx = value;
Expand Down

0 comments on commit 366be8f

Please sign in to comment.