diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-07-15 15:27:40 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-07-15 15:42:19 +0200 |
commit | ffc92d5b23b249621106da700d73ec6f138e18c3 (patch) | |
tree | 7a998c5d26f82f614ab781bd5511afad3f592099 | |
parent | 6ffeb9af89227da140b4566d4eb57216643528f6 (diff) |
lapd: Use lapd_dl_init2 instead of deprecated lapd_dl_init
Change-Id: If25957d10bf9e32d2fe601111a9c1311aee21094
-rw-r--r-- | TODO-RELEASE | 1 | ||||
-rw-r--r-- | src/input/lapd.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/TODO-RELEASE b/TODO-RELEASE index aa278ec..bf3ef84 100644 --- a/TODO-RELEASE +++ b/TODO-RELEASE @@ -11,3 +11,4 @@ libosmo-abis API change major: add parameter to struct e1inp_line libosmo-trau API change add new function osmo_rtp_socket_set_dscp() libosmo-abis API change major: add parameter to struct lapd_instance libosmo-abis Field added struct e1inp_line "use_count". REMINDER: Upon LIBVERSION c bump, take the chance to drop struct e1inp_line "refcnt" field. +libosmo-abis libosmogsm dep Use of lapd_dl_init2() requires libosmocore > 1.3.0 (not yet released, 00b2faf8217338d4d7d1f4d27331af3151447350) diff --git a/src/input/lapd.c b/src/input/lapd.c index 5359a64..d8c67e4 100644 --- a/src/input/lapd.c +++ b/src/input/lapd.c @@ -259,8 +259,7 @@ static struct lapd_sap *lapd_sap_alloc(struct lapd_tei *teip, uint8_t sapi) LOGP(DLLAPD, LOGL_NOTICE, "%s: k=%d N200=%d N201=%d T200=%d.%d T203=%d.%d\n", name, k, profile->n200, profile->n201, profile->t200_sec, profile->t200_usec, profile->t203_sec, profile->t203_usec); - lapd_dl_init(dl, k, 128, profile->n201); - lapd_dl_set_name(dl, name); + lapd_dl_init2(dl, k, 128, profile->n201, name); dl->use_sabme = 1; /* use SABME instead of SABM (GSM) */ dl->send_ph_data_req = send_ph_data_req; dl->send_dlsap = send_dlsap; |