Hi Patrik, > Since the Bluetooth Management Interface already associates > commands with a hci_dev, pass the hci_dev when calling > l2cap_chan_connect(). This indicates which specific hci_dev to > use for the l2cap connection and will be useful when connecting > or disconnecting Bluetooth IPSP. > > Modify the existing code to do a hci_dev lookup before calling > connect. > > Signed-off-by: Patrik Flykt <patrik.flykt@xxxxxxxxxxxxxxx> > --- > include/net/bluetooth/l2cap.h | 4 ++-- > net/bluetooth/6lowpan.c | 4 +++- > net/bluetooth/l2cap_core.c | 6 ++---- > net/bluetooth/l2cap_sock.c | 5 ++++- > 4 files changed, 11 insertions(+), 8 deletions(-) > > diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h > index 5ee3c68..b65ca60 100644 > --- a/include/net/bluetooth/l2cap.h > +++ b/include/net/bluetooth/l2cap.h > @@ -926,8 +926,8 @@ int l2cap_add_scid(struct l2cap_chan *chan, __u16 scid); > > struct l2cap_chan *l2cap_chan_create(void); > void l2cap_chan_close(struct l2cap_chan *chan, int reason); > -int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, > - bdaddr_t *dst, u8 dst_type); > +int l2cap_chan_connect(struct l2cap_chan *chan, struct hci_dev *hdev, > + __le16 psm, u16 cid, bdaddr_t *dst, u8 dst_type); actually lets not do that. I am pretty much against hacking just more parameters into this function. Do that in the l2cap_chan abstraction. It already knows which hci_dev it needs to pick. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html