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:
da6f3e6
)
Style: Fixup style issues
author
Denis Kenzior
<denkenz@gmail.com>
Fri, 18 Dec 2009 01:29:51 +0000
(19:29 -0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Fri, 18 Dec 2009 03:45:39 +0000
(21:45 -0600)
src/sim.c
patch
|
blob
|
history
diff --git
a/src/sim.c
b/src/sim.c
index
a854316
..
d1ea88a
100644
(file)
--- a/
src/sim.c
+++ b/
src/sim.c
@@
-1738,7
+1738,8
@@
void __ofono_cbs_sim_download(struct ofono_sim *sim,
if (sim->ready != TRUE)
return;
- if (!sim->driver->envelope)
+
+ if (sim->driver->envelope == NULL)
return;
tlv[0] = 0xd2; /* Cell Broadcast Download */
@@
-1749,6
+1750,7
@@
void __ofono_cbs_sim_download(struct ofono_sim *sim,
tlv[5] = 0x81; /* UICC */
tlv[6] = 0x8c; /* Cell Broadcast page */
tlv[7] = pdu_len;
+
memcpy(tlv + 8, pdu, pdu_len);
sim->driver->envelope(sim, pdu_len + 8, tlv, sim_cb_download_cb, sim);