summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem/ussd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/atmodem/ussd.c')
-rw-r--r--drivers/atmodem/ussd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/atmodem/ussd.c b/drivers/atmodem/ussd.c
index f8cde2da..a82b66bc 100644
--- a/drivers/atmodem/ussd.c
+++ b/drivers/atmodem/ussd.c
@@ -316,10 +316,11 @@ static int at_ussd_probe(struct ofono_ussd *ussd, unsigned int vendor,
ofono_ussd_set_data(ussd, data);
- g_at_chat_send(chat, "AT+CSCS?", cscs_prefix, read_charset_cb, data,
- NULL);
+ g_at_chat_send(data->chat, "AT+CSCS?", cscs_prefix,
+ read_charset_cb, data, NULL);
- g_at_chat_send(chat, "AT+CUSD=1", NULL, at_ussd_register, ussd, NULL);
+ g_at_chat_send(data->chat, "AT+CUSD=1", NULL,
+ at_ussd_register, ussd, NULL);
return 0;
}