* [PATCH] Bluetooth: Send correct address type for LTK
@ 2012-03-30 11:53 Hemant Gupta
2012-03-30 12:16 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Hemant Gupta @ 2012-03-30 11:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Naresh Gupta, Hemant Gupta, Hemant Gupta
This patch updates the address type sent from kernel to
management interface of BlueZ while sending the Long Term
Key.
Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com>
---
net/bluetooth/mgmt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 5a56e0c..b4f7e32 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -2978,7 +2978,7 @@ int mgmt_new_ltk(struct hci_dev *hdev, struct smp_ltk *key, u8 persistent)
ev.store_hint = persistent;
bacpy(&ev.key.addr.bdaddr, &key->bdaddr);
- ev.key.addr.type = key->bdaddr_type;
+ ev.key.addr.type = link_to_mgmt(LE_LINK, key->bdaddr_type);
ev.key.authenticated = key->authenticated;
ev.key.enc_size = key->enc_size;
ev.key.ediv = key->ediv;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Bluetooth: Send correct address type for LTK
2012-03-30 11:53 [PATCH] Bluetooth: Send correct address type for LTK Hemant Gupta
@ 2012-03-30 12:16 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2012-03-30 12:16 UTC (permalink / raw)
To: Hemant Gupta; +Cc: linux-bluetooth, Naresh Gupta, Hemant Gupta
Hi Hemant,
On Fri, Mar 30, 2012, Hemant Gupta wrote:
> This patch updates the address type sent from kernel to
> management interface of BlueZ while sending the Long Term
> Key.
>
> Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com>
> ---
> net/bluetooth/mgmt.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied to bluetooth-next. Thanks.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-30 12:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-30 11:53 [PATCH] Bluetooth: Send correct address type for LTK Hemant Gupta
2012-03-30 12:16 ` 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).