[PATCH] Fix Don't check CLIR CUG option in hfp_dial

Zhenhua Zhang zhenhua.zhang at intel.com
Tue Mar 9 21:33:28 PST 2010


For HFP call, no need to check CLIR & CUG option. It doesn't affect dial
out string.
---
 drivers/hfpmodem/voicecall.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index 1fa0eec..f83f26a 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -373,10 +373,6 @@ static void hfp_dial(struct ofono_voicecall *vc,
 	else
 		snprintf(buf, sizeof(buf), "ATD%s", ph->number);
 
-	if ((clir != OFONO_CLIR_OPTION_DEFAULT) ||
-			(cug != OFONO_CUG_OPTION_DEFAULT))
-		goto error;
-
 	strcat(buf, ";");
 
 	if (g_at_chat_send(vd->chat, buf, none_prefix,
-- 
1.6.6.1



More information about the ofono mailing list