From 8fd1e03cd6591731182febd98418e1bedff465a0 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 2 Jul 2014 16:27:04 +0200 Subject: [PATCH] core: Don't load connection parameters when LE is not supported --- src/adapter.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/adapter.c b/src/adapter.c index 4a0f5b669..010ec2e8c 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -2742,6 +2742,14 @@ static void load_conn_params(struct btd_adapter *adapter, GSList *params) unsigned int id; GSList *l; + /* + * If the controller does not support Low Energy operation, + * there is no point in trying to load the connection + * parameters into the kernel. + */ + if (!(adapter->supported_settings & MGMT_SETTING_LE)) + return; + param_count = g_slist_length(params); DBG("hci%u conn params %zu", adapter->dev_id, param_count); -- 2.47.3