Testing power loop... Starting test case 'test_power_loop' lchan_ms_pwr_ctrl(RxLvl=-60 dBm) returns 0 (expected 0) MS current power 15 -> 15 (expected 15) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 15 -> 13 (expected 13) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 13 -> 11 (expected 11) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 11 -> 9 (expected 9) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 9 -> 7 (expected 7) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 7 -> 5 (expected 5) lchan_ms_pwr_ctrl(RxLvl=-75 dBm) returns 0 (expected 0) MS current power 5 -> 5 (expected 5) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 5 -> 3 (expected 3) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 3 -> 2 (expected 2) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 2 -> 2 (expected 2) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 2 -> 0 (expected 0) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 0 -> 0 (expected 0) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 0 -> 30 (expected 30) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 30 -> 29 (expected 29) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 29 -> 29 (expected 29) lchan_ms_pwr_ctrl(RxLvl=-75 dBm) returns 0 (expected 0) MS current power 29 -> 29 (expected 29) lchan_ms_pwr_ctrl(RxLvl=-45 dBm) returns 1 (expected 1) MS current power 29 -> 30 (expected 1) lchan_ms_pwr_ctrl(RxLvl=-45 dBm) returns 1 (expected 1) MS current power 30 -> 31 (expected 5) lchan_ms_pwr_ctrl(RxLvl=-45 dBm) returns 1 (expected 1) MS current power 31 -> 0 (expected 9) lchan_ms_pwr_ctrl(RxLvl=-73 dBm) returns 1 (expected 1) MS current power 0 -> 1 (expected 10) lchan_ms_pwr_ctrl(RxLvl=-77 dBm) returns 1 (expected 1) MS current power 1 -> 0 (expected 9) lchan_ms_pwr_ctrl(RxLvl=-73 dBm) returns 1 (expected 1) MS current power 0 -> 14 (expected 14) lchan_ms_pwr_ctrl(RxLvl=-60 dBm) returns 0 (expected 0) MS current power 14 -> 14 (expected 14) lchan_ms_pwr_ctrl(RxLvl=-40 dBm) returns 1 (expected 1) MS current power 14 -> 15 (expected 15) Starting test case 'test_pf_algo_ewma' lchan_ms_pwr_ctrl(RxLvl=-75 dBm) returns 0 (expected 0) MS current power 15 -> 15 (expected 15) Avg[t] is -75.00 dBm (expected -75.00 dBm) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 15 -> 13 (expected 13) Avg[t] is -78.00 dBm (expected -78.00 dBm) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 13 -> 11 (expected 11) Avg[t] is -80.40 dBm (expected -80.40 dBm) lchan_ms_pwr_ctrl(RxLvl=-70 dBm) returns 1 (expected 1) MS current power 11 -> 9 (expected 9) Avg[t] is -78.40 dBm (expected -78.40 dBm) lchan_ms_pwr_ctrl(RxLvl=-50 dBm) returns 0 (expected 0) MS current power 15 -> 15 (expected 15) Avg[t] is -50.00 dBm (expected -50.00 dBm) lchan_ms_pwr_ctrl(RxLvl=-50 dBm) returns 0 (expected 0) MS current power 15 -> 15 (expected 15) Avg[t] is -50.00 dBm (expected -50.00 dBm) lchan_ms_pwr_ctrl(RxLvl=-110 dBm) returns 1 (expected 1) MS current power 15 -> 13 (expected 13) Avg[t] is -92.00 dBm (expected -92.00 dBm) Starting test case 'test_power_hysteresis' lchan_ms_pwr_ctrl(RxLvl=-75 dBm) returns 0 (expected 0) MS current power 15 -> 15 (expected 15) lchan_ms_pwr_ctrl(RxLvl=-72 dBm) returns 0 (expected 0) MS current power 15 -> 15 (expected 15) lchan_ms_pwr_ctrl(RxLvl=-78 dBm) returns 0 (expected 0) MS current power 15 -> 15 (expected 15) lchan_ms_pwr_ctrl(RxLvl=-75 dBm) returns 0 (expected 0) MS current power 15 -> 15 (expected 15) lchan_ms_pwr_ctrl(RxLvl=-70 dBm) returns 0 (expected 0) MS current power 15 -> 15 (expected 15) lchan_ms_pwr_ctrl(RxLvl=-80 dBm) returns 0 (expected 0) MS current power 15 -> 15 (expected 15) lchan_ms_pwr_ctrl(RxLvl=-85 dBm) returns 1 (expected 1) MS current power 15 -> 13 (expected 13) Starting test case 'test_power_ctrl_interval' test_power_ctrl_interval(): power control interval is now 0 lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 15 -> 13 (expected 13) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 13 -> 11 (expected 11) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 11 -> 9 (expected 9) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 9 -> 7 (expected 7) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 7 -> 5 (expected 5) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 5 -> 3 (expected 3) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 3 -> 2 (expected 2) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 1) MS current power 2 -> 2 (expected 2) test_power_ctrl_interval(): power control interval is now 1 lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 15 -> 13 (expected 13) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 13 -> 13 (expected 13) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 13 -> 11 (expected 11) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 11 -> 11 (expected 11) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 11 -> 9 (expected 9) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 9 -> 9 (expected 9) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 9 -> 7 (expected 7) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 7 -> 7 (expected 7) test_power_ctrl_interval(): power control interval is now 2 lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 15 -> 13 (expected 13) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 13 -> 13 (expected 13) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 13 -> 13 (expected 13) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 13 -> 13 (expected 13) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1) MS current power 13 -> 11 (expected 11) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 11 -> 11 (expected 11) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 11 -> 11 (expected 11) lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 0 (expected 0) MS current power 11 -> 11 (expected 11) Power loop test OK