mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
bluez5: backend-native: add two missing OK HFP replies
We should reply OK to both AT+BIEV and AT+IPHONEACCEV.
This commit is contained in:
parent
d5390c7199
commit
772ff3365b
1 changed files with 2 additions and 0 deletions
|
|
@ -1062,6 +1062,7 @@ next_indicator:
|
||||||
rfcomm_send_reply(rfcomm, "OK");
|
rfcomm_send_reply(rfcomm, "OK");
|
||||||
} else if (sscanf(buf, "AT+BIEV=%u,%u", &indicator, &indicator_value) == 2) {
|
} else if (sscanf(buf, "AT+BIEV=%u,%u", &indicator, &indicator_value) == 2) {
|
||||||
process_hfp_hf_indicator(rfcomm, indicator, indicator_value);
|
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) {
|
} 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) {
|
if (xapl_features & SPA_BT_HFP_HF_XAPL_FEATURE_BATTERY_REPORTING) {
|
||||||
/* claim, that we support battery status reports */
|
/* claim, that we support battery status reports */
|
||||||
|
|
@ -1083,6 +1084,7 @@ next_indicator:
|
||||||
process_iphoneaccev_indicator(rfcomm, key, value);
|
process_iphoneaccev_indicator(rfcomm, key, value);
|
||||||
buf += r;
|
buf += r;
|
||||||
}
|
}
|
||||||
|
rfcomm_send_reply(rfcomm, "OK");
|
||||||
} else if (spa_strstartswith(buf, "AT+APLSIRI?")) {
|
} else if (spa_strstartswith(buf, "AT+APLSIRI?")) {
|
||||||
// This command is sent when we activate Apple extensions
|
// This command is sent when we activate Apple extensions
|
||||||
rfcomm_send_reply(rfcomm, "OK");
|
rfcomm_send_reply(rfcomm, "OK");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue