diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-04 12:18:00 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-15 20:06:46 +0100 |
commit | 46caa3048d70d217462cf0bad6e197ecc28025b5 (patch) | |
tree | 9f37880c2ab2c6ac27e8ba634f5c22d9f5793572 /openbsc/src/bsc_api.c | |
parent | b094171c9ffa6d2ff19ecef9955e087976e0caaf (diff) |
bsc_api: Provide the link_id in the dtap callback.
Diffstat (limited to 'openbsc/src/bsc_api.c')
-rw-r--r-- | openbsc/src/bsc_api.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openbsc/src/bsc_api.c b/openbsc/src/bsc_api.c index df806ba73..3abf4ba01 100644 --- a/openbsc/src/bsc_api.c +++ b/openbsc/src/bsc_api.c @@ -232,7 +232,8 @@ int bsc_upqueue(struct gsm_network *net) return work; } -static void dispatch_dtap(struct gsm_subscriber_connection *conn, struct msgb *msg) +static void dispatch_dtap(struct gsm_subscriber_connection *conn, + uint8_t link_id, struct msgb *msg) { struct bsc_api *api = msg->lchan->ts->trx->bts->network->bsc_api; struct gsm48_hdr *gh; @@ -280,7 +281,7 @@ static void dispatch_dtap(struct gsm_subscriber_connection *conn, struct msgb *m /* default case */ if (api->dtap) - api->dtap(conn, msg); + api->dtap(conn, link_id, msg); } int gsm0408_rcvmsg(struct msgb *msg, uint8_t link_id) @@ -297,7 +298,7 @@ int gsm0408_rcvmsg(struct msgb *msg, uint8_t link_id) if (lchan->conn) { - dispatch_dtap(lchan->conn, msg); + dispatch_dtap(lchan->conn, link_id, msg); } else { rc = BSC_API_CONN_POL_REJECT; lchan->conn = subscr_con_allocate(msg->lchan); |