path: root/src/osmo-bts-sysmo
diff options
authorHarald Welte <laforge@gnumonks.org>2014-08-25 19:01:24 +0200
committerHarald Welte <laforge@gnumonks.org>2014-08-25 19:01:24 +0200
commit11b14fd6624a012cb6bdc49f2dea970f02fda653 (patch)
tree0793a3a3eba54b8b229597e550836eb8f0a9a941 /src/osmo-bts-sysmo
parent9e873335ec6c77df8a3ffa9fe041d8dfa4ac4ece (diff)
tx_power: Check actual TRX output power against intended value
We use the completion call-back from L1 to compare the instructed TRX board output power with the actual value as reported back from L1. Right now we only print an error message in case the values disagree. In the future we might want to either use that value as part of our calculation or send an OML alarm report to the BSC.
Diffstat (limited to 'src/osmo-bts-sysmo')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/oml.c b/src/osmo-bts-sysmo/oml.c
index 2aed31f4..b590eff3 100644
--- a/src/osmo-bts-sysmo/oml.c
+++ b/src/osmo-bts-sysmo/oml.c
@@ -1078,6 +1078,9 @@ static int chmod_txpower_compl_cb(struct gsm_bts_trx *trx, struct msgb *l1_msg,
LOGPC(DL1C, LOGL_INFO, "setTxPower %f dBm\n",
+ power_trx_change_compl(trx,
+ (int) (cc->cfgParams.setTxPowerLevel.fTxPowerLevel * 1000));
return 0;