summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-15 08:45:06 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-15 08:45:06 +0000
commit1d6c756e6d931b102b98fa7b2dbbebab4c8960e6 (patch)
tree03f05e339cbc613243e93adea5a4879420956a2a /audio
parentb45b19f412b9f8d18181ff450bfce2f0f21fb561 (diff)
STREAMING->OPEN happens first when Suspend response is received
Diffstat (limited to 'audio')
-rw-r--r--audio/avdtp.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 7efed380..d313899d 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -2181,7 +2181,6 @@ int avdtp_close(struct avdtp *session, struct avdtp_stream *stream)
int avdtp_suspend(struct avdtp *session, struct avdtp_stream *stream)
{
struct seid_req req;
- int ret;
if (!g_slist_find(session->streams, stream))
return -EINVAL;
@@ -2193,12 +2192,7 @@ int avdtp_suspend(struct avdtp *session, struct avdtp_stream *stream)
init_request(&req.header, AVDTP_SUSPEND);
req.acp_seid = stream->rseid;
- ret = send_request(session, FALSE, stream, &req, sizeof(req));
- if (ret == 0)
- avdtp_sep_set_state(session, stream->lsep,
- AVDTP_STATE_OPEN);
-
- return ret;
+ return send_request(session, FALSE, stream, &req, sizeof(req));
}
int avdtp_abort(struct avdtp *session, struct avdtp_stream *stream)