Johan Hedberg dec5b49235 Bluetooth: Add public l2cap_conn_shutdown() API to request disconnection
Since we no-longer do special handling of SMP within l2cap_core.c we
don't have any code for calling l2cap_conn_del() when smp.c doesn't like
the data it gets. At the same time we cannot simply export
l2cap_conn_del() since it will try to lock the channels it calls into
whereas we already hold the lock in the smp.c l2cap_chan callbacks (i.e.
it'd lead to a deadlock).

This patch adds a new l2cap_conn_shutdown() API which is very similar to
l2cap_conn_del() except that it defers the call to l2cap_conn_del()
through a workqueue, thereby making it safe to use it from an L2CAP
channel callback.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2014-08-14 08:49:21 +02:00
..
2014-07-30 19:28:41 +02:00
2013-12-28 17:02:46 -05:00
2014-04-30 13:31:25 -04:00
2012-07-19 10:43:03 -07:00
2013-11-07 19:28:58 -05:00
2014-06-04 22:46:38 -07:00
2013-01-27 22:46:33 -05:00
2014-06-27 15:53:35 -07:00
2014-04-18 14:20:48 +02:00
2014-01-03 20:56:48 -05:00
2014-03-24 12:45:01 -04:00
2014-06-02 11:00:41 -07:00
2014-05-07 16:06:05 -04:00
2014-08-06 12:38:07 -07:00
2014-05-22 14:57:15 -04:00
2014-07-07 21:14:21 -07:00
2014-04-23 08:21:04 +02:00