Fix Don't check CLIR CUG option in hfp_dial
authorZhenhua Zhang <zhenhua.zhang@intel.com>
Tue, 9 Mar 2010 10:01:17 +0000 (18:01 +0800)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 9 Mar 2010 16:33:13 +0000 (10:33 -0600)
For HFP call, no need to check CLIR & CUG option. It doesn't affect dial
out string.

drivers/hfpmodem/voicecall.c

index 1fa0eec..f83f26a 100644 (file)
@@ -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,