Hi Gustavo, On Thu, May 24, 2012 at 07:59:48PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan <gustavo.padovan@xxxxxxxxxxxxxxx> > > When DEFER_SETUP is set defer() will trigger an authorization request > to the userspace. > > Signed-off-by: Gustavo Padovan <gustavo.padovan@xxxxxxxxxxxxxxx> > --- > include/net/bluetooth/l2cap.h | 1 + > net/bluetooth/l2cap_core.c | 14 ++++++-------- > net/bluetooth/l2cap_sock.c | 12 ++++++++++++ > 3 files changed, 19 insertions(+), 8 deletions(-) > > diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h > index 46b5cff..b03861f 100644 > --- a/include/net/bluetooth/l2cap.h > +++ b/include/net/bluetooth/l2cap.h > @@ -531,6 +531,7 @@ struct l2cap_ops { > struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan, > unsigned long len, int nb); > void (*ready) (void *data); > + void (*defer) (void *data); > }; > > struct l2cap_conn { > diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c > index 20e4a9b..7719508 100644 > --- a/net/bluetooth/l2cap_core.c > +++ b/net/bluetooth/l2cap_core.c > @@ -1058,12 +1058,10 @@ static void l2cap_conn_start(struct l2cap_conn *conn) > lock_sock(sk); > if (test_bit(CONF_DEFER_SETUP, > &chan->conf_state)) { > - struct sock *parent = bt_sk(sk)->parent; > rsp.result = cpu_to_le16(L2CAP_CR_PEND); > rsp.status = cpu_to_le16(L2CAP_CS_AUTHOR_PEND); Looks like this is not against the latest tree ;) Otherwise looks good. Best regards Andrei Emeltchenko -- 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