[PATCH] osmo-bts[master]: LC15: l1sap.h: fix wrong L1SAP_FN2PTCCHBLOCK calculation

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

Minh-Quang Nguyen gerrit-no-reply at lists.osmocom.org
Mon Jun 13 13:29:16 UTC 2016


Review at  https://gerrit.osmocom.org/234

LC15: l1sap.h: fix wrong L1SAP_FN2PTCCHBLOCK calculation

Change-Id: I8be1c8b9159c94788857c6de5440a418739f1212
---
M include/osmo-bts/l1sap.h
1 file changed, 1 insertion(+), 1 deletion(-)


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

diff --git a/include/osmo-bts/l1sap.h b/include/osmo-bts/l1sap.h
index e76aca6..1f8b2a5 100644
--- a/include/osmo-bts/l1sap.h
+++ b/include/osmo-bts/l1sap.h
@@ -25,7 +25,7 @@
 
 /* PTCH layout from frame number */
 #define L1SAP_FN2MACBLOCK(fn) ((fn % 52) / 4)
-#define L1SAP_FN2PTCCHBLOCK(fn) ((fn / 52) & 7)
+#define L1SAP_FN2PTCCHBLOCK(fn) ((fn / 104) & 3)
 #define L1SAP_IS_PTCCH(fn) ((fn % 52) == 12)
 
 /* subslot from any chan_nr */

-- 
To view, visit https://gerrit.osmocom.org/234
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8be1c8b9159c94788857c6de5440a418739f1212
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Minh-Quang Nguyen <minh-quang.nguyen at nutaq.com>



More information about the gerrit-log mailing list