diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-12-16 16:10:21 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-12-16 16:10:21 -0600 |
commit | 40db3b9528f03bad8dde8a7c0a73614435667a4d (patch) | |
tree | 62de4931371390bd9edd270ed6cae6522bf513f3 /src/message-waiting.c | |
parent | 748259a275a03211da846e3e541003493d395423 (diff) | |
download | ofono-40db3b9528f03bad8dde8a7c0a73614435667a4d.tar.bz2 |
message-waiting: Use new API for CPHS MBDN
Diffstat (limited to 'src/message-waiting.c')
-rw-r--r-- | src/message-waiting.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/message-waiting.c b/src/message-waiting.c index 6c280b03..8f5ec225 100644 --- a/src/message-waiting.c +++ b/src/message-waiting.c @@ -618,7 +618,6 @@ static void mw_mbi_read_cb(int ok, int total_length, int record, { struct ofono_message_waiting *mw = userdata; int i, err; - const unsigned char *st; if (!ok || record_length < 4) { ofono_error("Unable to read mailbox identifies " @@ -652,9 +651,8 @@ out: * Mailbox numbers located in Byte 1, bits 6 & 5, * Check for Activated & Allocated */ - st = ofono_sim_get_cphs_service_table(mw->sim); - - if (st && bit_field(st[0], 4, 2) == 3) { + if (__ofono_sim_cphs_service_available(mw->sim, + SIM_CPHS_SERVICE_MAILBOX_NUMBERS)) { ofono_sim_read(mw->sim_context, SIM_EF_CPHS_MBDN_FILEID, OFONO_SIM_FILE_STRUCTURE_FIXED, mw_cphs_mbdn_read_cb, mw); |