summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/cell_log.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/cell_log.c b/src/util/cell_log.c
index 22d1dd9..175de3d 100644
--- a/src/util/cell_log.c
+++ b/src/util/cell_log.c
@@ -456,6 +456,16 @@ static int cinfo_handler(struct lgsm_handle *lh, int evt, struct gsmd_evt_auxdat
static int error_handler(struct lgsm_handle *lh, int evt, struct gsmd_evt_auxdata *aux)
{
int err = aux->u.cme_err.number;
+
+ switch (err) {
+ case 546:
+ case 547:
+ /* those 'errors' are used by wavecom to indicate if
+ * emergency calls are available or not in case no SIM
+ * is inserted. Not really an error! */
+ return 0;
+ }
+
syslog(LOG_ERR, "CME ERROR %u from modem\n", err);
switch (err) {
personal git repositories of Harald Welte. Your mileage may vary