diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2010-06-07 12:08:28 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-06-09 12:27:24 -0500 |
commit | 569c252e481548bb5de252bfbe76d8acc04ab31a (patch) | |
tree | e59d56372edcdae258d93abd2efb00363bd5bf2b /src/cbs.c | |
parent | 7e5ef25c5a58898a408e3e5d4809a1d6f6c0d09a (diff) | |
download | ofono-569c252e481548bb5de252bfbe76d8acc04ab31a.tar.bz2 |
Fix: download CBS to SIM even when "Powered" is 0
Diffstat (limited to 'src/cbs.c')
-rw-r--r-- | src/cbs.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -185,11 +185,6 @@ void ofono_cbs_notify(struct ofono_cbs *cbs, const unsigned char *pdu, if (cbs->assembly == NULL) return; - if (!cbs->powered) { - ofono_error("Ignoring CBS because powered is off"); - return; - } - if (!cbs_decode(pdu, pdu_len, &c)) { ofono_error("Unable to decode CBS PDU"); return; @@ -201,6 +196,11 @@ void ofono_cbs_notify(struct ofono_cbs *cbs, const unsigned char *pdu, return; } + if (!cbs->powered) { + ofono_error("Ignoring CBS because powered is off"); + return; + } + if (!cbs_dcs_decode(c.dcs, &udhi, &cls, &charset, &comp, NULL, NULL)) { ofono_error("Unknown / Reserved DCS. Ignoring"); return; |