From 58ceef5033eed699bfd7db9eaaf382823f2114ad Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 30 Apr 2005 18:46:01 +0000 Subject: Read the stored link keys when starting the security manager --- hcid/security.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hcid/security.c b/hcid/security.c index 5b2dc285..921875b3 100644 --- a/hcid/security.c +++ b/hcid/security.c @@ -584,6 +584,7 @@ void start_security_manager(int hdev) GIOChannel *chan = io_chan[hdev]; struct hci_dev_info *di; struct hci_filter flt; + read_stored_link_key_cp cp; int dev; if (chan) @@ -635,6 +636,12 @@ void start_security_manager(int hdev) io_security_event, (void *) di); io_chan[hdev] = chan; + + bacpy(&cp.bdaddr, BDADDR_ANY); + cp.read_all = 1; + + hci_send_cmd(dev, OGF_HOST_CTL, OCF_READ_STORED_LINK_KEY, + READ_STORED_LINK_KEY_CP_SIZE, (void *) &cp); } void stop_security_manager(int hdev) -- cgit