Make setting CPHS MWIS actually work

This commit is contained in:
Denis Kenzior 2010-01-12 18:20:51 -06:00
parent 6c1a997902
commit 506eb11b02
1 changed files with 7 additions and 2 deletions

View File

@ -699,8 +699,13 @@ static void mw_set_indicator(struct ofono_message_waiting *mw, int profile,
return;
try_cphs:
for (i = 0; i < 5 && i < mw->ef_cphs_mwis_length; i++)
efmwis[i] = mw->messages[i].indication ? 0xa : 0x5;
memset(efmwis, 0x55, 255);
efmwis[0] = mw->messages[0].indication ? 0xa : 0x5;
if (mw->ef_cphs_mwis_length > 1)
efmwis[1] = mw->messages[1].indication ? 0xa : 0x5 |
mw->messages[3].indication ? 0xa0 : 0x50;
if (ofono_sim_write(mw->sim, SIM_EF_CPHS_MWIS_FILEID, mw_mwis_write_cb,
OFONO_SIM_FILE_STRUCTURE_TRANSPARENT, 0,