From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 11 Nov 2011 16:43:46 +0200 From: Emeltchenko Andrei To: Marcel Holtmann Cc: linux-bluetooth@vger.kernel.org Subject: Re: [RFC 2/2] Bluetooth: Do not set HCI_RAW when HS enabled Message-ID: <20111111144344.GC9094@aemeltch-MOBL1> References: <1321020867-8938-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> <1321020867-8938-2-git-send-email-Andrei.Emeltchenko.news@gmail.com> <1321021801.15441.397.camel@aeonflux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1321021801.15441.397.camel@aeonflux> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Marcel, On Fri, Nov 11, 2011 at 11:29:57PM +0900, Marcel Holtmann wrote: > Hi Andrei, > > > net/bluetooth/hci_core.c | 6 ++++-- > > 1 files changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c > > index 189bada..1b08e4b 100644 > > --- a/net/bluetooth/hci_core.c > > +++ b/net/bluetooth/hci_core.c > > @@ -51,6 +51,7 @@ > > > > #include > > #include > > +#include > > > > #define AUTO_OFF_TIMEOUT 2000 > > > > @@ -570,8 +571,9 @@ int hci_dev_open(__u16 dev) > > if (test_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks)) > > set_bit(HCI_RAW, &hdev->flags); > > > > - /* Treat all non BR/EDR controllers as raw devices for now */ > > - if (hdev->dev_type != HCI_BREDR) > > + /* Treat all non BR/EDR controllers as raw devices if > > + enable_hs is not set */ > > + if (hdev->dev_type != HCI_BREDR && !enable_hs) > > set_bit(HCI_RAW, &hdev->flags); > > this is fine with me. Even while the include of l2cap.h is kinda nasty. > Maybe the enable_hs variable actually needs to be moved into hci_*.c > files and not stay inside L2CAP. I agree that moving enable_hs to hci header is better. Will resend with this change. Best regards Andrei Emeltchenko > > Acked-by: Marcel Holtmann > > Regards > > Marcel > >