pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/21789 )
Change subject: Revert "rest_octets: fix encoding of 3G Early Classmark Sending Restriction" ...................................................................... Revert "rest_octets: fix encoding of 3G Early Classmark Sending Restriction" This reverts commit c9eab828ea4a9f508a013cf5cc1e0384a0e62e4c. The initial code was correct, which has also been used in osmo-bsc until recently, where it moved to use this function from libosmocore and errors started to show up in TTCN3 tests. See 3GPP TS 44.018 Section 10.5.2.34 / Table 10.5.2.34.1: "SI 3 Rest Octets information element": """ <SI3 Rest Octet> ::= ... <3G Early Classmark Sending Restriction> ... <3G Early Classmark Sending Restriction>::= L | H; """ Change-Id: I0ee48d3240c62c4d2e15063b26da7a2a617f383e Related: OS#3075 Related: SYS#4021 --- M src/gsm/gsm48_rest_octets.c 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/89/21789/1 diff --git a/src/gsm/gsm48_rest_octets.c b/src/gsm/gsm48_rest_octets.c index 3a424f7..90f2b03 100644 --- a/src/gsm/gsm48_rest_octets.c +++ b/src/gsm/gsm48_rest_octets.c @@ -611,9 +611,9 @@ /* 3G Early Classmark Sending Restriction. If H, then controlled by * early_cm_ctrl above */ if (si3->early_cm_restrict_3g) - bitvec_set_bit(&bv, H); - else bitvec_set_bit(&bv, L); + else + bitvec_set_bit(&bv, H); if (si3->si2quater_indicator) { bitvec_set_bit(&bv, H); /* indicator struct present */ -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/21789 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I0ee48d3240c62c4d2e15063b26da7a2a617f383e Gerrit-Change-Number: 21789 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pes...@sysmocom.de> Gerrit-MessageType: newchange