summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-07-21 08:51:11 +0200
committerHarald Welte <laforge@gnumonks.org>2019-07-21 08:53:50 +0200
commit6b9df297dc9124c90ae40d231b3b1cab0f3ed916 (patch)
tree0a1d60080f36c5b1785729a204327b481f17b284 /src
parenta044bb6275492fbddbd0864e1820ccb08a70d107 (diff)
mobile: Fix encoding of cause in gsm480_tx_release_compl()
Change-Id: Iba2ace7d82be5677d28b25f60ab0312fed76f5e5 Closes: CID#198577, CID#198576, CID#198575
Diffstat (limited to 'src')
-rw-r--r--src/host/layer23/src/mobile/gsm480_ss.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/host/layer23/src/mobile/gsm480_ss.c b/src/host/layer23/src/mobile/gsm480_ss.c
index edc9c97..b114aa6 100644
--- a/src/host/layer23/src/mobile/gsm480_ss.c
+++ b/src/host/layer23/src/mobile/gsm480_ss.c
@@ -399,10 +399,10 @@ static int gsm480_tx_release_compl(struct gsm_trans *trans, uint8_t cause)
if (cause) {
uint8_t *tlv = msgb_put(msg, 4);
- *tlv = GSM48_IE_CAUSE;
- *tlv = 2;
- *tlv = 0x80 | cause;
- *tlv = 0x80 | GSM48_CAUSE_LOC_USER;
+ tlv[0] = GSM48_IE_CAUSE;
+ tlv[1] = 2;
+ tlv[2] = 0x80 | cause;
+ tlv[3] = 0x80 | GSM48_CAUSE_LOC_USER;
}
return gsm480_to_mm(msg, trans, GSM48_MMSS_DATA_REQ);
}