summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-05-06 10:48:24 +0200
committerAndreas.Eversberg2010-05-06 10:48:24 +0200
commit2b7d2ed446c9252d6dd7c6a834adb9eb40db1880 (patch)
tree4174018304667fbb1abad3e8fd50b9f581a853e1 /src/host/layer23/include/osmocom
parentWork on layer 3 processes: (diff)
downloadosmocom-2b7d2ed446c9252d6dd7c6a834adb9eb40db1880.tar.gz
osmocom-2b7d2ed446c9252d6dd7c6a834adb9eb40db1880.tar.xz
osmocom-2b7d2ed446c9252d6dd7c6a834adb9eb40db1880.zip
- Fixes on MM, RR, cell selection, plmn search processes.
-> Cell selection now requires only one frequency to be scanned, if BA list of that PLMN is known.
Diffstat (limited to 'src/host/layer23/include/osmocom')
-rwxr-xr-xsrc/host/layer23/include/osmocom/gsm322.h5
-rw-r--r--src/host/layer23/include/osmocom/gsm48_rr.h3
-rw-r--r--src/host/layer23/include/osmocom/support.h1
3 files changed, 7 insertions, 2 deletions
diff --git a/src/host/layer23/include/osmocom/gsm322.h b/src/host/layer23/include/osmocom/gsm322.h
index 0159972..9dd96c6 100755
--- a/src/host/layer23/include/osmocom/gsm322.h
+++ b/src/host/layer23/include/osmocom/gsm322.h
@@ -132,6 +132,7 @@ struct gsm322_cellsel {
int state; /* GSM322_Cx_* */
uint16_t arfcn; /* current tuned idle mode arfcn */
+// uint8_t tune_retry;
struct gsm48_sysinfo *si; /* current sysinfo */
struct llist_head event_queue; /* event messages */
@@ -144,12 +145,12 @@ struct gsm322_cellsel {
uint8_t powerscan; /* currently scanning for power */
uint32_t scan_state; /* special state of current scan */
- uint8_t ccch_active; /* set, if ccch is active */
+ uint8_t ccch_sync; /* set, if ccch is synced */
uint8_t selected; /* if a cell is selected */
uint16_t sel_arfcn;
struct gsm48_sysinfo sel_si; /* copy of selected cell, will update */
- uint16_t sel_mcc, sel_mnc, sel_lac;
+ uint16_t sel_mcc, sel_mnc, sel_lac, sel_id;
};
/* GSM 03.22 message */
diff --git a/src/host/layer23/include/osmocom/gsm48_rr.h b/src/host/layer23/include/osmocom/gsm48_rr.h
index ba0bb25..88f44f1 100644
--- a/src/host/layer23/include/osmocom/gsm48_rr.h
+++ b/src/host/layer23/include/osmocom/gsm48_rr.h
@@ -3,6 +3,8 @@
#include "osmocore/protocol/gsm_04_08.h"
+#define GSM_TA_CM 55385
+
/* GSM 04.07 9.1.2 */
#define GSM48_RR_EST_REQ 0x10
#define GSM48_RR_EST_IND 0x12
@@ -141,5 +143,6 @@ struct msgb *gsm48_rr_msgb_alloc(int msg_type);
int gsm48_decode_lai(struct gsm48_loc_area_id *lai, uint16_t *mcc,
uint16_t *mnc, uint16_t *lac);
int gsm48_rr_enc_cm2(struct osmocom_ms *ms, struct gsm48_classmark2 *cm);
+int gsm48_rr_tx_rand_acc(struct osmocom_ms *ms, struct msgb *msg);
#endif /* _GSM48_RR_H */
diff --git a/src/host/layer23/include/osmocom/support.h b/src/host/layer23/include/osmocom/support.h
index 1a96c14..7b8f7cd 100644
--- a/src/host/layer23/include/osmocom/support.h
+++ b/src/host/layer23/include/osmocom/support.h
@@ -76,6 +76,7 @@ struct gsm_support {
/* radio */
int8_t min_rxlev_db;
uint8_t scan_to;
+ uint8_t sync_to;
};
struct gsm_support_scan_max {