From 35a564d981800ce01bb227534b999e48dbc998e5 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 21 Feb 2014 21:25:47 -0800 Subject: [PATCH] core: Only load IRKs when support for LE Privacy is available --- src/adapter.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/adapter.c b/src/adapter.c index 68ce226fc..329de1657 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -2584,15 +2584,11 @@ static void load_irks(struct btd_adapter *adapter, GSList *irks) GSList *l; /* - * If the controller does not support Low Energy operation, - * there is no point in trying to load the identity resolving - * keys into the kernel. - * - * While there is no harm in loading keys into the kernel, - * this is an optimization since no long term keys will - * be loaded. + * If the controller does not support LE Privacy operation, + * there is no support for loading identity resolving keys + * into the kernel. */ - if (!(adapter->supported_settings & MGMT_SETTING_LE)) + if (!(adapter->supported_settings & MGMT_SETTING_PRIVACY)) return; irk_count = g_slist_length(irks); -- 2.47.3