message-waiting: Update properly EF_MWIS SIM file

This commit is contained in:
Alfonso Sanchez-Beato 2015-07-16 15:02:17 +02:00 committed by Denis Kenzior
parent 8dc220bc11
commit cd76f913f0
1 changed files with 1 additions and 0 deletions

View File

@ -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;