[S] Change in osmocom-bb[master]: Correctly extract bits from SI2*/SI5*

2023-10-04 Thread laforge
laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email )

Change subject: Correctly extract bits from SI2*/SI5*
..

Correctly extract bits from SI2*/SI5*

These bits are:
 * EXT-IND
 * BA-IND
 * Multiband reporting

Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
---
M src/host/layer23/src/common/sysinfo.c
1 file changed, 26 insertions(+), 12 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  fixeria: Looks good to me, approved




diff --git a/src/host/layer23/src/common/sysinfo.c 
b/src/host/layer23/src/common/sysinfo.c
index 7af1d93..66b87eb 100644
--- a/src/host/layer23/src/common/sysinfo.c
+++ b/src/host/layer23/src/common/sysinfo.c
@@ -636,8 +636,8 @@
memcpy(s->si2_msg, si, OSMO_MIN(len, sizeof(s->si2_msg)));

/* Neighbor Cell Description */
-   s->nb_ext_ind_si2 = (si->bcch_frequency_list[0] >> 6) & 1;
-   s->nb_ba_ind_si2 = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ext_ind_si2 = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ba_ind_si2 = (si->bcch_frequency_list[0] >> 4) & 1;
decode_freq_list(s->freq, si->bcch_frequency_list,
 sizeof(si->bcch_frequency_list),
 0xce, FREQ_TYPE_NCELL_2);
@@ -657,8 +657,8 @@
memcpy(s->si2b_msg, si, OSMO_MIN(len, sizeof(s->si2b_msg)));

/* Neighbor Cell Description */
-   s->nb_ext_ind_si2bis = (si->bcch_frequency_list[0] >> 6) & 1;
-   s->nb_ba_ind_si2bis = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ext_ind_si2bis = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ba_ind_si2bis = (si->bcch_frequency_list[0] >> 4) & 1;
decode_freq_list(s->freq, si->bcch_frequency_list,
sizeof(si->bcch_frequency_list), 0xce, FREQ_TYPE_NCELL_2bis);
/* RACH Control Parameter */
@@ -675,8 +675,8 @@
memcpy(s->si2t_msg, si, OSMO_MIN(len, sizeof(s->si2t_msg)));

/* Neighbor Cell Description 2 */
-   s->nb_multi_rep_si2ter = (si->ext_bcch_frequency_list[0] >> 6) & 3;
-   s->nb_ba_ind_si2ter = (si->ext_bcch_frequency_list[0] >> 5) & 1;
+   s->nb_multi_rep_si2ter = (si->ext_bcch_frequency_list[0] >> 5) & 3;
+   s->nb_ba_ind_si2ter = (si->ext_bcch_frequency_list[0] >> 4) & 1;
decode_freq_list(s->freq, si->ext_bcch_frequency_list,
sizeof(si->ext_bcch_frequency_list), 0x8e,
FREQ_TYPE_NCELL_2ter);
@@ -780,8 +780,8 @@
memcpy(s->si5_msg, si, OSMO_MIN(len, sizeof(s->si5_msg)));

/* Neighbor Cell Description */
-   s->nb_ext_ind_si5 = (si->bcch_frequency_list[0] >> 6) & 1;
-   s->nb_ba_ind_si5 = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ext_ind_si5 = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ba_ind_si5 = (si->bcch_frequency_list[0] >> 4) & 1;
decode_freq_list(s->freq, si->bcch_frequency_list,
 sizeof(si->bcch_frequency_list),
 0xce, FREQ_TYPE_REP_5);
@@ -797,8 +797,8 @@
memcpy(s->si5b_msg, si, OSMO_MIN(len, sizeof(s->si5b_msg)));

/* Neighbor Cell Description */
-   s->nb_ext_ind_si5bis = (si->bcch_frequency_list[0] >> 6) & 1;
-   s->nb_ba_ind_si5bis = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ext_ind_si5bis = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ba_ind_si5bis = (si->bcch_frequency_list[0] >> 4) & 1;
decode_freq_list(s->freq, si->bcch_frequency_list,
 sizeof(si->bcch_frequency_list),
 0xce, FREQ_TYPE_REP_5bis);
@@ -814,8 +814,8 @@
memcpy(s->si5t_msg, si, OSMO_MIN(len, sizeof(s->si5t_msg)));

/* Neighbor Cell Description */
-   s->nb_multi_rep_si5ter = (si->bcch_frequency_list[0] >> 6) & 3;
-   s->nb_ba_ind_si5ter = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_multi_rep_si5ter = (si->bcch_frequency_list[0] >> 5) & 3;
+   s->nb_ba_ind_si5ter = (si->bcch_frequency_list[0] >> 4) & 1;
decode_freq_list(s->freq, si->bcch_frequency_list,
 sizeof(si->bcch_frequency_list),
 0x8e, FREQ_TYPE_REP_5ter);

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
Gerrit-Change-Number: 34604
Gerrit-PatchSet: 3
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-MessageType: merged


[S] Change in osmocom-bb[master]: Correctly extract bits from SI2*/SI5*

2023-10-04 Thread fixeria
Attention is currently required from: jolly.

fixeria has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email )

Change subject: Correctly extract bits from SI2*/SI5*
..


Patch Set 3: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
Gerrit-Change-Number: 34604
Gerrit-PatchSet: 3
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Comment-Date: Wed, 04 Oct 2023 12:03:51 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmocom-bb[master]: Correctly extract bits from SI2*/SI5*

2023-10-04 Thread pespin
Attention is currently required from: fixeria, jolly.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email )

Change subject: Correctly extract bits from SI2*/SI5*
..


Patch Set 3: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
Gerrit-Change-Number: 34604
Gerrit-PatchSet: 3
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: fixeria 
Gerrit-Comment-Date: Wed, 04 Oct 2023 11:20:43 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmocom-bb[master]: Correctly extract bits from SI2*/SI5*

2023-10-04 Thread jolly
Attention is currently required from: fixeria, jolly, pespin.

Hello Jenkins Builder, fixeria, pespin,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email

to look at the new patch set (#3).

The following approvals got outdated and were removed:
Code-Review+1 by pespin, Code-Review+2 by fixeria

The change is no longer submittable: Code-Review is unsatisfied now.


Change subject: Correctly extract bits from SI2*/SI5*
..

Correctly extract bits from SI2*/SI5*

These bits are:
 * EXT-IND
 * BA-IND
 * Multiband reporting

Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
---
M src/host/layer23/src/common/sysinfo.c
1 file changed, 26 insertions(+), 12 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/04/34604/3
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
Gerrit-Change-Number: 34604
Gerrit-PatchSet: 3
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: pespin 
Gerrit-Attention: fixeria 
Gerrit-MessageType: newpatchset


[S] Change in osmocom-bb[master]: Correctly extract bits from SI2*/SI5*

2023-10-03 Thread pespin
Attention is currently required from: jolly.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email )

Change subject: Correctly extract bits from SI2*/SI5*
..


Patch Set 2: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
Gerrit-Change-Number: 34604
Gerrit-PatchSet: 2
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Comment-Date: Tue, 03 Oct 2023 10:50:27 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmocom-bb[master]: Correctly extract bits from SI2*/SI5*

2023-10-03 Thread fixeria
Attention is currently required from: jolly, pespin.

fixeria has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email )

Change subject: Correctly extract bits from SI2*/SI5*
..


Patch Set 2: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
Gerrit-Change-Number: 34604
Gerrit-PatchSet: 2
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: pespin 
Gerrit-Comment-Date: Tue, 03 Oct 2023 10:19:02 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmocom-bb[master]: Correctly extract bits from SI2*/SI5*

2023-10-03 Thread jolly
Attention is currently required from: fixeria, jolly, pespin.

Hello Jenkins Builder, fixeria, pespin,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Code-Review+1 by pespin, Code-Review+2 by fixeria, Verified+1 by Jenkins Builder

The change is no longer submittable: Code-Review and Verified are unsatisfied 
now.


Change subject: Correctly extract bits from SI2*/SI5*
..

Correctly extract bits from SI2*/SI5*

These bits are:
 * EXT-IND
 * BA-IND
 * Multiband reporting

See TS 44.018 ยง 10.5.2.22 and 10.5.2.22a.

Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
---
M src/host/layer23/src/common/sysinfo.c
1 file changed, 28 insertions(+), 12 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/04/34604/2
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
Gerrit-Change-Number: 34604
Gerrit-PatchSet: 2
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Attention: fixeria 
Gerrit-Attention: pespin 
Gerrit-MessageType: newpatchset


[S] Change in osmocom-bb[master]: Correctly extract bits from SI2*/SI5*

2023-10-02 Thread fixeria
Attention is currently required from: jolly.

fixeria has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email )

Change subject: Correctly extract bits from SI2*/SI5*
..


Patch Set 1: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
Gerrit-Change-Number: 34604
Gerrit-PatchSet: 1
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria 
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Comment-Date: Tue, 03 Oct 2023 05:43:14 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmocom-bb[master]: Correctly extract bits from SI2*/SI5*

2023-10-02 Thread pespin
Attention is currently required from: jolly.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email )

Change subject: Correctly extract bits from SI2*/SI5*
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
Gerrit-Change-Number: 34604
Gerrit-PatchSet: 1
Gerrit-Owner: jolly 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin 
Gerrit-Attention: jolly 
Gerrit-Comment-Date: Mon, 02 Oct 2023 14:34:52 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[S] Change in osmocom-bb[master]: Correctly extract bits from SI2*/SI5*

2023-10-02 Thread jolly
jolly has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email )


Change subject: Correctly extract bits from SI2*/SI5*
..

Correctly extract bits from SI2*/SI5*

These bits are:
 * EXT-IND
 * BA-IND
 * Multiband reporting

Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
---
M src/host/layer23/src/common/sysinfo.c
1 file changed, 26 insertions(+), 12 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/04/34604/1

diff --git a/src/host/layer23/src/common/sysinfo.c 
b/src/host/layer23/src/common/sysinfo.c
index 7af1d93..66b87eb 100644
--- a/src/host/layer23/src/common/sysinfo.c
+++ b/src/host/layer23/src/common/sysinfo.c
@@ -636,8 +636,8 @@
memcpy(s->si2_msg, si, OSMO_MIN(len, sizeof(s->si2_msg)));

/* Neighbor Cell Description */
-   s->nb_ext_ind_si2 = (si->bcch_frequency_list[0] >> 6) & 1;
-   s->nb_ba_ind_si2 = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ext_ind_si2 = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ba_ind_si2 = (si->bcch_frequency_list[0] >> 4) & 1;
decode_freq_list(s->freq, si->bcch_frequency_list,
 sizeof(si->bcch_frequency_list),
 0xce, FREQ_TYPE_NCELL_2);
@@ -657,8 +657,8 @@
memcpy(s->si2b_msg, si, OSMO_MIN(len, sizeof(s->si2b_msg)));

/* Neighbor Cell Description */
-   s->nb_ext_ind_si2bis = (si->bcch_frequency_list[0] >> 6) & 1;
-   s->nb_ba_ind_si2bis = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ext_ind_si2bis = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ba_ind_si2bis = (si->bcch_frequency_list[0] >> 4) & 1;
decode_freq_list(s->freq, si->bcch_frequency_list,
sizeof(si->bcch_frequency_list), 0xce, FREQ_TYPE_NCELL_2bis);
/* RACH Control Parameter */
@@ -675,8 +675,8 @@
memcpy(s->si2t_msg, si, OSMO_MIN(len, sizeof(s->si2t_msg)));

/* Neighbor Cell Description 2 */
-   s->nb_multi_rep_si2ter = (si->ext_bcch_frequency_list[0] >> 6) & 3;
-   s->nb_ba_ind_si2ter = (si->ext_bcch_frequency_list[0] >> 5) & 1;
+   s->nb_multi_rep_si2ter = (si->ext_bcch_frequency_list[0] >> 5) & 3;
+   s->nb_ba_ind_si2ter = (si->ext_bcch_frequency_list[0] >> 4) & 1;
decode_freq_list(s->freq, si->ext_bcch_frequency_list,
sizeof(si->ext_bcch_frequency_list), 0x8e,
FREQ_TYPE_NCELL_2ter);
@@ -780,8 +780,8 @@
memcpy(s->si5_msg, si, OSMO_MIN(len, sizeof(s->si5_msg)));

/* Neighbor Cell Description */
-   s->nb_ext_ind_si5 = (si->bcch_frequency_list[0] >> 6) & 1;
-   s->nb_ba_ind_si5 = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ext_ind_si5 = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ba_ind_si5 = (si->bcch_frequency_list[0] >> 4) & 1;
decode_freq_list(s->freq, si->bcch_frequency_list,
 sizeof(si->bcch_frequency_list),
 0xce, FREQ_TYPE_REP_5);
@@ -797,8 +797,8 @@
memcpy(s->si5b_msg, si, OSMO_MIN(len, sizeof(s->si5b_msg)));

/* Neighbor Cell Description */
-   s->nb_ext_ind_si5bis = (si->bcch_frequency_list[0] >> 6) & 1;
-   s->nb_ba_ind_si5bis = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ext_ind_si5bis = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_ba_ind_si5bis = (si->bcch_frequency_list[0] >> 4) & 1;
decode_freq_list(s->freq, si->bcch_frequency_list,
 sizeof(si->bcch_frequency_list),
 0xce, FREQ_TYPE_REP_5bis);
@@ -814,8 +814,8 @@
memcpy(s->si5t_msg, si, OSMO_MIN(len, sizeof(s->si5t_msg)));

/* Neighbor Cell Description */
-   s->nb_multi_rep_si5ter = (si->bcch_frequency_list[0] >> 6) & 3;
-   s->nb_ba_ind_si5ter = (si->bcch_frequency_list[0] >> 5) & 1;
+   s->nb_multi_rep_si5ter = (si->bcch_frequency_list[0] >> 5) & 3;
+   s->nb_ba_ind_si5ter = (si->bcch_frequency_list[0] >> 4) & 1;
decode_freq_list(s->freq, si->bcch_frequency_list,
 sizeof(si->bcch_frequency_list),
 0x8e, FREQ_TYPE_REP_5ter);

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/34604?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ie5349464fed0a4276955235c7c87b5bcb299f20d
Gerrit-Change-Number: 34604
Gerrit-PatchSet: 1
Gerrit-Owner: jolly 
Gerrit-MessageType: newchange