aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-05-05 02:03:29 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-05-05 02:03:51 +0700
commitc9eab828ea4a9f508a013cf5cc1e0384a0e62e4c (patch)
treed8efe6c108c1d8993d6370717ba91ba053c978ba
parent9892945ec2f1e4b557bb07bb5538fa7fb94b338f (diff)
rest_octets: fix encoding of 3G Early Classmark Sending Restriction
-rw-r--r--src/gsm/gsm48_rest_octets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsm/gsm48_rest_octets.c b/src/gsm/gsm48_rest_octets.c
index 518572ed..3c1b22af 100644
--- a/src/gsm/gsm48_rest_octets.c
+++ b/src/gsm/gsm48_rest_octets.c
@@ -576,9 +576,9 @@ int osmo_gsm48_rest_octets_si3_encode(uint8_t *data, const struct osmo_gsm48_si_
/* 3G Early Classmark Sending Restriction. If H, then controlled by
* early_cm_ctrl above */
if (si3->early_cm_restrict_3g)
- bitvec_set_bit(&bv, L);
- else
bitvec_set_bit(&bv, H);
+ else
+ bitvec_set_bit(&bv, L);
if (si3->si2quater_indicator) {
bitvec_set_bit(&bv, H); /* indicator struct present */