diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-10-21 12:15:30 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-10-21 13:48:26 +0200 |
commit | 8fb0c3dce46e553b163cc190b44f23168afc06cb (patch) | |
tree | abb1f79cd3847cd2abb571dcb5c4edcc1ed490bf /Transceiver52M | |
parent | f5e1cf8790db5db655d08b5e93e78dbfd6df29d6 (diff) |
trx_validate_config(): Fix validation of rx_sps
Change-Id: I7e932cff59335add09c76caba6f9ac1e7cf69022
Fixes: Coverity CID#188871
Diffstat (limited to 'Transceiver52M')
-rw-r--r-- | Transceiver52M/osmo-trx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp index d01a4cf..7f72c47 100644 --- a/Transceiver52M/osmo-trx.cpp +++ b/Transceiver52M/osmo-trx.cpp @@ -376,7 +376,7 @@ int trx_validate_config(struct trx_ctx *trx) /* Force 4 SPS for EDGE or multi-ARFCN configurations */ if ((trx->cfg.egprs || trx->cfg.multi_arfcn) && - (trx->cfg.tx_sps!=4 || trx->cfg.tx_sps!=4)) { + (trx->cfg.tx_sps!=4 || trx->cfg.rx_sps!=4)) { LOG(ERROR) << "EDGE and Multi-Carrier options require 4 tx and rx sps. Check you config."; return -1; } |