aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-07-18 20:33:08 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-07-18 20:33:49 +0700
commiteb1e0fa8599408c21f808e4108cb0e48db252d67 (patch)
tree787f58ef0dbd67f0ddd4b36bcf081694cac96087
parent5935707489a92d21061d032dc6a5c293202e7fed (diff)
bts: cosmetic: use DUMMY_VEC for padding where possible
-rw-r--r--src/bts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index 617cd785..22b4c083 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -884,7 +884,7 @@ int BTS::rcv_rach(const struct rach_ind_params *rip)
send_imm_ass_rej:
/* Allocate a bit-vector for RR Immediate Assignment [Reject] */
struct bitvec *bv = bitvec_alloc(22, tall_pcu_ctx); /* without plen */
- bitvec_unhex(bv, "2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b");
+ bitvec_unhex(bv, DUMMY_VEC); /* standard '2B'O padding */
if (rc != 0) {
LOGP(DRLCMAC, LOGL_DEBUG, "Tx Immediate Assignment Reject on AGCH\n");
@@ -970,7 +970,7 @@ void BTS::snd_dl_ass(gprs_rlcmac_tbf *tbf, bool poll, uint16_t pgroup)
LOGPTBF(tbf, LOGL_INFO, "TX: START Immediate Assignment Downlink (PCH)\n");
bitvec *immediate_assignment = bitvec_alloc(22, tall_pcu_ctx); /* without plen */
- bitvec_unhex(immediate_assignment, "2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b");
+ bitvec_unhex(immediate_assignment, DUMMY_VEC); /* standard '2B'O padding */
/* use request reference that has maximum distance to current time,
* so the assignment will not conflict with possible RACH requests. */
LOGP(DRLCMAC, LOGL_DEBUG, " - TRX=%d (%d) TS=%d TA=%d pollFN=%d\n",