Skip to contentSkip to conversation

agent: Change default IO capability to KeyboardDisplay

PATCH Applied Johan Hedberg 1 participant 2 messages Nov 25, 2015 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 agent: Change default IO capability to KeyboardDisplay

From: Johan Hedberg <[email protected]>

The intention of the DisplayYesNo default capability was originally to provide the richest possible option available. However with LE there is a new even more capable option, namely KeyboardDisplay. When applied to BR/EDR connections this gets implicitly downgraded to DisplayYesNo since KeyboardDisplay is LE-specific.
---
I'm sending this to the list for comments since in principle it's changing the behavior of a non-experimental D-Bus API.

 doc/agent-api.txt | 2 +-
 src/agent.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
doc/agent-api.txt +1 -1
index 2e70931a04bf..801ccb665450 100644
@@ -37,7 +37,7 @@ Object path	/org/bluez
 			agent.
 
 			If an empty string is used it will fallback to
-			"DisplayYesNo".
+			"KeyboardDisplay".
 
 			Possible errors: org.bluez.Error.InvalidArguments
 					 org.bluez.Error.AlreadyExists
src/agent.c +1 -1
index 12e369ac2b19..ff44d575583e 100644
@@ -924,7 +924,7 @@ static void agent_destroy(gpointer data)
 static uint8_t parse_io_capability(const char *capability)
 {
 	if (g_str_equal(capability, ""))
-		return IO_CAPABILITY_DISPLAYYESNO;
+		return IO_CAPABILITY_KEYBOARDDISPLAY;
 	if (g_str_equal(capability, "DisplayOnly"))
 		return IO_CAPABILITY_DISPLAYONLY;
 	if (g_str_equal(capability, "DisplayYesNo"))
Signature · 1 line
2.5.0
author Applied
#1 lore raw

Hi,

Quoted 9 lines · Johan Hedberg

The intention of the DisplayYesNo default capability was originally to provide the richest possible option available. However with LE there is a new even more capable option, namely KeyboardDisplay. When applied to BR/EDR connections this gets implicitly downgraded to DisplayYesNo since KeyboardDisplay is LE-specific.
---
I'm sending this to the list for comments since in principle it's changing the behavior of a non-experimental D-Bus API.

Quoted 3 lines
 doc/agent-api.txt | 2 +-
 src/agent.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Applied.

Johan