agent: Change default IO capability to KeyboardDisplay
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
@@ -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
@@ -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
Johan Hedberg
AppliedHi,
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