aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDieter Spaar <spaar@mirider.augusta.de>2012-07-12 18:22:59 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-04-07 20:08:14 +0200
commit3ebfeab799ce381b925578aa58a1260b1e14de31 (patch)
treeb1b51fdc969a268defc8306859eaa0d1fb830698
parentb9ee62fbed161754eb857337b0633f14d2afd7b1 (diff)
ganc: implement sending of GA-CSR RELEASE
-rw-r--r--openbsc/src/osmo-ganc/ganc_server.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/openbsc/src/osmo-ganc/ganc_server.c b/openbsc/src/osmo-ganc/ganc_server.c
index 08cdbae55..1dc096f5d 100644
--- a/openbsc/src/osmo-ganc/ganc_server.c
+++ b/openbsc/src/osmo-ganc/ganc_server.c
@@ -211,6 +211,23 @@ static int tx_csr_dl_direct_xfer(struct gan_peer *peer, struct msgb *msg)
return unc_peer_tx(peer, msg);
}
+/* 10.1.19 GA-CSR RELEASE */
+
+static int tx_csr_release(struct gan_peer *peer, uint8_t cause)
+{
+ struct msgb *msg = unc_msgb_alloc();
+
+ printf("<- GA-CSR RELEASE\n");
+
+ if (!msg)
+ return -ENOMEM;
+
+ push_rc_csr_hdr(msg, GA_PDISC_CSR, GA_MT_CSR_RELEASE);
+ msgb_tlv_put(msg, GA_IE_RR_CAUSE, 1, &cause);
+
+ return unc_peer_tx(peer, msg);
+}
+
/* 10.1.21 GA-CSR PAGING REQUEST */
static int tx_csr_paging_req(struct gan_peer *peer, uint8_t mi_len,
uint8_t *mi, uint8_t chan_needed)