diff options
author | Harald Welte <laforge@osmocom.org> | 2021-01-02 22:56:43 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-01-04 21:48:03 +0000 |
commit | 71a21477fd62c6660fbde9ac8197664a1e99884c (patch) | |
tree | 73588a4f3ccb8b48da9577cde88de0f68a716d19 /src/osmo-bsc/smscb.c | |
parent | a95a1e6783c1c0a2072cd9b5f0374e8fa7e42dc7 (diff) |
smscb: Fix adding of SMSCB messages when no message with lower period exists
Adding SMSCB messages to a BTS so far only worked if there were
existing messages with a lower scheduling period than the new message.
Before this patch, it fails for new messages if they are of equal or
lower scheduling period than the existing messages.
Change-Id: I69a05b22200b3a1ee406b0673553e135603d723b
Diffstat (limited to 'src/osmo-bsc/smscb.c')
-rw-r--r-- | src/osmo-bsc/smscb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo-bsc/smscb.c b/src/osmo-bsc/smscb.c index 8ce962a0e..542453cac 100644 --- a/src/osmo-bsc/smscb.c +++ b/src/osmo-bsc/smscb.c @@ -110,6 +110,8 @@ static void __bts_smscb_add(struct bts_smscb_chan_state *cstate, struct bts_smsc return; } } + /* we didn't find any messages with longer period than us, insert us at tail */ + llist_add_tail(&new->list, &cstate->messages); } /* stringify a SMSCB for logging */ |