This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/20528 )
Change subject: pcu_sock: support handling multiple BTS instances in pcu_rx()
......................................................................
pcu_sock: support handling multiple BTS instances in pcu_rx()
Change-Id: Icd19f803dc69138bf2fb1b0e1389b7ce1c8a9b1f
---
M src/common/pcu_sock.c
1 file changed, 1 insertion(+), 3 deletions(-)
Approvals:
pespin: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index efee517..ee5f4a6 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -812,12 +812,10 @@
int rc = 0;
struct gsm_bts *bts;
- /* FIXME: allow multiple BTS */
- if (pcu_prim->bts_nr != 0) {
+ if ((bts = gsm_bts_num(net, pcu_prim->bts_nr)) == NULL) {
LOGP(DPCU, LOGL_ERROR, "Received PCU Prim for non-existent BTS %u\n", pcu_prim->bts_nr);
return -EINVAL;
}
- bts = llist_entry(net->bts_list.next, struct gsm_bts, list);
switch (msg_type) {
case PCU_IF_MSG_DATA_REQ:
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/20528
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Icd19f803dc69138bf2fb1b0e1389b7ce1c8a9b1f
Gerrit-Change-Number: 20528
Gerrit-PatchSet: 2
Gerrit-Owner: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201010/2548ec0b/attachment.htm>