mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-06 06:35:12 +00:00
Bluetooth: Ignore A2MP data on non-BR/EDR links
The A2MP CID is only valid for BR/EDR transports. We should ignore A2MP data on non-BR/EDR links and refuse to create an amp_mgr object. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
a521149a0d
commit
07e307f807
1 changed files with 3 additions and 0 deletions
|
@ -836,6 +836,9 @@ struct l2cap_chan *a2mp_channel_create(struct l2cap_conn *conn,
|
||||||
{
|
{
|
||||||
struct amp_mgr *mgr;
|
struct amp_mgr *mgr;
|
||||||
|
|
||||||
|
if (conn->hcon->type != ACL_LINK)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
mgr = amp_mgr_create(conn, false);
|
mgr = amp_mgr_create(conn, false);
|
||||||
if (!mgr) {
|
if (!mgr) {
|
||||||
BT_ERR("Could not create AMP manager");
|
BT_ERR("Could not create AMP manager");
|
||||||
|
|
Loading…
Add table
Reference in a new issue