aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tx_power/tx_power_test.err
AgeCommit message (Collapse)AuthorFilesLines
2020-08-18common: tx_power: Fix bug in power ramp up below max-initial valuePau Espin Pedrol1-8/+0
See previous commit adding the unit test about the error description and expected behavior. The wrong behavior appeared due to step_size_mdB being unsigned and the whole addition at the left side of the comparison being turned too as unsigned, hence a small negative value turning into a big positive value, and tpp->p_total_cur_mdBm not being updated to speed up the power ramping. Change-Id: I36a34362ebc90226fd8e1e190f898c3718fd923a
2020-08-18tests: tx_power: Extend and add extra power_ramp buggy casePau Espin Pedrol1-0/+21
The test code is extended to support testing more than one ramping loop. A new test ramping test is added, which shows buggy behavior, since being in -10dBm and targeting 10dBm with max_initial_pout_mdBm=0 should immediatelly jump -10->0 and then slowly ramp up (2dB) 0->10dB. The issue will be fixed in next commit. Change-Id: I5adc9008ac415eb23274755fc8270df8eebdc6fb
2020-07-20tx_power_test: Disable using color in log outputPau Espin Pedrol1-37/+36
It's really not used and only adds unneeded variabilities to output. Change-Id: I5aa95997c8df4ce5ba8271acae99c45f68b96e11
2020-06-18Introduce LOGPTRX macro and use it in tx_power.cPau Espin Pedrol1-37/+37
Rename OCTPHY specific LOPGTRX macro to avoid redefine conflicts. Change-Id: I02878611501aca51039e2ac7e35784ccb93b1db6
2017-02-07Add new unit-test for transmit power computation codeHarald Welte1-0/+38
This tests the computations of the tx_power.c code using sysmoBTS 1002, 1020, 1100 and 2050 values, as well as the power ramping code. Change-Id: I1cc88d4c6edff326e2e67d4f869aa02c9b2b1ac5