summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-12-15 18:56:52 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2016-09-25 08:11:44 +0200
commit423012e1768380d5fbecab2da93936743ad96b1b (patch)
treef5ed02602c9631ad6846c3d338426910d97c7315
parent623c51c843b98d5af4d670f9bc2048770d9195d7 (diff)
mobile: Fixes of frequency redefinition handling
-rw-r--r--src/host/layer23/src/mobile/gsm48_rr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/layer23/src/mobile/gsm48_rr.c b/src/host/layer23/src/mobile/gsm48_rr.c
index eb1ffe27..c1c81b32 100644
--- a/src/host/layer23/src/mobile/gsm48_rr.c
+++ b/src/host/layer23/src/mobile/gsm48_rr.c
@@ -3644,12 +3644,12 @@ static int gsm48_rr_rx_frq_redef(struct osmocom_ms *ms, struct msgb *msg)
LOGP(DRR, LOGL_INFO, " using cell channel description)\n");
cd.cell_desc_lv[0] = 16;
- memcpy(cd.cell_desc_lv + 1, v, 17);
+ memcpy(cd.cell_desc_lv + 1, v, 16);
sprintf(cd.cell_desc_origin, "last FREQUENCY REDIFINITION");
}
/* render channel "after time" */
- cause = gsm48_rr_render_ma(ms, &rr->cd_now, ma, &ma_len);
+ cause = gsm48_rr_render_ma(ms, &cd, ma, &ma_len);
if (cause)
return gsm48_rr_tx_rr_status(ms, cause);