Diff between 7b709307b9fe228e376e44b0f1306dac57873c86 and 8fd1e03cd6591731182febd98418e1bedff465a0

Changed Files

File Additions Deletions Status
src/adapter.c +8 -0 modified

Full Patch

diff --git a/src/adapter.c b/src/adapter.c
index 4a0f5b6..010ec2e 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);