linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Use correct flags for checking HCI_SSP_ENABLED bit
@ 2012-03-28 11:39 Hemant Gupta
  2012-03-28 11:46 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Hemant Gupta @ 2012-03-28 11:39 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Naresh Gupta, Hemant Gupta, Hemant Gupta

This patch uses the correct flags for checking the HCI_SSP_ENABLED bit.
Without this authentication request was not being initiated.

Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com>
---
 include/net/bluetooth/hci_core.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index fa2c778..c8d5beb 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -431,7 +431,7 @@ enum {
 static inline bool hci_conn_ssp_enabled(struct hci_conn *conn)
 {
 	struct hci_dev *hdev = conn->hdev;
-	return (test_bit(HCI_SSP_ENABLED, &hdev->flags) &&
+	return (test_bit(HCI_SSP_ENABLED, &hdev->dev_flags) &&
 				test_bit(HCI_CONN_SSP_ENABLED, &conn->flags));
 }
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Use correct flags for checking HCI_SSP_ENABLED bit
  2012-03-28 11:39 [PATCH] Use correct flags for checking HCI_SSP_ENABLED bit Hemant Gupta
@ 2012-03-28 11:46 ` Marcel Holtmann
  2012-03-28 12:00   ` Johan Hedberg
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2012-03-28 11:46 UTC (permalink / raw)
  To: Hemant Gupta; +Cc: linux-bluetooth, Naresh Gupta, Hemant Gupta

Hi Hemant,

> This patch uses the correct flags for checking the HCI_SSP_ENABLED bit.
> Without this authentication request was not being initiated.
> 
> Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com>
> ---
>  include/net/bluetooth/hci_core.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Acked-by: Marcel Holtmann <marcel@holtmann.org>

Regards

Marcel



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Use correct flags for checking HCI_SSP_ENABLED bit
  2012-03-28 11:46 ` Marcel Holtmann
@ 2012-03-28 12:00   ` Johan Hedberg
  0 siblings, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2012-03-28 12:00 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: Hemant Gupta, linux-bluetooth, Naresh Gupta, Hemant Gupta

Hi,

On Wed, Mar 28, 2012, Marcel Holtmann wrote:
> Hi Hemant,
> 
> > This patch uses the correct flags for checking the HCI_SSP_ENABLED bit.
> > Without this authentication request was not being initiated.
> > 
> > Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com>
> > ---
> >  include/net/bluetooth/hci_core.h |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> Acked-by: Marcel Holtmann <marcel@holtmann.org>

Applied to both bluetooth and bluetooth-next. Thanks.

Johan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-28 12:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-28 11:39 [PATCH] Use correct flags for checking HCI_SSP_ENABLED bit Hemant Gupta
2012-03-28 11:46 ` Marcel Holtmann
2012-03-28 12:00   ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).