OSDN Git Service

agent: Change default IO capability to KeyboardDisplay
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 25 Nov 2015 12:20:03 +0000 (14:20 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 25 Nov 2015 12:20:03 +0000 (14:20 +0200)
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.

doc/agent-api.txt
src/agent.c

index 2e70931..801ccb6 100644 (file)
@@ -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
index 12e369a..ff44d57 100644 (file)
@@ -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"))