summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-12-15 18:56:52 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2015-12-25 09:33:09 +0100
commitaaec61d5f6e64daff909ecd9bba3a229839ef501 (patch)
treea4a2706e000bd95f82a24da47e2867b59dd2657f
parent6918c08d0cf511d1c984edea00795f1e669660d7 (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);