Explicitly disable unsolicited messages for generic GSM modems.

This commit is contained in:
Tambet Ingo
2009-01-13 11:18:16 +02:00
parent 56bd8994ee
commit 9804a21686

View File

@@ -157,8 +157,11 @@ init_done (MMSerial *serial,
if (error) {
info->error = g_error_copy (error);
mm_callback_info_schedule (info);
} else
} else {
/* Disable unsolicited registration state changes, these will mess up our response parser */
mm_serial_queue_command (serial, "+CREG=0", 5, NULL, NULL);
mm_serial_queue_command (serial, "+CFUN=1", 5, enable_done, user_data);
}
}
static void