Change in osmo-bts[master]: pcu_sock: support handling multiple BTS instances in pcu_rx()

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/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Fri Oct 9 21:49:09 UTC 2020


Vadim Yanitskiy has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/28/20528/1

diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index efee517..1df187a 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(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: 1
Gerrit-Owner: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201009/0ccfc4fd/attachment.htm>


More information about the gerrit-log mailing list