diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-10-07 21:01:04 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-10-07 21:04:19 +0200 |
commit | f681f07cd0c2d5232d6cf3c1da2192cc7bc9c576 (patch) | |
tree | 2b32dd39026de250c93e7840e8eb5cf795485a8c | |
parent | 2ccb6aef89deef7230f5019d3a4db98b7a95dc5a (diff) |
pcu_l1_if.cpp: Drop unneeded byte in Imm Ass PCH buffer
paging group is 3 bytes and imm assign with plen prepended is 23 bytes,
so there's 1 extra byte not needed and makes code confusing.
Change-Id: Id7835e5aa1506505ff54e019b38f30111f79b5dc
-rw-r--r-- | src/pcu_l1_if.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp index 6a0d58ee..b0dfcc5f 100644 --- a/src/pcu_l1_if.cpp +++ b/src/pcu_l1_if.cpp @@ -223,7 +223,7 @@ void pcu_l1if_tx_agch(bitvec * block, int plen) void pcu_l1if_tx_pch(bitvec * block, int plen, const char *imsi) { struct gprs_rlcmac_bts *bts = bts_main_data(); - uint8_t data[3+1+23]; /* prefix PLEN */ + uint8_t data[3+23]; /* paging group, prefix PLEN */ /* paging group */ if (!imsi || strlen(imsi) < 3) |