path: root/include
diff options
authorNeels Hofmeyr <neels@hofmeyr.de>2018-04-16 14:48:34 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-04-16 14:55:40 +0200
commitbea9c3330e949957b5e3a379e0bb75c767816e57 (patch)
tree9b99ceb1e6adbf7d502c76e8d08d95f915ee3735 /include
parentdd4a6518f2118775c12affc02ac1e0dcc848d89a (diff)
osmo-bts-trx: fix MS power loop: remove extranous increment
Increment chan_state->meas.rssi_valid_count only once, to record only valid rssi values, instead of interleaving with zero at every second element. Theoretically, the index within chan_state->meas.rssi[] could even walk past the array end, practically didn't only because the array size is even. To be superficially safer, change the condition from == to >=.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions