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 RxLev 35.00 (expected 35.00)
lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1)
	MS current power 15 -> 13 (expected 13)
	Avg[t] is RxLev 32.00 (expected 32.00)
lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1)
	MS current power 13 -> 11 (expected 11)
	Avg[t] is RxLev 29.60 (expected 29.60)
lchan_ms_pwr_ctrl(RxLvl=-70 dBm) returns 1 (expected 1)
	MS current power 11 -> 9 (expected 9)
	Avg[t] is RxLev 31.60 (expected 31.60)
lchan_ms_pwr_ctrl(RxLvl=-50 dBm) returns 0 (expected 0)
	MS current power 15 -> 15 (expected 15)
	Avg[t] is RxLev 60.00 (expected 60.00)
lchan_ms_pwr_ctrl(RxLvl=-50 dBm) returns 0 (expected 0)
	MS current power 15 -> 15 (expected 15)
	Avg[t] is RxLev 60.00 (expected 60.00)
lchan_ms_pwr_ctrl(RxLvl=-110 dBm) returns 1 (expected 1)
	MS current power 15 -> 13 (expected 13)
	Avg[t] is RxLev 18.00 (expected 18.00)

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)


Starting test case 'test_power_loop_ci'
lchan_ms_pwr_ctrl(RxLvl=-60 dBm) returns 0 (expected 0)
	MS current power 15 -> 15 (expected 15)
lchan_ms_pwr_ctrl(RxLvl=-100 dBm) returns 1 (expected 1)
	MS current power 15 -> 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=-100 dBm) returns 1 (expected 1)
	MS current power 13 -> 11 (expected 11)
lchan_ms_pwr_ctrl(RxLvl=-60 dBm) returns 1 (expected 1)
	MS current power 11 -> 12 (expected 12)
lchan_ms_pwr_ctrl(RxLvl=-60 dBm) returns 1 (expected 1)
	MS current power 12 -> 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=-100 dBm) returns 1 (expected 1)
	MS current power 13 -> 11 (expected 11)
lchan_ms_pwr_ctrl(RxLvl=-100 dBm) returns 1 (expected 1)
	MS current power 11 -> 12 (expected 12)
lchan_ms_pwr_ctrl(RxLvl=-60 dBm) returns 1 (expected 1)
	MS current power 12 -> 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=-60 dBm) returns 1 (expected 1)
	MS current power 13 -> 14 (expected 14)

Starting test case 'test_good_threshold_convergence'
lchan_ms_pwr_ctrl(RxLvl=-78 dBm) returns 0 (expected 0)
	MS current power 9 -> 10 (expected 10)
lchan_ms_pwr_ctrl(RxLvl=-78 dBm) returns 0 (expected 0)
	MS current power 10 -> 10 (expected 10)
lchan_ms_pwr_ctrl(RxLvl=-78 dBm) returns 0 (expected 0)
	MS current power 9 -> 10 (expected 10)
lchan_ms_pwr_ctrl(RxLvl=-78 dBm) returns 0 (expected 0)
	MS current power 10 -> 10 (expected 10)
lchan_ms_pwr_ctrl(RxLvl=-78 dBm) returns 0 (expected 0)
	MS current power 9 -> 10 (expected 10)
Power loop test OK
