From: Archie Pusaka Date: Fri, 20 Mar 2020 05:14:25 +0000 (+0800) Subject: avdtp: fix delay report valid states X-Git-Tag: accepted/tizen/unified/20210607.124421~222 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c12135f68fba878f7111367b0c649469e5b15385;p=platform%2Fupstream%2Fbluez.git avdtp: fix delay report valid states According to AVDTP specification section 6.19, avdtp_delayreport_cmd could also be received when the state of SEP is open. Therefore, updating to accommodate such condition. Signed-off-by: Anuj Jain Signed-off-by: Ayush Garg --- diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c index caa6693..a91f403 100644 --- a/profiles/audio/avdtp.c +++ b/profiles/audio/avdtp.c @@ -2389,6 +2389,7 @@ static gboolean avdtp_delayreport_cmd(struct avdtp *session, stream = sep->stream; if (sep->state != AVDTP_STATE_CONFIGURED && + sep->state != AVDTP_STATE_OPEN && sep->state != AVDTP_STATE_STREAMING) { err = AVDTP_BAD_STATE; goto failed;