From 88a5fa0a7536138424bad775b1bff083fa9a1c4f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 11 Oct 2010 09:31:47 +0200 Subject: ussd: Catch up with libosmocore and pass the gsm48_hdr --- openbsc/src/ussd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'openbsc/src') diff --git a/openbsc/src/ussd.c b/openbsc/src/ussd.c index 19b494fb3..c9eac13f0 100644 --- a/openbsc/src/ussd.c +++ b/openbsc/src/ussd.c @@ -47,9 +47,11 @@ int handle_rcv_ussd(struct gsm_subscriber_connection *conn, struct msgb *msg) { int rc; struct ussd_request req; + struct gsm48_hdr *gh; memset(&req, 0, sizeof(req)); - rc = gsm0480_decode_ussd_request(msg, &req); + gh = msgb_l3(msg); + rc = gsm0480_decode_ussd_request(gh, msgb_l3len(msg), &req); if (req.text[0] == 0xFF) /* Release-Complete */ return 0; -- cgit v1.2.3