From 7503540959f421917a702174616655e9fdd11a24 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Fri, 14 Feb 2014 14:18:51 +0100 Subject: agch/pch: Use PCH for AGCH msgs This patch extends paging_gen_msg() by adding an output parameter is_empty that is true, if only a paging message with dummy entries has been placed into buffer. This feature is then used by bts_ccch_copy_msg() to insert an AGCH message if is_empty is true. Ticket: SYS#224 Sponsored-by: On-Waves ehf --- include/osmo-bts/paging.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/osmo-bts/paging.h b/include/osmo-bts/paging.h index d31f5c12..38accd72 100644 --- a/include/osmo-bts/paging.h +++ b/include/osmo-bts/paging.h @@ -40,7 +40,8 @@ int paging_add_imm_ass(struct paging_state *ps, const uint8_t *data, uint8_t len); /* generate paging message for given gsm time */ -int paging_gen_msg(struct paging_state *ps, uint8_t *out_buf, struct gsm_time *gt); +int paging_gen_msg(struct paging_state *ps, uint8_t *out_buf, struct gsm_time *gt, + int *is_empty); /* inspection methods below */ -- cgit v1.2.3