diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2023-06-07 13:18:08 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2023-06-09 15:06:34 +0000 |
commit | cb72e740317b6d0ecdff2578aeaff5f1a9561a55 (patch) | |
tree | 4ce9d2ab944ebb2d01044a327ef2dd2c724ba9ad /src/gsm | |
parent | a0635fc4f530479b64323d12c1dcfbd89aff56be (diff) |
lapdm: Do not return an error when enqueuing a frame
If tx_ph_data_enqueue() is called, frames will be written into a queue,
if there is a pending frame or if polling of TX frames is used. In
this case the return value must be 0.
Sending a RSL_MT_UNIT_DATA_REQ from upper layer causes a call to
tx_ph_data_enqueue(). The return code is returned to the sender. The
sender must not get an error returned, if the message is enqueued.
Change-Id: Iaeaf7c66cb3cf5cc81bc8e15d468e8e7704c1407
Diffstat (limited to 'src/gsm')
-rw-r--r-- | src/gsm/lapdm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c index 8ca13427..e8d9e78d 100644 --- a/src/gsm/lapdm.c +++ b/src/gsm/lapdm.c @@ -362,7 +362,7 @@ static int tx_ph_data_enqueue(struct lapdm_datalink *dl, struct msgb *msg, *msgb_push(msg, 1) = link_id; *msgb_push(msg, 1) = chan_nr; msgb_enqueue(&dl->dl.tx_queue, msg); - return -EBUSY; + return 0; } osmo_prim_init(&pp.oph, SAP_GSM_PH, PRIM_PH_DATA, |