remove pcu own bitvector implementation
The osmocore bitvec is exact the same, but use a pointer instead of
a reference.
Change-Id: Id8f797631d89aa12b6e48efb2dc153a3e2f059f7
diff --git a/src/bts.cpp b/src/bts.cpp
index c36647e..e25c47b 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -666,7 +666,7 @@
tsc = tbf->tsc();
}
}
- bitvec *immediate_assignment = bitvec_alloc(22) /* without plen */;
+ bitvec *immediate_assignment = bitvec_alloc(22, tall_pcu_ctx) /* without plen */;
bitvec_unhex(immediate_assignment,
"2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b");
@@ -806,7 +806,7 @@
unsigned int ts = tbf->first_ts;
LOGP(DRLCMAC, LOGL_INFO, "TX: START %s Immediate Assignment Downlink (PCH)\n", tbf_name(tbf));
- bitvec *immediate_assignment = bitvec_alloc(22); /* without plen */
+ bitvec *immediate_assignment = bitvec_alloc(22, tall_pcu_ctx); /* without plen */
bitvec_unhex(immediate_assignment, "2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b");
/* use request reference that has maximum distance to current time,
* so the assignment will not conflict with possible RACH requests. */
@@ -904,7 +904,7 @@
talloc_free(pag);
return NULL;
}
- bitvec *pag_vec = bitvec_alloc(23);
+ bitvec *pag_vec = bitvec_alloc(23, tall_pcu_ctx);
if (!pag_vec) {
msgb_free(msg);
talloc_free(pag);
@@ -1625,7 +1625,7 @@
rc = rcv_data_block(data, fn, meas, cs);
break;
case GPRS_RLCMAC_CONTROL_BLOCK:
- block = bitvec_alloc(len);
+ block = bitvec_alloc(len, tall_pcu_ctx);
if (!block)
return -ENOMEM;
bitvec_unpack(block, data);