diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2012-11-22 16:00:33 +0100 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2012-11-22 16:00:33 +0100 |
commit | d72cb4401e9229da9306fd49dc0d541eb002de9a (patch) | |
tree | a84aabc097cc806ac6d480d700b07098732453a1 /src/host/layer23/include/osmocom | |
parent | 85f4e1b3b8b386fd7e25b33d83768fe8a100e051 (diff) |
Rename various "rxlev" variable to "rxlev_dbm" and correct their signess
All levels in range of 0..63 are now uint8_t and use "rxlev" as
variable name. All levels in range of -110..-47 are now int8_t and use
"rxlev_dbm" as variable name.
Diffstat (limited to 'src/host/layer23/include/osmocom')
4 files changed, 7 insertions, 7 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/gsm322.h b/src/host/layer23/include/osmocom/bb/mobile/gsm322.h index f39e5668..66bc8522 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/gsm322.h +++ b/src/host/layer23/include/osmocom/bb/mobile/gsm322.h @@ -70,7 +70,7 @@ enum { struct gsm322_plmn_list { struct llist_head entry; uint16_t mcc, mnc; - int8_t rxlev; /* rx level in range format */ + uint8_t rxlev; /* rx level in range format */ uint8_t cause; /* cause value, if PLMN is not allowed */ }; @@ -103,7 +103,7 @@ struct gsm322_ba_list { /* Cell selection list */ struct gsm322_cs_list { uint8_t flags; /* see GSM322_CS_FLAG_* */ - int8_t rxlev; /* rx level range format */ + uint8_t rxlev; /* rx level range format */ struct gsm48_sysinfo *sysinfo; }; @@ -137,7 +137,7 @@ struct gsm322_neighbour { uint8_t state; /* GSM322_NB_* */ time_t created; /* when was this neighbour created */ time_t when; /* when did we sync / read */ - int16_t rxlev_dbm; /* sum of received levels */ + int16_t rxlev_sum_dbm; /* sum of received levels */ uint8_t rxlev_count; /* number of received levels */ int8_t rla_c_dbm; /* average of the reveive level */ uint8_t c12_valid; /* both C1 and C2 are calculated */ @@ -192,7 +192,7 @@ struct gsm322_cellsel { struct gsm322_neighbour *neighbour; /* when selecting neighbour cell */ time_t resel_when; /* timestamp of last re-selection */ int8_t nb_meas_set; - int16_t rxlev_dbm; /* sum of received levels */ + int16_t rxlev_sum_dbm; /* sum of received levels */ uint8_t rxlev_count; /* number of received levels */ int8_t rla_c_dbm; /* average of received level */ uint8_t c12_valid; /* both C1 and C2 values are diff --git a/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h b/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h index 20121695..6235bfdb 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h +++ b/src/host/layer23/include/osmocom/bb/mobile/gsm48_rr.h @@ -112,7 +112,7 @@ struct gsm48_cr_hist { struct gsm48_rr_meas { /* note: must be sorted by arfcn 1..1023,0 according to SI5* */ uint8_t nc_num; /* number of measured cells (32 max) */ - int8_t nc_rxlev[32]; /* -128 = no value */ + int8_t nc_rxlev_dbm[32]; /* -128 = no value */ uint8_t nc_bsic[32]; uint16_t nc_arfcn[32]; }; diff --git a/src/host/layer23/include/osmocom/bb/mobile/settings.h b/src/host/layer23/include/osmocom/bb/mobile/settings.h index 6d446967..fae12202 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/settings.h +++ b/src/host/layer23/include/osmocom/bb/mobile/settings.h @@ -83,7 +83,7 @@ struct gsm_settings { uint8_t half_v1; uint8_t half_v3; uint8_t ch_cap; /* channel capability */ - int8_t min_rxlev_db; /* min DB to access */ + int8_t min_rxlev_dbm; /* min dBm to access */ /* radio */ uint16_t dsc_max; diff --git a/src/host/layer23/include/osmocom/bb/mobile/support.h b/src/host/layer23/include/osmocom/bb/mobile/support.h index 035e10a3..b0a10077 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/support.h +++ b/src/host/layer23/include/osmocom/bb/mobile/support.h @@ -79,7 +79,7 @@ struct gsm_support { /* radio */ uint8_t ch_cap; /* channel capability */ - int8_t min_rxlev_db; + int8_t min_rxlev_dbm; uint8_t scan_to; uint8_t sync_to; uint16_t dsc_max; /* maximum dl signal failure counter */ |