The Core SPEC is not clear regarding the behaviour or the GAP Appearance characteristic. According to the SPEC, the Appearance characteristic should be readable without authentication or authorization. This patch will keep the Appearance characteristic value refresh (read) on every re-connection if the value is 0x0000. --- profiles/gatt/gas.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/profiles/gatt/gas.c b/profiles/gatt/gas.c index 8817e6d..248a88e 100644 --- a/profiles/gatt/gas.c +++ b/profiles/gatt/gas.c @@ -97,6 +97,9 @@ static void gap_appearance_cb(guint8 status, const guint8 *pdu, guint16 plen, device_set_appearance(gas->device, app); + if (app == 0x0000) + goto done; + adapter_get_address(device_get_adapter(gas->device), &src); device_get_address(gas->device, &dst, &type); -- 1.7.8.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html