[PATCH BlueZ] mgmtops: Fix wrong parameter order for btd_event_ltk_notify()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The "master" parameter was in the wrong place.
---
 plugins/mgmtops.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

To those interested, this was not noticed before because:

* We don't use the stored information yet (although we will probably use soon
  the "authenticated" field for ATT requests that return "Insufficient
  Authentication")
* The storage types for master/authenticated/enc_size are compatible.

diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index ddd544d..22fa329 100644
--- a/plugins/mgmtops.c
+++ b/plugins/mgmtops.c
@@ -1694,9 +1694,9 @@ static void mgmt_new_ltk(int sk, uint16_t index, void *buf, size_t len)
 
 	if (ev->store_hint) {
 		btd_event_ltk_notify(&info->bdaddr, &ev->key.addr.bdaddr,
-				ev->key.addr.type, ev->key.val,
+				ev->key.addr.type, ev->key.val, ev->key.master,
 				ev->key.authenticated, ev->key.enc_size,
-				ev->key.master, ev->key.ediv, ev->key.rand);
+				ev->key.ediv, ev->key.rand);
 	}
 
 	if (ev->key.master)
-- 
1.7.5.4

--
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


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux