diff mbox

Fix SI2ter scheduling

Message ID 1458214332-23726-1-git-send-email-msuraev@sysmocom.de
State Accepted
Headers show

Commit Message

Max March 17, 2016, 11:32 a.m. UTC
From: Max <msuraev@sysmocom.de>

According to 3GPP TS 05.02 § 6.3.1.3 SI2ter messages should be scheduled
in FN with TC=4 only if SI2bis messages are also available.
---
 src/common/sysinfo.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Harald Welte March 17, 2016, 12:48 p.m. UTC | #1
On Thu, Mar 17, 2016 at 12:32:12PM +0100, msuraev@sysmocom.de wrote:
> According to 3GPP TS 05.02 § 6.3.1.3 SI2ter messages should be scheduled
> in FN with TC=4 only if SI2bis messages are also available.

thanks, merged
diff mbox

Patch

diff --git a/src/common/sysinfo.c b/src/common/sysinfo.c
index f079199..ee42da2 100644
--- a/src/common/sysinfo.c
+++ b/src/common/sysinfo.c
@@ -76,9 +76,10 @@  uint8_t *bts_sysinfo_get(struct gsm_bts *bts, struct gsm_time *g_time)
 		/* iterate over 2ter, 2quater, 9, 13 */
 		/* determine how many SI we need to send on TC=4,
 		 * and which of them we send when */
-		if (BTS_HAS_SI(bts, SYSINFO_TYPE_2ter)) {
+		if (BTS_HAS_SI(bts, SYSINFO_TYPE_2ter) &&
+		    BTS_HAS_SI(bts, SYSINFO_TYPE_2bis)) {
 			tc4_sub[tc4_cnt] = SYSINFO_TYPE_2ter;
-			tc4_cnt += 1; /* 2bis */
+			tc4_cnt += 1;
 		}
 		if (BTS_HAS_SI(bts, SYSINFO_TYPE_2quater) &&
 		    (BTS_HAS_SI(bts, SYSINFO_TYPE_2bis) ||