From cd4528e7a38bc4157b20bf1ada7e85436cb4077c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 6 Jan 2012 13:19:30 -0800 Subject: [PATCH] huawei: Change state variable name for voice support --- plugins/huawei.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/huawei.c b/plugins/huawei.c index ae15bf9..5087940 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -78,7 +78,7 @@ struct huawei_data { guint sysinfo_poll_count; struct cb_data *online_cbd; const char *offline_command; - gboolean voice; + gboolean have_voice; }; static int huawei_probe(struct ofono_modem *modem) @@ -194,7 +194,7 @@ static void cvoice_query_cb(gboolean ok, GAtResult *result, if (!g_at_result_iter_next_number(&iter, &period)) return; - data->voice = TRUE; + data->have_voice = TRUE; ofono_info("Voice channel: %d Hz, %d bits, %dms period", rate, bits, period); @@ -670,7 +670,7 @@ static void huawei_post_sim(struct ofono_modem *modem) DBG("%p", modem); - if (data->voice == TRUE) { + if (data->have_voice == TRUE) { ofono_voicecall_create(modem, 0, "huaweimodem", data->pcui); ofono_audio_settings_create(modem, 0, "huaweimodem", data->pcui); @@ -702,7 +702,7 @@ static void huawei_post_online(struct ofono_modem *modem) ofono_ussd_create(modem, OFONO_VENDOR_QUALCOMM_MSM, "atmodem", data->pcui); - if (data->voice == TRUE) { + if (data->have_voice == TRUE) { struct ofono_message_waiting *mw; ofono_call_forwarding_create(modem, 0, "atmodem", data->pcui); -- 2.7.4