summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/layer1/sync.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-04-05 22:19:49 +0800
committerHarald Welte <laforge@gnumonks.org>2010-04-05 22:19:49 +0800
commit2bfeb17e06bb3449b76529d72671e3912130f75a (patch)
tree1caf7ed019321213a647fe3d71e3dcb24c0ed6f0 /src/target/firmware/layer1/sync.c
parent1fa7930eea37f2ba949a1dad8354c133eb1903a0 (diff)
l1ctl protocol: Introduce multi-part message DONE flag
In case a single request from L2 triggers multiple response messages from L1, we need a way to signal via L1CTL if the response is the final or some intermediate response.
Diffstat (limited to 'src/target/firmware/layer1/sync.c')
-rw-r--r--src/target/firmware/layer1/sync.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/firmware/layer1/sync.c b/src/target/firmware/layer1/sync.c
index f100ff5d..dfdf64e2 100644
--- a/src/target/firmware/layer1/sync.c
+++ b/src/target/firmware/layer1/sync.c
@@ -820,6 +820,8 @@ static int l1s_pm_resp(__unused uint8_t p1, __unused uint8_t p2,
l1s.pm.range.arfcn_next++;
} else {
/* we have finished, flush the msgb to L2 */
+ struct l1ctl_hdr *l1h = l1s.pm.msg->l1h;
+ l1h->flags |= L1CTL_F_DONE;
l1_queue_for_l2(l1s.pm.msg);
l1s.pm.msg = NULL;
}