From 772ff3365ba98cc923ebce0de010bf3686158175 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Fri, 7 Apr 2023 16:41:52 +0300 Subject: [PATCH] bluez5: backend-native: add two missing OK HFP replies We should reply OK to both AT+BIEV and AT+IPHONEACCEV. --- spa/plugins/bluez5/backend-native.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index 2ec64eddd..8b88b01fb 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -1062,6 +1062,7 @@ next_indicator: rfcomm_send_reply(rfcomm, "OK"); } else if (sscanf(buf, "AT+BIEV=%u,%u", &indicator, &indicator_value) == 2) { process_hfp_hf_indicator(rfcomm, indicator, indicator_value); + rfcomm_send_reply(rfcomm, "OK"); } else if (sscanf(buf, "AT+XAPL=%04x-%04x-%*[^,],%u", &xapl_vendor, &xapl_product, &xapl_features) == 3) { if (xapl_features & SPA_BT_HFP_HF_XAPL_FEATURE_BATTERY_REPORTING) { /* claim, that we support battery status reports */ @@ -1083,6 +1084,7 @@ next_indicator: process_iphoneaccev_indicator(rfcomm, key, value); buf += r; } + rfcomm_send_reply(rfcomm, "OK"); } else if (spa_strstartswith(buf, "AT+APLSIRI?")) { // This command is sent when we activate Apple extensions rfcomm_send_reply(rfcomm, "OK");