bluez5: backend-native: Send error for not supported event only as AG

The HS/HF roles should not sent error messages, only commands.
This commit is contained in:
Frédéric Danis 2024-07-15 13:27:30 +02:00
parent 3de4f0d48b
commit 291fd9704f

View file

@ -1388,7 +1388,8 @@ static void rfcomm_process_events(struct rfcomm *rfcomm, char *buf, bool ag, boo
if (!handler(rfcomm, token)) { if (!handler(rfcomm, token)) {
spa_log_debug(backend->log, "RFCOMM received unsupported event: %s", token); spa_log_debug(backend->log, "RFCOMM received unsupported event: %s", token);
rfcomm_send_error(rfcomm, CMEE_OPERATION_NOT_SUPPORTED); if (ag)
rfcomm_send_error(rfcomm, CMEE_OPERATION_NOT_SUPPORTED);
} }
} }
} }