diff options
author | Denis Kenzior <denkenz@gmail.com> | 2014-05-21 12:08:37 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2014-05-21 12:08:37 -0500 |
commit | 35feae07e50f89ea3c42566c765f501ec768bd44 (patch) | |
tree | 88ec3f0eb0b12a20db31ede7d648e331a4d0ab86 /plugins | |
parent | 9bbc98651f286764d2edd99143f42408b0381430 (diff) | |
download | ofono-35feae07e50f89ea3c42566c765f501ec768bd44.tar.bz2 |
hfp: Use proper prefix
Otherwise the BCS command can consume unsolicited notifications.
ofonod[3270]: < \r\n+BCS: 2\r\n
ofonod[3270]: > AT+BCS=2\r
ofonod[3270]: < \r\n+CIEV: 1,1\r\n
ofonod[3270]: < \r\n+CIEV: 2,0\r\n
ofonod[3270]: < \r\nOK\r\n
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/hfp_hf_bluez5.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c index aaf779d6..17b51519 100644 --- a/plugins/hfp_hf_bluez5.c +++ b/plugins/hfp_hf_bluez5.c @@ -71,6 +71,7 @@ struct hfp { struct ofono_handsfree_card *card; }; +static const char *none_prefix[] = { NULL }; static GDBusClient *bluez = NULL; static void hfp_debug(const char *str, void *user_data) @@ -347,7 +348,7 @@ static void bcs_notify(GAtResult *result, gpointer user_data) sprintf(str, "AT+BCS=%d", value); done: - g_at_chat_send(info->chat, str, NULL, NULL, NULL, NULL); + g_at_chat_send(info->chat, str, none_prefix, NULL, NULL, NULL); } static int hfp16_card_probe(struct ofono_handsfree_card *card, |