diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-11-25 14:20:03 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-11-25 14:20:03 +0200 |
commit | cd64eb533abea0e2a25d0f74dc66a9ab26c32da7 (patch) | |
tree | 32988745886bd98646e0df3c3f8189dfa53cf99e | |
parent | 537c69f76e34d2aa168062098a1125449b3b262b (diff) | |
download | bluez-cd64eb533abea0e2a25d0f74dc66a9ab26c32da7.tar.gz |
agent: Change default IO capability to KeyboardDisplay
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.
-rw-r--r-- | doc/agent-api.txt | 2 | ||||
-rw-r--r-- | src/agent.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/agent-api.txt b/doc/agent-api.txt index 2e70931a0..801ccb665 100644 --- a/doc/agent-api.txt +++ b/doc/agent-api.txt @@ -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 diff --git a/src/agent.c b/src/agent.c index 12e369ac2..ff44d5755 100644 --- a/src/agent.c +++ b/src/agent.c @@ -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")) |