diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-11 09:31:47 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-12 15:34:20 +0200 |
commit | 88a5fa0a7536138424bad775b1bff083fa9a1c4f (patch) | |
tree | c596fb9b555019794f63af0708251d6aae03d7f6 /openbsc | |
parent | daa0fe76377a67ce4131e94ab405775e8edb9a79 (diff) |
ussd: Catch up with libosmocore and pass the gsm48_hdr
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/ussd.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |