From 2539799e3c2e632ba7ae298e0a9175d0cef89a50 Mon Sep 17 00:00:00 2001 From: Syam Sidhardhan Date: Thu, 12 Jan 2012 20:45:01 +0530 Subject: [PATCH] headset: Fix unknown command error response If HF has already requested for the Extended Error result code reporting, then send the same in certain failure cases. Earlier in this case we were sending normal error. --- audio/headset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audio/headset.c b/audio/headset.c index 6aef6a89d..c5ea58b99 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -1331,7 +1331,8 @@ static gboolean rfcomm_io_cb(GIOChannel *chan, GIOCondition cond, if (err == -EINVAL) { error("Badly formated or unrecognized command: %s", &slc->buf[slc->data_start]); - err = headset_send(hs, "\r\nERROR\r\n"); + err = telephony_generic_rsp(device, + CME_ERROR_NOT_SUPPORTED); if (err < 0) goto failed; } else if (err < 0) -- 2.47.3