The function which handles the incoming delay report command was fixed
in
2fd62cd. However, the function which send such command was not
updated. This commit fixes that.
Also, indicate that the stream does not support delay reporting with an
appropriate error code.
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
return -EINVAL;
if (stream->lsep->state != AVDTP_STATE_CONFIGURED &&
+ stream->lsep->state != AVDTP_STATE_OPEN &&
stream->lsep->state != AVDTP_STATE_STREAMING)
return -EINVAL;
if (!stream->delay_reporting || session->version < 0x0103)
- return -EINVAL;
+ return -ENOTSUP;
stream->delay = delay;