From d58af304ee3415e5559db183fa4759a4c4447f17 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 25 Jun 2010 03:13:52 +0200 Subject: [PATCH] [layer23] reverse-engineer missing header file changes It seems one of the recent commits introduced build errors due to missing commits for header file changes. Based on the code, I reconstructed what I believe might have been the header files... --- src/host/layer23/include/osmocom/gsm48_rr.h | 11 +++++++++-- src/host/layer23/include/osmocom/osmocom_data.h | 6 ++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/host/layer23/include/osmocom/gsm48_rr.h b/src/host/layer23/include/osmocom/gsm48_rr.h index 4fc7547..002587d 100644 --- a/src/host/layer23/include/osmocom/gsm48_rr.h +++ b/src/host/layer23/include/osmocom/gsm48_rr.h @@ -87,6 +87,12 @@ struct gsm48_rr_meas { uint8_t bcch_f_nc[6]; }; +struct gsm48_cr_hist { + uint32_t fn; + uint8_t chan_req; + int valid:1; +}; + /* RR sublayer instance */ struct gsm48_rrlayer { struct osmocom_ms *ms; @@ -118,8 +124,9 @@ struct gsm48_rrlayer { uint8_t n_chan_req; /* number left, incl. current */ uint8_t chan_req_val; /* current request value */ uint8_t chan_req_mask; /* mask of random bits */ - int16_t cr_hist[3]; - /* cr_hist must be signed and greater 8 bit, -1 = no value */ + + /* cr_hist must be signed and greater 8 bit, -1 = no value */ + struct gsm48_cr_hist cr_hist[3]; /* current channel descriptions */ struct gsm48_rr_cd cd_now; diff --git a/src/host/layer23/include/osmocom/osmocom_data.h b/src/host/layer23/include/osmocom/osmocom_data.h index c15c1b6..691fa4b 100644 --- a/src/host/layer23/include/osmocom/osmocom_data.h +++ b/src/host/layer23/include/osmocom/osmocom_data.h @@ -57,6 +57,7 @@ enum osmobb_meas_sig { S_L1CTL_RESET, S_L1CTL_PM_RES, S_L1CTL_PM_DONE, + S_L1CTL_RACH_CONF, }; struct osmobb_meas_res { @@ -65,4 +66,9 @@ struct osmobb_meas_res { uint8_t rx_lev; }; +struct osmobb_rach_conf { + struct osmocom_ms *ms; + uint32_t fn; +}; + #endif -- 2.20.1