Bluetooth: Ignore A2MP data on non-BR/EDR links
[deliverable/linux.git] / net / bluetooth / a2mp.c
index fe32a334a52d85002c28205f861736093acf8adb..efcd108822c43134e3d64755e24c16410f0598d5 100644 (file)
@@ -836,6 +836,9 @@ struct l2cap_chan *a2mp_channel_create(struct l2cap_conn *conn,
 {
        struct amp_mgr *mgr;
 
+       if (conn->hcon->type != ACL_LINK)
+               return NULL;
+
        mgr = amp_mgr_create(conn, false);
        if (!mgr) {
                BT_ERR("Could not create AMP manager");
This page took 0.026306 seconds and 5 git commands to generate.