aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-27 12:36:05 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-27 12:36:05 +0200
commitaeebe39bd1ab552974cd6dedde3c7ed9638e4fb0 (patch)
tree1da86ff34509e729e4ecea1ea5ee8e936701cbf3
parenta3f05d86095e5f67ca5b62702b0c4ba0324411a3 (diff)
gsm0808: Fix the format of the clear IE...0.1.27
This is really TLV...
-rw-r--r--src/gsm0808.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gsm0808.c b/src/gsm0808.c
index 2424d8c..3962baa 100644
--- a/src/gsm0808.c
+++ b/src/gsm0808.c
@@ -115,8 +115,9 @@ struct msgb *gsm0808_create_clear_command(uint8_t reason)
if (!msg)
return NULL;
- msg->l3h = msgb_tv_put(msg, BSSAP_MSG_BSS_MANAGEMENT, 2);
- msgb_tv_put(msg, BSS_MAP_MSG_CLEAR_CMD, reason);
+ msg->l3h = msgb_tv_put(msg, BSSAP_MSG_BSS_MANAGEMENT, 4);
+ msgb_v_put(msg, BSS_MAP_MSG_CLEAR_CMD);
+ msgb_tlv_put(msg, GSM0808_IE_CAUSE, 1, &reason);
return msg;
}