Change in osmo-bts[master]: introduce l1sap_get_common_sapi() function

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.org
Sun Mar 22 13:07:12 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/17568 )


Change subject: introduce l1sap_get_common_sapi() function
......................................................................

introduce l1sap_get_common_sapi() function

Change-Id: I2901ae88812933978e6c6302a4656e8d6f95ec52
---
M include/osmo-bts/l1sap.h
M src/common/l1sap.c
2 files changed, 13 insertions(+), 5 deletions(-)



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

diff --git a/include/osmo-bts/l1sap.h b/include/osmo-bts/l1sap.h
index 1fcf78c..31a70e1 100644
--- a/include/osmo-bts/l1sap.h
+++ b/include/osmo-bts/l1sap.h
@@ -144,4 +144,6 @@
 
 int is_ccch_for_agch(struct gsm_bts_trx *trx, uint32_t fn);
 
+enum l1sap_common_sapi l1sap_get_common_sapi(uint8_t chan_nr, uint8_t link_id, uint32_t u32Fn);
+
 #endif /* L1SAP_H */
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 673430d..3fa4a6b 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -298,12 +298,8 @@
 	{ 0, NULL }
 };
 
-static enum l1sap_common_sapi get_common_sapi_ph_data(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap)
+enum l1sap_common_sapi l1sap_get_common_sapi(uint8_t chan_nr, uint8_t link_id, uint32_t u32Fn)
 {
-	uint8_t link_id = l1sap->u.data.link_id;
-	uint8_t chan_nr = l1sap->u.data.chan_nr;
-	uint32_t u32Fn = l1sap->u.data.fn;
-
 	if (L1SAP_IS_CHAN_TCHF(chan_nr))
 		return L1SAP_COMMON_SAPI_TCH_F;
 
@@ -331,6 +327,16 @@
 	return L1SAP_COMMON_SAPI_UNKNOWN;
 }
 
+static enum l1sap_common_sapi get_common_sapi_ph_data(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap)
+{
+	uint8_t link_id = l1sap->u.data.link_id;
+	uint8_t chan_nr = l1sap->u.data.chan_nr;
+	uint32_t u32Fn = l1sap->u.data.fn;
+
+	return l1sap_get_common_sapi(chan_nr, link_id, u32Fn);
+}
+
+
 static enum l1sap_common_sapi get_common_sapi_by_trx_prim(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap)
 {
 	/* Only downlink prims are relevant */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/17568
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I2901ae88812933978e6c6302a4656e8d6f95ec52
Gerrit-Change-Number: 17568
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200322/21ead45a/attachment.htm>


More information about the gerrit-log mailing list