hfp_ag_bluez5: use none prefix for AT+BCC.
authorKuba Pawlak <kubax.t.pawlak@intel.com>
Tue, 24 Mar 2015 14:20:40 +0000 (15:20 +0100)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 24 Mar 2015 14:12:58 +0000 (09:12 -0500)
iPhone 5s with iOS8.2 sometimes failes to acknowledge AT+BCC
with OK. This means +CIEV events get consumed by this command
and call ended notification is not parsed.

Nov 30 00:00:19 ofonod[938]: > AT+BCC\r
Nov 30 00:00:28 ofonod[938]: < \r\n+CIEV: 2,0\r\n

plugins/hfp_hf_bluez5.c

index f5c572d..2bed2a1 100644 (file)
@@ -390,7 +390,8 @@ static void hfp16_card_connect(struct ofono_handsfree_card *card,
                        info->ag_features & HFP_AG_FEATURE_CODEC_NEGOTIATION) {
                struct cb_data *cbd = cb_data_new(cb, data);
 
-               g_at_chat_send(info->chat, "AT+BCC", NULL, bcc_cb, cbd, g_free);
+               g_at_chat_send(info->chat, "AT+BCC", none_prefix, bcc_cb,
+                                                               cbd, g_free);
                return;
        }