aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-01-02 22:30:02 +0100
committerHarald Welte <laforge@osmocom.org>2021-01-03 14:18:58 +0100
commit886e742935ad574d4643e5bcae4ce5dc96e47471 (patch)
tree40998802fe667437bb47b6d372c9d638ffe36004
parentfdd71c822a6f59075a9f069a505264416a7d5945 (diff)
cbsp: Fix parsing DCS in decode of WRITE-REPLACE
The encoder generates the DCS IE, but the decoder forgot to parse it :/ Change-Id: I05d489f91a2cc5df372e8e695126659eedac9485
-rw-r--r--src/gsm/cbsp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gsm/cbsp.c b/src/gsm/cbsp.c
index 2037f7c7..2c7a7b72 100644
--- a/src/gsm/cbsp.c
+++ b/src/gsm/cbsp.c
@@ -678,6 +678,7 @@ static int cbsp_dec_write_repl(struct osmo_cbsp_write_replace *out, const struct
out->u.cbs.category = *TLVP_VAL(tp, CBSP_IEI_CATEGORY);
out->u.cbs.rep_period = tlvp_val16be(tp, CBSP_IEI_REP_PERIOD);
out->u.cbs.num_bcast_req = tlvp_val16be(tp, CBSP_IEI_NUM_BCAST_REQ);
+ out->u.cbs.dcs = *TLVP_VAL(tp, CBSP_IEI_DCS);
num_of_pages = *TLVP_VAL(tp, CBSP_IEI_NUM_OF_PAGES);
if (num_of_pages < 1)
return -EINVAL;