diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-04-18 09:46:20 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-04-18 09:46:20 -0500 |
commit | e40d6d708fdb209a3a57f12d80ff0f31ea52fa18 (patch) | |
tree | 9d415a83370e606a9b2a03c85b038e1d2b96fbc2 /drivers | |
parent | b6a2586d8432339cd2bd1ed3a6ca9af9ca889ce1 (diff) | |
download | ofono-e40d6d708fdb209a3a57f12d80ff0f31ea52fa18.tar.bz2 |
ussd: Fix use of non-cloned gatchat object
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/atmodem/ussd.c | 7 |
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; } |