summaryrefslogtreecommitdiffstats
path: root/src/host
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-09-19 19:04:03 +0200
committerSylvain Munaut <tnt@246tNt.com>2010-09-19 19:04:03 +0200
commit460a68c6b6f2eff658bd4e45cc9c0bf64dba7d76 (patch)
tree338c19960b02e750d08309b17316d0b36846d76e /src/host
parentcea24eba2144b948dd9d881ccbeeb77e0266799a (diff)
layer23/mobile/gsm48_rr: Fix typo in IMMEDIATE ASSIGNMENT EXTENDED
This prevented the assigment from working if you wer in the 1st channel description. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/host')
-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 ca5b7133..24360274 100644
--- a/src/host/layer23/src/mobile/gsm48_rr.c
+++ b/src/host/layer23/src/mobile/gsm48_rr.c
@@ -2611,7 +2611,7 @@ static int gsm48_rr_rx_imm_ass_ext(struct osmocom_ms *ms, struct msgb *msg)
/* decode channel description */
LOGP(DRR, LOGL_INFO, "IMMEDIATE ASSIGNMENT EXTENDED:\n");
- cd2.chan_nr = ia->chan_desc1.chan_nr;
+ cd1.chan_nr = ia->chan_desc1.chan_nr;
rsl_dec_chan_nr(cd1.chan_nr, &ch_type, &ch_subch, &ch_ts);
if (ia->chan_desc1.h0.h) {
cd1.h = 1;
@@ -2683,7 +2683,7 @@ static int gsm48_rr_rx_imm_ass_ext(struct osmocom_ms *ms, struct msgb *msg)
return gsm48_rr_dl_est(ms);
}
- /* request ref 1 */
+ /* request ref 2 */
if (gsm48_match_ra(ms, &ia->req_ref2)) {
/* channel description */
memcpy(&rr->cd_now, &cd2, sizeof(rr->cd_now));