diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-12-13 17:47:11 +0100 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2022-12-16 11:05:46 +0000 |
commit | 478c150a09b76b8dae47283cbf09b6e04c3a8e14 (patch) | |
tree | 8fdd62cdc9905b186b3e58aa7626a1127bce07ce | |
parent | a621d59ea825bbfc2423ce03bd4b8773af53e522 (diff) |
bts: Adapt slot_mask to trx defined array size
struct gprs_rlcmac_bts still hardcodes it to 8, but using ARRAY_SIZE
there should aim at seeing the relation between those, and avoid having
one updated without the other.
Related: OS#5827
Change-Id: I165588ba10d8528a9a496175d8dfe9d902c89e55
-rw-r--r-- | src/bts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bts.cpp b/src/bts.cpp index 5ae0714f..06ac5a79 100644 --- a/src/bts.cpp +++ b/src/bts.cpp @@ -424,7 +424,7 @@ int bts_add_paging(struct gprs_rlcmac_bts *bts, const struct paging_req_cs *req, struct gprs_rlcmac_tbf *tbf; struct llist_head *tmp; const struct osmo_mobile_identity *mi; - uint8_t slot_mask[8]; + uint8_t slot_mask[ARRAY_SIZE(bts->trx)]; int8_t first_ts; /* must be signed */ /* First, build the MI used to page on PDCH from available subscriber info: */ |