linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] core: Fix storing connection parameters without store hint set
@ 2014-09-10 20:13 Szymon Janc
  2014-09-10 20:13 ` [PATCH 2/2] core: Remove not used device_set_conn_param function Szymon Janc
  2014-09-11  5:27 ` [PATCH 1/2] core: Fix storing connection parameters without store hint set Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Szymon Janc @ 2014-09-10 20:13 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

If store hint is not set those should not be stored persistently.
---

I've decided to leave storing in adapter.c to keep it similar to new
keys events. Memebers in device.c were used only for storing anyway.

 src/adapter.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/adapter.c b/src/adapter.c
index 2192e90..92ee1a0 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,
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-11  5:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-10 20:13 [PATCH 1/2] core: Fix storing connection parameters without store hint set Szymon Janc
2014-09-10 20:13 ` [PATCH 2/2] core: Remove not used device_set_conn_param function Szymon Janc
2014-09-11  5:27 ` [PATCH 1/2] core: Fix storing connection parameters without store hint set Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).