Skip to contentSkip to conversation

Use stk_envelope_type constant name in sim.c

PATCH In review Andrzej Zaborowski 2 participants 2 messages Feb 27, 2010 – Mar 1, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use stk_envelope_type constant name in sim.c

---
 src/sim.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
src/sim.c +2 -1
index 0ab399d..03d3e6e 100644
@@ -42,6 +42,7 @@
 #include "smsutil.h"
 #include "simutil.h"
 #include "storage.h"
+#include "stkutil.h"
 
 #define SIM_MANAGER_INTERFACE "org.ofono.SimManager"
 
@@ -1824,7 +1825,7 @@ void __ofono_cbs_sim_download(struct ofono_sim *sim,
 	if (sim->driver->envelope == NULL)
 		return;
 
-	tlv[0] = 0xd2; /* Cell Broadcast Download */
+	tlv[0] = STK_ENVELOPE_TYPE_CBS_PP_DOWNLOAD;
 	tlv[1] = 6 + pdu_len;
 	tlv[2] = 0x82; /* Device Identities */
 	tlv[3] = 0x02; /* Device Identities length */
Signature · 1 line
1.6.1
#1 lore raw

Hi Andrew,

Quoted 3 lines
---
 src/sim.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch has been applied, thanks.

Regards,
-Denis