aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDieter Spaar <spaar@mirider.augusta.de>2012-07-12 18:22:59 +0200
committerHarald Welte <laforge@gnumonks.org>2015-11-15 14:15:19 +0100
commit11de5a9a0a2cfd661f8e2325be007b3d01da77ab (patch)
tree8f754d7d23de728d03fb7614467fcae5b5e34464
parent833481dc86ec66103028330cadd7406ee28825e1 (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)