aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2019-12-04 14:47:21 +0100
committerlaforge <laforge@osmocom.org>2019-12-06 14:04:23 +0000
commit01a3c2689c706d3da48d525b535b92510a43cf9b (patch)
tree126dff5cbceb5376502e0a0755abcb46b1948534
parentf659f5e5b0295dff617c89818bb442b9565ab6ba (diff)
gsm_04_80: Avoid using deprecated APIHEADmaster
gsm_04_80_utils.c: In function ‘bsc_send_ussd_release_complete’: gsm_04_80_utils.c:37:9: warning: ‘gsm0480_create_ussd_release_complete’ is deprecated: Use gsm0480_create_release_complete() instead. [-Wdeprecated-declarations] 37 | struct msgb *msg = gsm0480_create_ussd_release_complete(); | ^~~~ CC gsm_data.o In file included from gsm_04_80_utils.c:22: /usr/local/include/osmocom/gsm/gsm0480.h:120:14: note: declared here 120 | struct msgb *gsm0480_create_ussd_release_complete(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The commit is not changing the existing logic/assumption: TID 0 should not be in use by anything else at the point the USSD is generated. Change-Id: I739158dec62cd5f0c2080fbb426af9c024baef87
-rw-r--r--src/osmo-bsc/gsm_04_80_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmo-bsc/gsm_04_80_utils.c b/src/osmo-bsc/gsm_04_80_utils.c
index 8de1262e9..5ac022689 100644
--- a/src/osmo-bsc/gsm_04_80_utils.c
+++ b/src/osmo-bsc/gsm_04_80_utils.c
@@ -34,7 +34,8 @@ int bsc_send_ussd_notify(struct gsm_subscriber_connection *conn, int level,
int bsc_send_ussd_release_complete(struct gsm_subscriber_connection *conn)
{
- struct msgb *msg = gsm0480_create_ussd_release_complete();
+ /* ugly: we obviously don't know if TID 0 is currently in user for the given subscriber... */
+ struct msgb *msg = gsm0480_create_release_complete(0);
if (!msg)
return -1;
gscon_submit_rsl_dtap(conn, msg, 0, 0);