Hi Marcel, On Sun, Sep 29, 2013 at 09:11:01PM -0700, Marcel Holtmann wrote: > Hiding the Bluetooth high speed support behind a module parameter is > not really useful. This can be enabled and disabled at runtime via > the management interface. This also has the advantage that his can typo here. ... > diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c > index c85537c..9119898 100644 > --- a/net/bluetooth/l2cap_sock.c > +++ b/net/bluetooth/l2cap_sock.c > @@ -445,11 +445,6 @@ static int l2cap_sock_getsockopt(struct socket *sock, int level, int optname, > break; > > case BT_CHANNEL_POLICY: > - if (!enable_hs) { > - err = -ENOPROTOOPT; > - break; > - } > - Do you think we don't need to check that HS is enabled here and below? > if (put_user(chan->chan_policy, (u32 __user *) optval)) > err = -EFAULT; > break; > @@ -720,11 +715,6 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname, > break; > > case BT_CHANNEL_POLICY: > - if (!enable_hs) { > - err = -ENOPROTOOPT; > - break; > - } > - > if (get_user(opt, (u32 __user *) optval)) { > err = -EFAULT; > break; ... 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