summaryrefslogtreecommitdiffstats
path: root/drivers/isimodem/ussd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isimodem/ussd.c')
-rw-r--r--drivers/isimodem/ussd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/isimodem/ussd.c b/drivers/isimodem/ussd.c
index 7002d099..d164d105 100644
--- a/drivers/isimodem/ussd.c
+++ b/drivers/isimodem/ussd.c
@@ -136,11 +136,11 @@ static GIsiRequest *ussd_send_make(GIsiClient *client, uint8_t *str,
const uint8_t msg[] = {
SS_GSM_USSD_SEND_REQ,
SS_GSM_USSD_COMMAND,
- 0x01, /* subblock count */
+ 0x01, /* subblock count */
SS_GSM_USSD_STRING,
- (4 + len + 3) & ~3, /* subblock length */
- 0x0f, /* DCS */
- len, /* string length */
+ 4 + len + 3, /* subblock length */
+ 0x0f, /* DCS */
+ len, /* string length */
/* USSD string goes here */
};
@@ -196,7 +196,7 @@ static void isi_cancel(struct ofono_ussd *ussd,
const unsigned char msg[] = {
SS_GSM_USSD_SEND_REQ,
SS_GSM_USSD_END,
- 0x00 /* subblock count */
+ 0x00 /* subblock count */
};
if (!cbd)