From 43dd25c49355212a589be9784dd43fa11f626103 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 1 Mar 2010 11:08:38 +0100 Subject: Include channel number and link identifier in L1 DL info This enables the layer2 to identify on which channel (BCCH/CCCH/SDCCH/TCH/...) the respective message was received. * Encode MFrame Task Number + SACCH info in 'p3' parameter * Generate channel number and link identifier * Decode channel number in layer2 program --- include/l1a_l23_interface.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/l1a_l23_interface.h b/include/l1a_l23_interface.h index 6e94ebc..01fcf9f 100644 --- a/include/l1a_l23_interface.h +++ b/include/l1a_l23_interface.h @@ -50,10 +50,16 @@ struct gsm_time { * downlink info ... down from the BTS.. */ struct l1_info_dl { + /* common header, should be its own struct */ uint8_t msg_type; uint8_t padding; - /* the ARFCN and the band. */ + + /* the ARFCN and the band. FIXME: what about MAIO? */ uint16_t band_arfcn; + /* GSM 08.58 channel number (9.3.1) */ + uint8_t chan_nr; + /* GSM 08.58 link identifier (9.3.2) */ + uint8_t link_id; struct gsm_time time; uint8_t rx_level; -- cgit v1.2.3-55-g7522