diff options
author | Pauli Virtanen <pav@iki.fi> | 2021-09-05 18:43:56 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-09-06 21:36:10 -0700 |
commit | 055000ad1180fb751662e547e3ee85c930bf7d47 (patch) | |
tree | 603443b84f775a877b5e1afa62bf4cf1edf06293 /lib | |
parent | 0d09a5d339634ffd062dccf03739cb7c29abd060 (diff) | |
download | bluez-055000ad1180fb751662e547e3ee85c930bf7d47.tar.gz |
avdtp: use separate local SEID pool for each adapter
Local SEIDs are currently allocated from a pool that is common for all
adapters. However, AVDTP spec v1.3, sec 4.10 states "To prevent
conflicts, the scope of the SEID shall be both device-local and
connection-local. The application is responsible for assigning a SEID,
which is not in use on the connection to the same peer device." In
practice, registering the same media application for multiple adapters
can result to running out of SEIDs, even though the spec does not
require SEIDs to be unique across adapters.
To fix this, have a2dp_server own the SEID pool and pass it to avdtp
functions. Currently, a2dp_server is the only one that registers local
SEPs, and its correspondence to adapters is unique, so it can own the
pool.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions