Attention is currently required from: fixeria.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/27509 )
Change subject: struct gsm_encr: store alg_id in human-readable format
......................................................................
Patch Set 2: Code-Review-1
(6 comments)
Commit Message:
https://gerrit.osmocom.org/c/osmo-bsc/+/27509/comment/bf470c69_00486e0f
PS2, Line 30: ciph_mod_set = (lchan->encr.alg_id << 1) | 1;
well, in Cipher Mode Setting, it has to be (a5_n - 1) << 1
File include/osmocom/bsc/gsm_data.h:
https://gerrit.osmocom.org/c/osmo-bsc/+/27509/comment/cea727ab_cb86df91
PS2, Line 613: uint8_t alg_id;
alg_id is named after the Algorithm Identifier IE.
I'd like to rename this member to 'a5_n' or 'alg_a5_n', because
- we use alg_id in various places, e.g. osmo-msc uses it as N+1, and it also exists in libosmocore
- to me 'a5_n' most clearly indicates which representation it is storing.
- with a rename the patch shows every place in the code that uses this and we can easily verify that all of them are correct.
File src/osmo-bsc/abis_rsl.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/27509/comment/5e15b741_e994f735
PS2, Line 163: switch (*out++) {
nitpick (ok, it's correct, but IMHO the code becomes far less head scratchy when we don't ++ inline in conditionals. i'd have put a local variable there / maybe do the switch on the human readable a5_n)
https://gerrit.osmocom.org/c/osmo-bsc/+/27509/comment/542605d6_0f78c2f8
PS2, Line 663: if (lchan->encr.alg_id > 0) {
(here is a place where i have to think twice, I thought it is incorrect at first; if the name were a5_n, it would have helped me here)
File src/osmo-bsc/gsm_04_08_rr.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/27509/comment/0617ceb0_a94f7a3d
PS2, Line 596: _id
"- 1" is missing now! 44.018 10.5.2.9
File src/osmo-bsc/gsm_08_08.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/27509/comment/43598214_90ded639
PS2, Line 88: chosen_encr
also rename this to chosen_a5_n?
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/27509
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Ieb50c9a352cfa5481aebac2379e0a461663543ec
Gerrit-Change-Number: 27509
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 14 Mar 2022 11:40:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
fixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/27429 )
Change subject: osmo-bts-trx: do not run osmo_{fr,hr}_check_sid() on FACCH/U frames
......................................................................
osmo-bts-trx: do not run osmo_{fr,hr}_check_sid() on FACCH/U frames
It makes no sense to perform the SID codeword lookup in signalling
frames (FACCH), because it can be present only in speech frames.
Change-Id: I2f8137993acfe8a8add3fc2af276e5eb4da1605e
Related: SYS#5853
---
M src/osmo-bts-trx/sched_lchan_tchf.c
M src/osmo-bts-trx/sched_lchan_tchh.c
2 files changed, 3 insertions(+), 3 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
diff --git a/src/osmo-bts-trx/sched_lchan_tchf.c b/src/osmo-bts-trx/sched_lchan_tchf.c
index b100fab..1bf67a0 100644
--- a/src/osmo-bts-trx/sched_lchan_tchf.c
+++ b/src/osmo-bts-trx/sched_lchan_tchf.c
@@ -119,7 +119,7 @@
: tch_mode) {
case GSM48_CMODE_SPEECH_V1: /* FR */
rc = gsm0503_tch_fr_decode(tch_data, *bursts_p, 1, 0, &n_errors, &n_bits_total);
- if (rc >= 0)
+ if (rc == GSM_FR_BYTES) /* only for valid *speech* frames */
lchan_set_marker(osmo_fr_check_sid(tch_data, rc), lchan); /* DTXu */
break;
case GSM48_CMODE_SPEECH_EFR: /* EFR */
diff --git a/src/osmo-bts-trx/sched_lchan_tchh.c b/src/osmo-bts-trx/sched_lchan_tchh.c
index 51a0b90..27880c1 100644
--- a/src/osmo-bts-trx/sched_lchan_tchh.c
+++ b/src/osmo-bts-trx/sched_lchan_tchh.c
@@ -147,8 +147,8 @@
*/
rc = gsm0503_tch_hr_decode(tch_data, *bursts_p,
fn_is_odd, &n_errors, &n_bits_total);
- if (rc >= 0) /* DTXu */
- lchan_set_marker(osmo_hr_check_sid(tch_data, rc), lchan);
+ if (rc == (GSM_HR_BYTES + 1)) /* only for valid *speech* frames */
+ lchan_set_marker(osmo_hr_check_sid(tch_data, rc), lchan); /* DTXu */
break;
case GSM48_CMODE_SPEECH_AMR: /* AMR */
/* the first FN 0,8,17 or 1,9,18 defines that CMI is included
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/27429
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I2f8137993acfe8a8add3fc2af276e5eb4da1605e
Gerrit-Change-Number: 27429
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
Attention is currently required from: pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/27507 )
Change subject: gsm48_make_ho_cmd(): optionally add Cipher Mode Setting IE
......................................................................
Patch Set 1: Code-Review+2
(2 comments)
Patchset:
PS1:
1+1=2
File src/osmo-bsc/gsm_04_08_rr.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/27507/comment/938c9477_36a3ea80
PS1, Line 585: (new_lchan->encr.alg_id - 2) << 1
> for some reason i did not see that patch yet
Because I forgot to submit it yesterday, and your comment reminded me about that :D
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/27507
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I1d270e82d0a9b12897fc94dae4e8999aa132a22f
Gerrit-Change-Number: 27507
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 14 Mar 2022 11:28:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: neels, pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/27486 )
Change subject: rsl: fix wrong IE being checked in rsl_rx_chan_activ()
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
> Didn't I already review this patch somewhere else?
This is the original patch for master. There are two cherry-picks:
* 2021q1: https://gerrit.osmocom.org/c/osmo-bts/+/27501
* 2021q4: https://gerrit.osmocom.org/c/osmo-bts/+/27502
P.S. Gerrit shows all these patches in 'Cherry picks' section on the right sidebar.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/27486
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Icd8ccfd6e37ded8966125a473b5003845ba87fec
Gerrit-Change-Number: 27486
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 14 Mar 2022 11:27:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment