Hi Philippe, On 10/31/2017 03:39 AM, Philippe De Swert wrote:
Handle the last call dialled request and send the required AT+BDLN command for bluetooth HFP profile. --- drivers/hfpmodem/voicecall.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
Applied with an amendment, see below:
diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c index ffdf4b7b..fc5210bb 100644 --- a/drivers/hfpmodem/voicecall.c +++ b/drivers/hfpmodem/voicecall.c @@ -404,6 +404,25 @@ static void hfp_dial(struct ofono_voicecall *vc, CALLBACK_WITH_FAILURE(cb, data); }+static void hfp_dial_last(struct ofono_voicecall *vc, ofono_voicecall_cb_t cb,+ void *data) +{ + struct voicecall_data *vd = ofono_voicecall_get_data(vc); + struct cb_data *cbd = cb_data_new(cb, data); + char buf[256]; + + cbd->user = vc; + snprintf(buf, sizeof(buf), "AT+BLDN"); + + if (g_at_chat_send(vd->chat, buf, none_prefix,
Since you don't need buf or snprintf here (you can simply send "AT+BLDN" instead of buf), I silently amended the commit to do that.
+ atd_cb, cbd, g_free) > 0) + return; + + g_free(cbd); + + CALLBACK_WITH_FAILURE(cb, data); + +}
Regards, -Denis _______________________________________________ ofono mailing list [email protected] https://lists.ofono.org/mailman/listinfo/ofono
