pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/27637 )
Change subject: pdch is_enabled: Use API getter instead of accessing field directly ......................................................................
pdch is_enabled: Use API getter instead of accessing field directly
Change-Id: I389f42ef2e95d28643ec51771e46d083d4e20057 --- M src/gprs_bssgp_pcu.c M src/pcu_l1_if.cpp 2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/37/27637/1
diff --git a/src/gprs_bssgp_pcu.c b/src/gprs_bssgp_pcu.c index bf82fc4..8fd6d85 100644 --- a/src/gprs_bssgp_pcu.c +++ b/src/gprs_bssgp_pcu.c @@ -782,7 +782,7 @@ for (ts_no = 0; ts_no < ARRAY_SIZE(trx->pdch); ++ts_no) { const struct gprs_rlcmac_pdch *pdch = &trx->pdch[ts_no];
- if (pdch->m_is_enabled) + if (pdch_is_enabled(pdch)) num_pdch += 1; } } diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp index d0698d9..221a1f7 100644 --- a/src/pcu_l1_if.cpp +++ b/src/pcu_l1_if.cpp @@ -540,7 +540,7 @@
/* Make sure PDCH time-slot is enabled */ pdch = &bts->trx[trx].pdch[ts]; - if (!pdch->m_is_enabled) + if (!pdch_is_enabled(pdch)) return -EAGAIN;
/* If there's no TBF attached to this PDCH, we can skip Tx of PTCCH