Change in osmo-bsc[master]: bsc: timeslot_fsm: Fix count in ts_lchans_waiting

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Wed Nov 28 16:34:16 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/11983


Change subject: bsc: timeslot_fsm: Fix count in ts_lchans_waiting
......................................................................

bsc: timeslot_fsm: Fix count in ts_lchans_waiting

Before this patch, TCH lchans waiting for dynamic TS to
switch PDCH->TCH wouldn't be counted.

See osmo-bsc I9cedb77d6578597f1febab36c54b2ee427c7a4a2 for similar
extensive explanation.

Change-Id: I32008859cc23cd2afddd79daae21497d0945fed0
---
M src/osmo-bsc/timeslot_fsm.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/83/11983/1

diff --git a/src/osmo-bsc/timeslot_fsm.c b/src/osmo-bsc/timeslot_fsm.c
index 25c6977..e3327b7 100644
--- a/src/osmo-bsc/timeslot_fsm.c
+++ b/src/osmo-bsc/timeslot_fsm.c
@@ -144,7 +144,7 @@
 {
 	struct gsm_lchan *lchan;
 	int count = 0;
-	ts_for_each_lchan(lchan, ts)
+	ts_for_each_lchan_slot(lchan, ts)
 		if (lchan->fi->state == LCHAN_ST_WAIT_TS_READY)
 			count++;
 	return count;

-- 
To view, visit https://gerrit.osmocom.org/11983
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I32008859cc23cd2afddd79daae21497d0945fed0
Gerrit-Change-Number: 11983
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181128/e51ca400/attachment.html>


More information about the gerrit-log mailing list