mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 01:04:40 +08:00
Fix seid counting in suspend and start requests
This commit is contained in:
parent
6cfc40dfe5
commit
ab622e0de1
@ -941,7 +941,7 @@ static gboolean avdtp_start_cmd(struct avdtp *session, struct start_req *req,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
seid_count = 1 + (sizeof(struct start_req) - size);
|
||||
seid_count = 1 + size - sizeof(struct start_req);
|
||||
|
||||
seid = &req->first_seid;
|
||||
|
||||
@ -1048,7 +1048,7 @@ static gboolean avdtp_suspend_cmd(struct avdtp *session,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
seid_count = 1 + (sizeof(struct suspend_req) - size);
|
||||
seid_count = 1 + size - sizeof(struct suspend_req);
|
||||
|
||||
seid = &req->first_seid;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user