aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/meas_rep.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-03-07 18:38:09 +0000
committerHarald Welte <laforge@gnumonks.org>2014-08-25 09:20:33 +0200
commit7ff4f0e0fc692bfab829da50edb104e58b271e7e (patch)
treed4d7112b8ee8e49d7e7c28ab58d977aedff3c87c /openbsc/include/openbsc/meas_rep.h
parent5160996d4a24fdb9faf0317c489689b5c31eebee (diff)
port over to libosmocore include/osmocom/gsm/meas_rep.h
Back in March 2013, some structures and defines related to decoded measurement reports have been moved from openbsc to libosmocore (libosmocore e128f4663104ed64e33e362cff2566f36d65e658) so that they can be used also from osmo-bts. This finally makes gsm_lchan follow suit for osmo-bts.
Diffstat (limited to 'openbsc/include/openbsc/meas_rep.h')
-rw-r--r--openbsc/include/openbsc/meas_rep.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/openbsc/include/openbsc/meas_rep.h b/openbsc/include/openbsc/meas_rep.h
index f235df6aa..6d36f347f 100644
--- a/openbsc/include/openbsc/meas_rep.h
+++ b/openbsc/include/openbsc/meas_rep.h
@@ -3,6 +3,8 @@
#include <stdint.h>
+#include <osmocom/gsm/meas_rep.h>
+
#define MRC_F_PROCESSED 0x0001
/* extracted from a L3 measurement report IE */
@@ -14,18 +16,6 @@ struct gsm_meas_rep_cell {
unsigned int flags;
};
-/* RX Level and RX Quality */
-struct gsm_rx_lev_qual {
- uint8_t rx_lev;
- uint8_t rx_qual;
-};
-
-/* unidirectional measumrement report */
-struct gsm_meas_rep_unidir {
- struct gsm_rx_lev_qual full;
- struct gsm_rx_lev_qual sub;
-};
-
#define MEAS_REP_F_UL_DTX 0x01
#define MEAS_REP_F_DL_VALID 0x02
#define MEAS_REP_F_BA1 0x04
@@ -60,17 +50,6 @@ struct gsm_meas_rep {
struct gsm_meas_rep_cell cell[6];
};
-enum meas_rep_field {
- MEAS_REP_DL_RXLEV_FULL,
- MEAS_REP_DL_RXLEV_SUB,
- MEAS_REP_DL_RXQUAL_FULL,
- MEAS_REP_DL_RXQUAL_SUB,
- MEAS_REP_UL_RXLEV_FULL,
- MEAS_REP_UL_RXLEV_SUB,
- MEAS_REP_UL_RXQUAL_FULL,
- MEAS_REP_UL_RXQUAL_SUB,
-};
-
/* obtain an average over the last 'num' fields in the meas reps */
int get_meas_rep_avg(const struct gsm_lchan *lchan,
enum meas_rep_field field, unsigned int num);