From 495fed9f430fffde54d79d2373272e58875e89b6 Mon Sep 17 00:00:00 2001 From: Minh-Quang Nguyen Date: Thu, 9 Jun 2016 14:50:32 -0400 Subject: l1sap.h: fix wrong L1SAP_FN2PTCCHBLOCK calculation according to TS 45.002 Table 6 We have seen that the DSP time to time rejects PTCCH message from BTS due to invalid block number. As a result, we patched FN2PTCCHBLOCK calculation according TS 45.0002 Table 6. Change-Id: I8be1c8b9159c94788857c6de5440a418739f1212 --- include/osmo-bts/l1sap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/osmo-bts/l1sap.h b/include/osmo-bts/l1sap.h index e76aca61..1f8b2a5b 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 */ -- cgit v1.2.3