Fwd: [ISSUE] Modem manager SMS storages assert
- From: 李晋 <snowmanli88 gmail com>
- To: networkmanager-list gnome org
- Subject: Fwd: [ISSUE] Modem manager SMS storages assert
- Date: Mon, 12 Aug 2013 13:42:35 +0800
Hi,
Patch below can fix message storage assert for UNKNOWN response of "+CMPS?".
Best Regards!
Quentin Li
---------- Forwarded message ----------
From:
李晋 <snowmanli88 gmail com>Date: 2013/8/8
Subject: Re: [ISSUE] Modem manager SMS storages assert
To: Dan Williams <
dcbw redhat com>
Dear Dan,
Because there may be more than 1 UNKNOWN SMS storages in the array,
so just once skipping still got the same assert.
I have tried patch below and it works well until now.
--- /home/user/桌面/ModemManager-1.0.0/src/mm-iface-modem-messaging.c 2013-07-19 16:00:01.000000000 +0800
+++ /home/user/ModemManager-1.0.0/src/mm-iface-modem-messaging.c 2013-08-08 16:10:30.004191341 +0800
@@ -795,13 +795,29 @@
if (!storage_ctx->supported_mem1 || ctx->mem1_storage_index >= storage_ctx->supported_mem1->len)
all_loaded = TRUE;
- /* We'll skip the 'MT' storage, as that is a combination of 'SM' and 'ME' */
- else if (g_array_index (storage_ctx->supported_mem1,
- MMSmsStorage,
- ctx->mem1_storage_index) == MM_SMS_STORAGE_MT) {
- ctx->mem1_storage_index++;
- if (ctx->mem1_storage_index >= storage_ctx->supported_mem1->len)
- all_loaded = TRUE;
+ /* We'll skip the 'MT' storage, as that is a combination of 'SM' and
+ * 'ME'. Also skip unknown storages since they can't be handled.
+ */
+ else
+ while(1)
+ {
+ s = g_array_index (storage_ctx->supported_mem1,
+ MMSmsStorage,
+ ctx->mem1_storage_index);
+ if(s == MM_SMS_STORAGE_MT || s == MM_SMS_STORAGE_UNKNOWN) {
+ ctx->mem1_storage_index++;
+ if (ctx->mem1_storage_index >= storage_ctx->supported_mem1->len)
+ {
+ all_loaded = TRUE;
+ break;
+ }
+ }
+ else
+ break;
+ }
}
if (all_loaded) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]