diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2014-09-10 22:13:06 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-09-10 22:26:50 -0700 |
commit | 836139b6600b47c00268c9b0960e3ed1bd3b66c4 (patch) | |
tree | ed16fb830cd5ae306e7a02d246ed6cdcac5831db | |
parent | 09fa845c6204543193d99fcddf832ef4fa4606bd (diff) | |
download | bluez-836139b6600b47c00268c9b0960e3ed1bd3b66c4.tar.gz |
core: Fix storing connection parameters without store hint set
If store hint is not set those should not be stored persistently.
-rw-r--r-- | src/adapter.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/adapter.c b/src/adapter.c index 2192e906f..92ee1a047 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -6308,10 +6308,8 @@ static void new_conn_param(uint16_t index, uint16_t length, return; } - if (!ev->store_hint) { - device_set_conn_param(dev, min, max, latency, timeout); + if (!ev->store_hint) return; - } store_conn_param(adapter, &ev->addr.bdaddr, ev->addr.type, ev->min_interval, ev->max_interval, |