From b0c5b8a26946bd3222bdd227acad64a5c21ebb73 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 1 Jun 2012 21:58:06 +0200 Subject: introduce new "Cell Info" Event --- include/gsmd/event.h | 1 + include/gsmd/usock.h | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'include/gsmd') diff --git a/include/gsmd/event.h b/include/gsmd/event.h index 90e4dc7..8da0832 100644 --- a/include/gsmd/event.h +++ b/include/gsmd/event.h @@ -19,6 +19,7 @@ enum gsmd_events { GSMD_EVT_IN_CBM = 14, /* Incoming Cell Broadcast message */ GSMD_EVT_IN_DS = 15, /* SMS Status Report */ GSMD_EVT_IN_ERROR = 16, /* CME/CMS error */ + GSMD_EVT_CELLINFO = 17, /* Cell Information (MCC/MNC/LAC/CI) */ __NUM_GSMD_EVT }; diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h index 0c1d6e2..d77869a 100644 --- a/include/gsmd/usock.h +++ b/include/gsmd/usock.h @@ -519,6 +519,15 @@ struct gsmd_evt_auxdata { char alpha[GSMD_ALPHA_MAXLEN+1]; u_int8_t cli; } ccwa; + struct { + u_int16_t mcc; + u_int16_t mnc; + u_int16_t lac; + u_int16_t ci; + u_int8_t bsic; + u_int16_t arfcn; + u_int8_t rxlev; + } cell_info; } u; u_int8_t data[0]; } __attribute__ ((packed)); -- cgit v1.2.3