All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] message-waiting: Update properly EF_MWIS SIM file
@ 2015-07-16 13:02 Alfonso Sanchez-Beato
  2015-07-16 13:02 ` [PATCH 2/2] message-waiting: Fix reading EF_MWIS records Alfonso Sanchez-Beato
  0 siblings, 1 reply; 2+ messages in thread
From: Alfonso Sanchez-Beato @ 2015-07-16 13:02 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 568 bytes --]

---
 src/message-waiting.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/message-waiting.c b/src/message-waiting.c
index fc03d62..6d1b462 100644
--- a/src/message-waiting.c
+++ b/src/message-waiting.c
@@ -732,6 +732,7 @@ static void mw_set_indicator(struct ofono_message_waiting *mw, int profile,
 		efmwis[i + 1] = mw->messages[i].message_count;
 
 	/* Fill in indicator state bits in byte 0 */
+	efmwis[0] = 0;
 	for (i = 0; i < 5 && i < mw->efmwis_length - 1; i++)
 		if (mw->messages[i].indication)
 			efmwis[0] |= 1 << i;
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] message-waiting: Fix reading EF_MWIS records
  2015-07-16 13:02 [PATCH 1/2] message-waiting: Update properly EF_MWIS SIM file Alfonso Sanchez-Beato
@ 2015-07-16 13:02 ` Alfonso Sanchez-Beato
  0 siblings, 0 replies; 2+ messages in thread
From: Alfonso Sanchez-Beato @ 2015-07-16 13:02 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 587 bytes --]

---
 src/message-waiting.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/message-waiting.c b/src/message-waiting.c
index 6d1b462..a356e90 100644
--- a/src/message-waiting.c
+++ b/src/message-waiting.c
@@ -481,7 +481,7 @@ static void mw_mwis_read_cb(int ok, int total_length, int record,
 	status = data[0];
 	data++;
 
-	for (i = 0; i < 5 && i < record_length - 1; i++) {
+	for (i = 0; i < 5 && i < record_length - 1; i++, data++) {
 		info.indication = (status >> i) & 1;
 		info.message_count = info.indication ? data[0] : 0;
 
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-16 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-16 13:02 [PATCH 1/2] message-waiting: Update properly EF_MWIS SIM file Alfonso Sanchez-Beato
2015-07-16 13:02 ` [PATCH 2/2] message-waiting: Fix reading EF_MWIS records Alfonso Sanchez-Beato

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.