laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/33074 )
(
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: measurement: suppress unsupported tch_mode warnings for CSD
......................................................................
measurement: suppress unsupported tch_mode warnings for CSD
Change-Id: If6896b420d0fa50fa6622d24ef679ca65ef2dc50
Related: OS#1572
---
M src/common/measurement.c
1 file changed, 26 insertions(+), 0 deletions(-)
Approvals:
pespin: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/src/common/measurement.c b/src/common/measurement.c
index 459b586..6ecd797 100644
--- a/src/common/measurement.c
+++ b/src/common/measurement.c
@@ -72,7 +72,15 @@
/* No DTX allowed; SUB=FULL, therefore measurements at all frame numbers are
* SUB */
return true;
+ case GSM48_CMODE_DATA_12k0: /* TCH/F9.6 */
+ case GSM48_CMODE_DATA_6k0: /* TCH/F4.8 */
+ /* FIXME: In case of data traffic channels TCH/F9.6 and TCH/F4.8 the
+ * RXQUAL_SUB report shall include measurements on the TDMA frames given
+ * in the table of subclause 8.3 only if L2 fill frames have been received
+ * as FACCH/F frames at the corresponding frame positions. */
default:
+ if (lchan->rsl_cmode == RSL_CMOD_SPD_DATA)
+ return false;
LOGPLCFN(lchan, fn, DMEAS, LOGL_ERROR, "Unsupported lchan->tch_mode %u\n", lchan->tch_mode);
break;
}
@@ -87,7 +95,15 @@
/* No DTX allowed; SUB=FULL, therefore measurements at all frame numbers are
* SUB */
return true;
+ case GSM48_CMODE_DATA_6k0: /* TCH/H4.8 */
+ case GSM48_CMODE_DATA_3k6: /* TCH/H2.4 */
+ /* FIXME: In case of data traffic channels TCH/H4.8 and TCH/H2.4 the
+ * RXQUAL_SUB report shall include measurements on the TDMA frames given
+ * in the table of subclause 8.3 only if L2 fill frames have been received
+ * as FACCH/H frames at the corresponding frame positions. */
default:
+ if (lchan->rsl_cmode == RSL_CMOD_SPD_DATA)
+ return false;
LOGPLCFN(lchan, fn, DMEAS, LOGL_ERROR, "Unsupported lchan->tch_mode %u\n", lchan->tch_mode);
break;
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/33074
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: If6896b420d0fa50fa6622d24ef679ca65ef2dc50
Gerrit-Change-Number: 33074
Gerrit-PatchSet: 7
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/33667 )
Change subject: fix bts_supports_cm(): properly check feature flags for VGCS/VBS
......................................................................
fix bts_supports_cm(): properly check feature flags for VGCS/VBS
cm->spd_ind can take only three values defined in enum rsl_cmod_spd:
0000 0001 RSL_CMOD_SPD_SPEECH
0000 0010 RSL_CMOD_SPD_DATA
0000 0011 RSL_CMOD_SPD_SIGN
According to 3GPP TS 48.058, section 9.3.6, all other values are
reserved, so expecting RSL_CMOD_CRT_TCH_{GROUP,BCAST}_{Lm,Bm} there
is wrong. These values are part of enum rsl_cmod_crt, so the right
field would be not cm->spd_ind, but cm->chan_rt.
Let's check these channel types in a separate stage, before checking
the requested codec. Group them with VAMOS specific types for the
sake of consistency.
Change-Id: I914c84be04da819df9e60e2f5ecc5bac9b61b2e5
Fixes: 44c94fdea "validate RSL "channel rate and type" against VGCS/VBS flags"
Related: OS#4851
---
M src/common/bts.c
1 file changed, 42 insertions(+), 14 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
osmith: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
diff --git a/src/common/bts.c b/src/common/bts.c
index 0ca4b6d..18f742d 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -791,6 +791,13 @@
return true;
case RSL_CMOD_SPD_SPEECH:
break;
+ case RSL_CMOD_SPD_DATA:
+ default:
+ return false;
+ }
+
+ /* Stage 1: check support for the requested channel type */
+ switch (cm->chan_rt) {
case RSL_CMOD_CRT_TCH_GROUP_Bm:
case RSL_CMOD_CRT_TCH_GROUP_Lm:
if (!osmo_bts_has_feature(bts->features, BTS_FEAT_VGCS))
@@ -801,21 +808,19 @@
if (!osmo_bts_has_feature(bts->features, BTS_FEAT_VBS))
return false;
break;
- case RSL_CMOD_SPD_DATA:
- default:
- return false;
- }
-
- /* Before the requested pchan/cm combination can be checked, we need to
- * convert it to a feature identifier we can check */
- switch (cm->chan_rt) {
case RSL_CMOD_CRT_OSMO_TCH_VAMOS_Bm:
+ case RSL_CMOD_CRT_OSMO_TCH_VAMOS_Lm:
if (!osmo_bts_has_feature(bts->features, BTS_FEAT_VAMOS))
return false;
- /* fall-through */
- case RSL_CMOD_CRT_TCH_Bm:
+ break;
+ }
+
+ /* Stage 2: check support for the requested codec */
+ switch (cm->chan_rt) {
+ case RSL_CMOD_CRT_OSMO_TCH_VAMOS_Bm:
case RSL_CMOD_CRT_TCH_GROUP_Bm:
case RSL_CMOD_CRT_TCH_BCAST_Bm:
+ case RSL_CMOD_CRT_TCH_Bm:
switch (cm->chan_rate) {
case RSL_CMOD_SP_GSM1:
feature = BTS_FEAT_SPEECH_F_V1;
@@ -833,12 +838,9 @@
break;
case RSL_CMOD_CRT_OSMO_TCH_VAMOS_Lm:
- if (!osmo_bts_has_feature(bts->features, BTS_FEAT_VAMOS))
- return false;
- /* fall-through */
- case RSL_CMOD_CRT_TCH_Lm:
case RSL_CMOD_CRT_TCH_GROUP_Lm:
case RSL_CMOD_CRT_TCH_BCAST_Lm:
+ case RSL_CMOD_CRT_TCH_Lm:
switch (cm->chan_rate) {
case RSL_CMOD_SP_GSM1:
feature = BTS_FEAT_SPEECH_H_V1;
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/33667
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I914c84be04da819df9e60e2f5ecc5bac9b61b2e5
Gerrit-Change-Number: 33667
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged