projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e5ef25
)
Fix: download CBS to SIM even when "Powered" is 0
author
Andrzej Zaborowski
<andrew.zaborowski@intel.com>
Mon, 7 Jun 2010 10:08:28 +0000
(12:08 +0200)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 9 Jun 2010 17:27:24 +0000
(12:27 -0500)
src/cbs.c
patch
|
blob
|
history
diff --git
a/src/cbs.c
b/src/cbs.c
index
27185ba
..
316573b
100644
(file)
--- a/
src/cbs.c
+++ b/
src/cbs.c
@@
-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;