aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-10-11 19:54:36 +0200
committerlaforge <laforge@osmocom.org>2020-10-15 06:07:17 +0000
commit1ab64126105a00835f62c7b629f880d10baad66a (patch)
treec66cb32c3659921e7bbb8da94aadf271d69eea53
parentca5d1e6ba606cacbe6a10f292f4ce6d50767c815 (diff)
sysinfo: Only send SI13 if PCU is connected
If no PCU is connected, we cannot be providing GPRS services, and hence should not transmit SI13. Change-Id: I54320cf8073a33ed9e35b365921df178005e8967 Closes: OS#3075
-rw-r--r--src/common/sysinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sysinfo.c b/src/common/sysinfo.c
index e35caeb4..d3efffcb 100644
--- a/src/common/sysinfo.c
+++ b/src/common/sysinfo.c
@@ -98,7 +98,7 @@ uint8_t *bts_sysinfo_get(struct gsm_bts *bts, const struct gsm_time *g_time)
tc4_sub[tc4_cnt] = SYSINFO_TYPE_2quater;
tc4_cnt += 1;
}
- if (GSM_BTS_HAS_SI(bts, SYSINFO_TYPE_13)) {
+ if (GSM_BTS_HAS_SI(bts, SYSINFO_TYPE_13) && pcu_connected()) {
tc4_sub[tc4_cnt] = SYSINFO_TYPE_13;
tc4_cnt += 1;
}