Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/2] Change default Link Loss alert level to high
@ 2011-08-19 14:11 Claudio Takahasi
  2011-08-19 14:11 ` [PATCH BlueZ 2/2] Disable Path Loss service in configuration file Claudio Takahasi
  2011-08-24  9:47 ` [PATCH BlueZ 1/2] Change default Link Loss alert level to high Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Claudio Takahasi @ 2011-08-19 14:11 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Claudio Takahasi

After creating a Proximity device, Link Loss alert level is always
written. Setting the default value to "high" enables alert without
requiring an application to change it later.
---
 proximity/monitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/proximity/monitor.c b/proximity/monitor.c
index 55d3985..252645f 100644
--- a/proximity/monitor.c
+++ b/proximity/monitor.c
@@ -571,7 +571,7 @@ int monitor_register(DBusConnection *conn, struct btd_device *device,
 	monitor = g_new0(struct monitor, 1);
 	monitor->device = btd_device_ref(device);
 	monitor->conn = dbus_connection_ref(conn);
-	monitor->linklosslevel = (level ? : g_strdup("none"));
+	monitor->linklosslevel = (level ? : g_strdup("high"));
 	monitor->signallevel = g_strdup("unknown");
 	monitor->immediatelevel = g_strdup("none");
 
-- 
1.7.6


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

end of thread, other threads:[~2011-08-24  9:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-19 14:11 [PATCH BlueZ 1/2] Change default Link Loss alert level to high Claudio Takahasi
2011-08-19 14:11 ` [PATCH BlueZ 2/2] Disable Path Loss service in configuration file Claudio Takahasi
2011-08-24  9:47 ` [PATCH BlueZ 1/2] Change default Link Loss alert level to high Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox