* Re: [RFC net-next] ipv6: ext_header: add function to handle RPL extension header option 0x63
From: Jiri Pirko @ 2017-05-04 16:00 UTC (permalink / raw)
To: Andreas Bardoutsos
Cc: netdev, linux-wpan, Michael Richardson, Unstrung Hackers,
netdev-owner, linux-bluetooth
In-Reply-To: <dca567582f1979384fb1f3c3d1411349@ceid.upatras.gr>
Thu, May 04, 2017 at 05:17:18PM CEST, bardoutsos@ceid.upatras.gr wrote:
>Signed-off-by: Andreas Bardoutsos <bardoutsos@ceid.upatras.gr>
>---
>Hi all!
>
>I have added a dump function(always return true) to recognise RPL extension
>header(RFC6553)
>Otherwise packet was dropped by kernel resulting in failing communication in
>RPL DAG's between
>linux running border routers and devices in the graph.For example
>communication
>with contiki OS running devices was previously impossible.
>
> include/uapi/linux/in6.h | 1 +
> net/ipv6/exthdrs.c | 13 +++++++++++++
> 2 files changed, 14 insertions(+)
>
>diff --git a/include/uapi/linux/in6.h b/include/uapi/linux/in6.h
>index 46444f8fbee4..5cc12d309dfe 100644
>--- a/include/uapi/linux/in6.h
>+++ b/include/uapi/linux/in6.h
>@@ -146,6 +146,7 @@ struct in6_flowlabel_req {
> #define IPV6_TLV_CALIPSO 7 /* RFC 5570 */
> #define IPV6_TLV_JUMBO 194
> #define IPV6_TLV_HAO 201 /* home address option */
>+#define IPV6_TLV_RPL 99 /* RFC 6553 */
>
> /*
> * IPV6 socket options
>diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
>index b636f1da9aec..82ed60d3180e 100644
>--- a/net/ipv6/exthdrs.c
>+++ b/net/ipv6/exthdrs.c
>@@ -785,6 +785,15 @@ static bool ipv6_hop_calipso(struct sk_buff *skb, int
>optoff)
> return false;
> }
>
>+/* RPL RFC 6553 */
>+
>+static bool ipv6_hop_rpl(struct sk_buff *skb, int optoff)
>+{
>+ /*Dump function which always return true
>+ *when rpl option is detected*/
This is definitelly wrong formatting of comment. Did you run checkpatch?
>+ return true;
>+}
>+
> static const struct tlvtype_proc tlvprochopopt_lst[] = {
> {
> .type = IPV6_TLV_ROUTERALERT,
>@@ -798,6 +807,10 @@ static const struct tlvtype_proc tlvprochopopt_lst[] = {
> .type = IPV6_TLV_CALIPSO,
> .func = ipv6_hop_calipso,
> },
>+ {
>+ .type = IPV6_TLV_RPL,
>+ .func = ipv6_hop_rpl,
>+ },
> { -1, }
> };
>
^ permalink raw reply
* [RFC net-next] ipv6: ext_header: add function to handle RPL extension header option 0x63
From: Andreas Bardoutsos @ 2017-05-04 15:17 UTC (permalink / raw)
To: netdev
Cc: linux-wpan, Michael Richardson, Unstrung Hackers, netdev-owner,
linux-bluetooth
Signed-off-by: Andreas Bardoutsos <bardoutsos@ceid.upatras.gr>
---
Hi all!
I have added a dump function(always return true) to recognise RPL
extension header(RFC6553)
Otherwise packet was dropped by kernel resulting in failing
communication in RPL DAG's between
linux running border routers and devices in the graph.For example
communication
with contiki OS running devices was previously impossible.
include/uapi/linux/in6.h | 1 +
net/ipv6/exthdrs.c | 13 +++++++++++++
2 files changed, 14 insertions(+)
diff --git a/include/uapi/linux/in6.h b/include/uapi/linux/in6.h
index 46444f8fbee4..5cc12d309dfe 100644
--- a/include/uapi/linux/in6.h
+++ b/include/uapi/linux/in6.h
@@ -146,6 +146,7 @@ struct in6_flowlabel_req {
#define IPV6_TLV_CALIPSO 7 /* RFC 5570 */
#define IPV6_TLV_JUMBO 194
#define IPV6_TLV_HAO 201 /* home address option */
+#define IPV6_TLV_RPL 99 /* RFC 6553 */
/*
* IPV6 socket options
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index b636f1da9aec..82ed60d3180e 100644
--- a/net/ipv6/exthdrs.c
+++ b/net/ipv6/exthdrs.c
@@ -785,6 +785,15 @@ static bool ipv6_hop_calipso(struct sk_buff *skb,
int optoff)
return false;
}
+/* RPL RFC 6553 */
+
+static bool ipv6_hop_rpl(struct sk_buff *skb, int optoff)
+{
+ /*Dump function which always return true
+ *when rpl option is detected*/
+ return true;
+}
+
static const struct tlvtype_proc tlvprochopopt_lst[] = {
{
.type = IPV6_TLV_ROUTERALERT,
@@ -798,6 +807,10 @@ static const struct tlvtype_proc
tlvprochopopt_lst[] = {
.type = IPV6_TLV_CALIPSO,
.func = ipv6_hop_calipso,
},
+ {
+ .type = IPV6_TLV_RPL,
+ .func = ipv6_hop_rpl,
+ },
{ -1, }
};
^ permalink raw reply related
* Re: KORG nanoKONTROL Studio MIDI over Bluetooth problem
From: Felipe Ferreri Tonello @ 2017-05-04 11:51 UTC (permalink / raw)
To: Robert Schneider, linux-bluetooth
In-Reply-To: <7ea3e489-8dff-4178-906f-cae18da6647c@aramar.de>
[-- Attachment #1: Type: text/plain, Size: 2409 bytes --]
Hi Dave,
On 03/05/17 19:02, Robert Schneider wrote:
> Hi,
> I'm trying to get my KORG nanoKONTROL Studio working with the current
> BlueZ stack (GIT as of May 3rd).
> However, it seems the bonding fails for some reason.
>
> May 3 19:48:30 Maui bluetoothd[32743]:
> src/adapter.c:bonding_attempt_complete() hci0 bdaddr 60:F1:89:28:DA:1F
> type 1 status 0x5
> May 3 19:48:30 Maui bluetoothd[32743]:
> src/device.c:device_bonding_complete() bonding (nil) status 0x05
> May 3 19:48:30 Maui bluetoothd[32743]:
> src/device.c:device_bonding_failed() status 5
> May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
> May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:dev_disconnected()
> Device 60:F1:89:28:DA:1F disconnected, reason 2
> May 3 19:48:30 Maui bluetoothd[32743]:
> src/adapter.c:adapter_remove_connection()
> May 3 19:48:30 Maui bluetoothd[32743]: plugins/policy.c:disconnect_cb()
> reason 2
> May 3 19:48:30 Maui bluetoothd[32743]:
> src/adapter.c:bonding_attempt_complete() hci0 bdaddr 60:F1:89:28:DA:1F
> type 1 status 0xe
> May 3 19:48:30 Maui bluetoothd[32743]:
> src/device.c:device_bonding_complete() bonding (nil) status 0x0e
> May 3 19:48:30 Maui bluetoothd[32743]:
> src/device.c:device_bonding_failed() status 14
> May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
> May 3 19:48:30 Maui bluetoothd[32743]: MIDI I/O: Failed to read initial
> request
>
> I do not have any thorough bluetooth skill. Could somebody look at the
> attached log and point me into some direction?
> I restarted bluetoothd freshly with nothing in /var/lib/bluetooth.
I looked into the log, and it appears that the driver is working correctly.
It setups the profile for each device that it knows, it accepts the
connection when that happens. Then it tries to make the initial MIDI I/O
characteristic read, which returns an error.
Apparently the nanoKONTROL is not allowing the central to read the
initial value, which is defined in the specification as part of the
connection procedure.
Another problem I also noticed is that it does connect/disconnect very
often, which might indicate a connection parameter problem. I am
currently working on that at the Kernel level.
To work-around it, try doing this[1] as described in my blog post.
[1]
https://blog.felipetonello.com/2017/01/13/midi-over-bluetooth-low-energy-on-linux-finally-accepted/
--
Felipe
[-- Attachment #2: 0x92698E6A.asc --]
[-- Type: application/pgp-keys, Size: 7291 bytes --]
^ permalink raw reply
* Re: [PATCHv2 0/4] Motorola Droid 4: Add WL1285C support
From: Tony Lindgren @ 2017-05-04 0:19 UTC (permalink / raw)
To: Sebastian Reichel
Cc: Marcel Holtmann, Rob Herring, David S. Miller, Kalle Valo,
open list:BLUETOOTH DRIVERS, linux-wireless, linux-omap,
linux-kernel@vger.kernel.org
In-Reply-To: <20170503160827.v5owcbiclea4f7kx@earth>
* Sebastian Reichel <sebastian.reichel@collabora.co.uk> [170503 09:11]:
> Hi,
>=20
> On Wed, May 03, 2017 at 05:02:13PM +0200, Marcel Holtmann wrote:
> > >> Motorola Droid 4 uses a WL1285C, as visible on iFixit [0]. This
> > >> fixes the DT file to use correct compatible for the wifi node
> > >> and adds the bluetooth node.
> > >>=20
> > >> [0] https://www.ifixit.com/Teardown/Motorola+Droid+4+Teardown/7759#s=
31961
> > >>=20
> > >> Changes to PATCHv1:
> > >> - use proper compatible value for bluetooth / shared transport
> > >> - add patches fixing wlcore compatible for Droid 4
> > >>=20
> > >> -- Sebastian
> > >>=20
> > >> Sebastian Reichel (4):
> > >> wlcore: add wl1285 compatible
> > >> ARM: dts: omap4-droid4: Use wl1285 for wifi compatible
> > >> Bluetooth: hci_ll: Add compatible values for more WL chips
> > >> ARM: dts: omap4-droid4: Add bluetooth
> > >=20
> > > For the series,
> > >=20
> > > Reviewed-by: Rob Herring <robh@kernel.org>
> >=20
> > so now the question is if we merge this through a single
> > maintainer or have each maintainer take the pieces? I would almost
> > suggest that Dave Miller takes this directly into net-next to make
> > this smoother.
>=20
> I think the only complex thing is, that patch 2 should only be
> applied after patch 1. So maybe patch 1 could be applied via
> wireless/net-next for 4.12 and the other ones go through the
> individual subsystems for 4.13?
Yeah removing dependencies where possible avoids pointless
merge conflicts later on.
Please send patches 1 and 2 together as a single patch to
Dave Miller and describe why it's needed for v4.12. The rest
can then get merged via the BT and DT trees.
Regards,
Tony
^ permalink raw reply
* KORG nanoKONTROL Studio MIDI over Bluetooth problem
From: Robert Schneider @ 2017-05-03 18:02 UTC (permalink / raw)
To: linux-bluetooth
[-- Attachment #1: Type: text/plain, Size: 1553 bytes --]
Hi,
I'm trying to get my KORG nanoKONTROL Studio working with the current BlueZ
stack (GIT as of May 3rd).
However, it seems the bonding fails for some reason.
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:bonding_attempt_complete()
hci0 bdaddr 60:F1:89:28:DA:1F type 1 status 0x5
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_bonding_complete()
bonding (nil) status 0x05
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_bonding_failed()
status 5
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:dev_disconnected() Device
60:F1:89:28:DA:1F disconnected, reason 2
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:adapter_remove_connection()
May 3 19:48:30 Maui bluetoothd[32743]: plugins/policy.c:disconnect_cb() reason 2
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:bonding_attempt_complete()
hci0 bdaddr 60:F1:89:28:DA:1F type 1 status 0xe
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_bonding_complete()
bonding (nil) status 0x0e
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_bonding_failed()
status 14
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
May 3 19:48:30 Maui bluetoothd[32743]: MIDI I/O: Failed to read initial request
I do not have any thorough bluetooth skill. Could somebody look at the attached
log and point me into some direction?
I restarted bluetoothd freshly with nothing in /var/lib/bluetooth.
Thanks in advance and best regards,
Robert
[-- Attachment #2: Korg-nanoKONTROL-Studio-bluetooth.log --]
[-- Type: text/x-log, Size: 57717 bytes --]
May 3 19:47:12 Maui systemd[1]: Starting Bluetooth service...
May 3 19:47:12 Maui bluetoothd[32743]: Bluetooth daemon 5.44
May 3 19:47:12 Maui systemd[1]: Started Bluetooth service.
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_init() sending read version command
May 3 19:47:12 Maui bluetoothd[32743]: Starting SDP server
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:register_device_id() Adding device id record for 0002:1d6b:0246:052c
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:plugin_init() Loading builtin plugins
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading hostname plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading wiimote plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading autopair plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading policy plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading a2dp plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading avrcp plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading network plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading input plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading hog plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading gap plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading scanparam plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading deviceinfo plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:add_plugin() Loading midi plugin
May 3 19:47:12 Maui bluetoothd[32743]: src/plugin.c:plugin_init() Loading plugins /usr/local/lib/bluetooth/plugins
May 3 19:47:12 Maui bluetoothd[32743]: profiles/input/suspend-none.c:suspend_init()
May 3 19:47:12 Maui bluetoothd[32743]: profiles/network/manager.c:read_config() Config options: Security=true
May 3 19:47:12 Maui systemd[1]: Starting Hostname Service...
May 3 19:47:12 Maui bluetoothd[32743]: plugins/hostname.c:read_dmi_fallback() chassis: desktop
May 3 19:47:12 Maui pulseaudio[27272]: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
May 3 19:47:12 Maui bluetoothd[32743]: plugins/hostname.c:read_dmi_fallback() major: 0x01 minor: 0x01
May 3 19:47:12 Maui bluetoothd[32743]: src/main.c:main() Entering main loop
May 3 19:47:12 Maui dbus[1218]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
May 3 19:47:12 Maui bluetoothd[32743]: src/rfkill.c:rfkill_event() RFKILL event idx 30 type 2 op 0 soft 0 hard 0
May 3 19:47:12 Maui bluetoothd[32743]: Bluetooth management interface 1.14 initialized
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:read_version_complete() sending read supported commands command
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:read_version_complete() sending read index list command
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:read_commands_complete() Number of commands: 65
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:read_commands_complete() Number of events: 35
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:read_commands_complete() enabling kernel-side connection control
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:read_index_list_complete() Number of controllers: 1
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:read_index_list_complete() Found index 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:index_added() index 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:btd_adapter_new() System name: BlueZ 5.44
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:btd_adapter_new() Major class: 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:btd_adapter_new() Minor class: 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:btd_adapter_new() Modalias: usb:v1D6Bp0246d052C
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:btd_adapter_new() Discoverable timeout: 180 seconds
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:btd_adapter_new() Pairable timeout: 0 seconds
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:index_added() sending read info command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:read_info_complete() index 0 status 0x00
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:clear_uuids() sending clear uuids command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:clear_devices() sending clear devices command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:set_privacy() sending set privacy command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:set_privacy() setting privacy mode 0x00 for index 0
May 3 19:47:12 Maui bluetoothd[32743]: src/gatt-database.c:btd_gatt_database_new() GATT Manager registered for adapter: /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_add() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10001
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001800-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:add_uuid() sending add uuid command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_add() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10002
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001801-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:add_uuid() sending add uuid command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: profiles/audio/a2dp.c:media_server_probe() path /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: plugins/hostname.c:hostname_probe()
May 3 19:47:12 Maui bluetoothd[32743]: plugins/hostname.c:update_class() major: 0x01 minor: 0x01
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:btd_adapter_set_class() class: major 1 minor 1
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:set_dev_class() sending set device class command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: profiles/network/manager.c:panu_server_probe() path /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: profiles/network/server.c:server_register() Registered interface org.bluez.NetworkServer1 on path /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: profiles/network/manager.c:gn_server_probe() path /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: profiles/network/manager.c:nap_server_probe() path /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: profiles/audio/avrcp.c:avrcp_controller_server_probe() path /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_add() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10003
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110f-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:add_uuid() sending add uuid command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: profiles/audio/avrcp.c:avrcp_target_server_probe() path /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_add() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10004
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110c-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:add_uuid() sending add uuid command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: profiles/audio/a2dp.c:a2dp_sink_server_probe() path /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: profiles/audio/a2dp.c:a2dp_source_server_probe() path /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:btd_adapter_unblock_address() hci0 00:00:00:00:00:00
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:load_link_keys() hci0 keys 0 debug_keys 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:load_ltks() hci0 keys 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:load_irks() hci0 irks 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:load_conn_params() hci0 conn params 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:add_uuid() sending add uuid command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:set_did() hci0 source 2 vendor 1d6b product 246 version 52c
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_register() Adapter /org/bluez/hci0 registered
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:set_dev_class() sending set device class command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:set_name() sending set local name command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:set_privacy_complete() Successfuly set privacy for index 0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:load_link_keys_complete() link keys loaded for hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:load_ltks_complete() LTKs loaded for hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:load_irks_complete() IRKs loaded for hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:load_conn_params_complete() Connection Parameters loaded for hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:local_name_changed_callback() Name: BlueZ 5.44
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:local_name_changed_callback() Short name:
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:local_name_changed_callback() Current alias: BlueZ 5.44
May 3 19:47:12 Maui bluetoothd[32743]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x5568f2cde300 registered: type:0 codec:0 seid:1
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_add() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10005
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000019-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110a-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110d-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:add_uuid() sending add uuid command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: Endpoint registered: sender=:1.1576 path=/MediaEndpoint/A2DPSource
May 3 19:47:12 Maui bluetoothd[32743]: profiles/audio/avdtp.c:avdtp_register_sep() SEP 0x5568f2ce2990 registered: type:1 codec:0 seid:2
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_add() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10006
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000019-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110b-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110d-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:add_uuid() sending add uuid command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: Endpoint registered: sender=:1.1576 path=/MediaEndpoint/A2DPSink
May 3 19:47:12 Maui bluetoothd[32743]: src/profile.c:register_profile() sender :1.1576
May 3 19:47:12 Maui bluetoothd[32743]: src/profile.c:create_ext() Created "Headset Voice gateway"
May 3 19:47:12 Maui bluetoothd[32743]: src/profile.c:ext_adapter_probe() "Headset Voice gateway" probed
May 3 19:47:12 Maui bluetoothd[32743]: src/profile.c:ext_start_servers() Headset Voice gateway listening on chan 12
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_add() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10007
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001108-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001112-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001203-0000-1000-8000-00805f9
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:add_uuid() sending add uuid command for index 0
May 3 19:47:12 Maui dbus[1218]: [system] Successfully activated service 'org.freedesktop.hostname1'
May 3 19:47:12 Maui systemd[1]: Started Hostname Service.
May 3 19:47:12 Maui bluetoothd[32743]: plugins/hostname.c:property_changed() static hostname: Maui
May 3 19:47:12 Maui bluetoothd[32743]: plugins/hostname.c:property_changed() pretty hostname:
May 3 19:47:12 Maui bluetoothd[32743]: plugins/hostname.c:update_name() name: Maui
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_set_name() name: Maui
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:adapter_set_name() alias: Maui
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:set_name() sending set local name command for index 0
May 3 19:47:12 Maui bluetoothd[32743]: plugins/hostname.c:property_changed() chassis: desktop
May 3 19:47:12 Maui bluetoothd[32743]: plugins/hostname.c:update_class() major: 0x01 minor: 0x01
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:local_name_changed_callback() Name: Maui
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:local_name_changed_callback() Short name:
May 3 19:47:12 Maui bluetoothd[32743]: src/adapter.c:local_name_changed_callback() Current alias: Maui
May 3 19:47:20 Maui dbus-daemon[2288]: Activating via systemd: service name='org.bluez.obex' unit='dbus-org.bluez.obex.service'
May 3 19:47:20 Maui dbus-daemon[2288]: Activation via systemd failed for unit 'dbus-org.bluez.obex.service': Unit dbus-org.bluez.obex.service not found.
May 3 19:47:20 Maui dbus[1218]: [system] Activating service name='org.blueman.Mechanism' (using servicehelper)
May 3 19:47:20 Maui bluetoothd[32743]: src/agent.c:agent_ref() 0x5568f2cdacd0: ref=1
May 3 19:47:20 Maui bluetoothd[32743]: src/agent.c:register_agent() agent :1.2332
May 3 19:47:20 Maui bluetoothd[32743]: src/agent.c:add_default_agent() Default agent set to :1.2332 /org/blueman/agent/global
May 3 19:47:20 Maui org.blueman.Mechanism[1218]: Unable to init server: Could not connect: Connection refused
May 3 19:47:20 Maui org.blueman.Mechanism[1218]: Unable to init server: Could not connect: Connection refused
May 3 19:47:20 Maui blueman-mechanism: Starting blueman-mechanism
May 3 19:47:20 Maui dbus[1218]: [system] Successfully activated service 'org.blueman.Mechanism'
May 3 19:47:20 Maui blueman-mechani[313]: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
May 3 19:47:20 Maui blueman-mechanism: loading Network
May 3 19:47:20 Maui blueman-mechanism: loading RfKill
May 3 19:47:20 Maui blueman-mechanism: loading Ppp
May 3 19:47:20 Maui blueman-mechanism: loading Rfcomm
May 3 19:47:21 Maui bluetoothd[32743]: src/adapter.c:property_set_mode() sending Set Powered command for index 0
May 3 19:47:21 Maui bluetoothd[32743]: src/adapter.c:dev_class_changed_callback() Class: 0x0c0104
May 3 19:47:21 Maui bluetoothd[32743]: src/adapter.c:property_set_mode_complete() Success (0x00)
May 3 19:47:21 Maui bluetoothd[32743]: src/adapter.c:new_settings_callback() Settings: 0x00000ad1
May 3 19:47:21 Maui bluetoothd[32743]: src/adapter.c:settings_changed() Changed settings: 0x00000001
May 3 19:47:21 Maui bluetoothd[32743]: src/adapter.c:adapter_start() adapter /org/bluez/hci0 has been enabled
May 3 19:47:21 Maui bluetoothd[32743]: src/adapter.c:trigger_passive_scanning()
May 3 19:47:50 Maui blueman-mechanism: Exiting
May 3 19:48:00 Maui kernel: [128727.647572] usb 3-1.7.3: new full-speed USB device number 60 using ehci-pci
May 3 19:48:00 Maui kernel: [128727.727996] usb 3-1.7.3: New USB device found, idVendor=0944, idProduct=0134
May 3 19:48:00 Maui kernel: [128727.728001] usb 3-1.7.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
May 3 19:48:00 Maui kernel: [128727.728004] usb 3-1.7.3: Product: nanoKONTROL Studio
May 3 19:48:00 Maui kernel: [128727.728007] usb 3-1.7.3: Manufacturer: KORG INC.
May 3 19:48:00 Maui mtp-probe: checking bus 3, device 60: "/sys/devices/pci0000:00/0000:00:16.2/usb3/3-1/3-1.7/3-1.7.3"
May 3 19:48:00 Maui mtp-probe: bus: 3, device: 60 was not an MTP device
May 3 19:48:00 Maui kernel: [128727.784654] TCP: request_sock_TCP: Possible SYN flooding on port 33119. Sending cookies. Check SNMP counters.
May 3 19:48:00 Maui pulseaudio[27272]: Failed to find a working profile.
May 3 19:48:00 Maui pulseaudio[27272]: Failed to load module "module-alsa-card" (argument: "device_id="4" name="usb-KORG_INC._nanoKONTROL_Studio-00" card_name="alsa_card.usb-KORG_INC._nanoKONTROL_Studio-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed.
May 3 19:48:29 Maui bluetoothd[32743]: src/adapter.c:connected_callback() hci0 device 60:F1:89:28:DA:1F connected eir_len 0
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:device_create() dst 60:F1:89:28:DA:1F
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:device_new() address 60:F1:89:28:DA:1F
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_60_F1_89_28_DA_1F
May 3 19:48:29 Maui bluetoothd[32743]: src/gatt-database.c:connect_cb() New incoming LE ATT connection
May 3 19:48:29 Maui bluetoothd[32743]: attrib/gattrib.c:g_attrib_ref() 0x5568f2ce8100: g_attrib_ref=1
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:load_gatt_db() Restoring 60:F1:89:28:DA:1F gatt database from file
May 3 19:48:29 Maui bluetoothd[32743]: No cache for 60:F1:89:28:DA:1F
May 3 19:48:29 Maui bluetoothd[32743]: src/gatt-client.c:btd_gatt_client_connected() Device connected.
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() MTU exchange complete, with MTU: 23
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() Primary services found: 5
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x0001, end: 0x0009, uuid: 00001800-0000-1000-8000-00805f9b34fb
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x000c, end: 0x000f, uuid: 00001801-0000-1000-8000-00805f9b34fb
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x0010, end: 0x0014, uuid: 0000180a-0000-1000-8000-00805f9b34fb
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x0015, end: 0x0018, uuid: d0611e78-bbb4-4591-a5f8-487910ae4366
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x0019, end: 0x001c, uuid: 03b80e5a-ede8-4b33-a751-6ce34ec4c700
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() Secondary service discovery failed. ATT ECODE: 0x0a
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() Characteristics found: 4
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x0002, end: 0x0003, value: 0x0003, props: 0x02, uuid: 00002a00-0000-1
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x0004, end: 0x0005, value: 0x0005, props: 0x02, uuid: 00002a01-0000-1
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x0006, end: 0x0007, value: 0x0007, props: 0x0a, uuid: 00002a02-0000-1
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x0008, end: 0x0009, value: 0x0009, props: 0x02, uuid: 00002a04-0000-1
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() Characteristics found: 1
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x000d, end: 0x000f, value: 0x000e, props: 0x22, uuid: 00002a05-0000-1
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() Descriptors found: 1
May 3 19:48:29 Maui bluetoothd[32743]: src/device.c:gatt_debug() handle: 0x000f, uuid: 00002902-0000-1000-8000-00805f9b34fb
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_debug() Characteristics found: 2
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x0011, end: 0x0012, value: 0x0012, props: 0x02, uuid: 00002a29-0000-1
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x0013, end: 0x0014, value: 0x0014, props: 0x02, uuid: 00002a24-0000-1
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_debug() Characteristics found: 1
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x0016, end: 0x0018, value: 0x0017, props: 0x18, uuid: 8667556c-9a37-4
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_debug() Descriptors found: 1
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_debug() handle: 0x0018, uuid: 00002902-0000-1000-8000-00805f9b34fb
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_debug() Characteristics found: 1
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_debug() start: 0x001a, end: 0x001c, value: 0x001b, props: 0x16, uuid: 7772e5db-3868-4
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_debug() Descriptors found: 1
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_debug() handle: 0x001c, uuid: 00002902-0000-1000-8000-00805f9b34fb
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_client_ready_cb() status: success, error: 0
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:btd_device_set_temporary() temporary 0
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_probe_profiles() Probing profiles for device 60:F1:89:28:DA:1F
May 3 19:48:30 Maui bluetoothd[32743]: profiles/gap/gas.c:gap_probe() GAP profile probe (60:F1:89:28:DA:1F)
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: unavailable -> disconnected (0)
May 3 19:48:30 Maui bluetoothd[32743]: profiles/gap/gas.c:gap_accept() GAP profile accept (60:F1:89:28:DA:1F)
May 3 19:48:30 Maui bluetoothd[32743]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a02-0000-1000-8000-00805f9b34fb
May 3 19:48:30 Maui bluetoothd[32743]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a04-0000-1000-8000-00805f9b34fb
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: disconnected -> connected (0)
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_probe_profiles() Probing profiles for device 60:F1:89:28:DA:1F
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_probe_profiles() Probing profiles for device 60:F1:89:28:DA:1F
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: unavailable -> disconnected (0)
May 3 19:48:30 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:deviceinfo_accept() deviceinfo profile accept (60:F1:89:28:DA:1F)
May 3 19:48:30 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a29-0000-1000-8000-00805f9b34fb
May 3 19:48:30 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a24-0000-1000-8000-00805f9b34fb
May 3 19:48:30 Maui bluetoothd[32743]: Failed to create secure directory (/root/.config/pulse): Permission denied
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: disconnected -> connected (0)
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_probe_profiles() Probing profiles for device 60:F1:89:28:DA:1F
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_probe_profiles() Probing profiles for device 60:F1:89:28:DA:1F
May 3 19:48:30 Maui bluetoothd[32743]: profiles/midi/midi.c:midi_device_probe() MIDI GATT Driver profile probe (60:F1:89:28:DA:1F)
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: unavailable -> disconnected (0)
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_set_auto_connect() 60:F1:89:28:DA:1F auto connect: 1
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_set_auto_connect() Already connected
May 3 19:48:30 Maui bluetoothd[32743]: profiles/midi/midi.c:midi_accept() MIDI GATT Driver profile accept (60:F1:89:28:DA:1F)
May 3 19:48:30 Maui bluetoothd[32743]: profiles/midi/midi.c:handle_midi_io() MIDI I/O handle: 0x001b
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: disconnected -> connected (0)
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:btd_service_ref() 0x5568f2ce87b0: ref=2
May 3 19:48:30 Maui bluetoothd[32743]: plugins/policy.c:service_cb() Added MIDI GATT Driver reconnect 0
May 3 19:48:30 Maui bluetoothd[32743]: src/gatt-client.c:btd_gatt_client_ready() GATT client ready
May 3 19:48:30 Maui bluetoothd[32743]: src/gatt-client.c:create_services() Exporting objects for GATT services: 60:F1:89:28:DA:1F
May 3 19:48:30 Maui bluetoothd[32743]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_60_F1_89_28_DA_1F/service000c
May 3 19:48:30 Maui bluetoothd[32743]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_60_F1_89_28_DA_1F/service000c/char000d
May 3 19:48:30 Maui bluetoothd[32743]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_60_F1_89_28_DA_1F/service000c/char000d/desc000f
May 3 19:48:30 Maui bluetoothd[32743]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_60_F1_89_28_DA_1F/service0010
May 3 19:48:30 Maui bluetoothd[32743]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_60_F1_89_28_DA_1F/service0010/char0011
May 3 19:48:30 Maui bluetoothd[32743]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_60_F1_89_28_DA_1F/service0010/char0013
May 3 19:48:30 Maui bluetoothd[32743]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_60_F1_89_28_DA_1F/service0015
May 3 19:48:30 Maui bluetoothd[32743]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_60_F1_89_28_DA_1F/service0015/char0016
May 3 19:48:30 Maui bluetoothd[32743]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_60_F1_89_28_DA_1F/service0015/char0016/desc0018
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_60_F1_89_28_DA_1F err 0
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:add_device_complete() 60:F1:89:28:DA:1F (1) added to kernel connect list
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:gatt_debug() Registered handler for "Service Changed": 1
May 3 19:48:30 Maui bluetoothd[32743]: profiles/gap/gas.c:read_device_name_cb() GAP Device Name: nanoKONTROL Studio
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:btd_device_device_set_name() /org/bluez/hci0/dev_60_F1_89_28_DA_1F nanoKONTROL Studio
May 3 19:48:30 Maui bluetoothd[32743]: profiles/gap/gas.c:read_appearance_cb() GAP Appearance: 0x0080
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 60:F1:89:28:DA:1F type 1 status 0x5
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_bonding_complete() bonding (nil) status 0x05
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_bonding_failed() status 5
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:dev_disconnected() Device 60:F1:89:28:DA:1F disconnected, reason 2
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:adapter_remove_connection()
May 3 19:48:30 Maui bluetoothd[32743]: plugins/policy.c:disconnect_cb() reason 2
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 60:F1:89:28:DA:1F type 1 status 0xe
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:device_bonding_failed() status 14
May 3 19:48:30 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
May 3 19:48:30 Maui bluetoothd[32743]: MIDI I/O: Failed to read initial request
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:att_disconnected_cb()
May 3 19:48:30 Maui bluetoothd[32743]: src/device.c:att_disconnected_cb() Software caused connection abort (103)
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: connected -> disconnecting (0)
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: disconnecting -> disconnected (0)
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: connected -> disconnecting (0)
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: disconnecting -> disconnected (0)
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: connected -> disconnecting (0)
May 3 19:48:30 Maui bluetoothd[32743]: profiles/midi/midi.c:midi_disconnect() MIDI GATT Driver profile disconnect (60:F1:89:28:DA:1F)
May 3 19:48:30 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: disconnecting -> disconnected (0)
May 3 19:48:30 Maui bluetoothd[32743]: src/gatt-client.c:btd_gatt_client_disconnected() Device disconnected. Cleaning up.
May 3 19:48:30 Maui bluetoothd[32743]: attrib/gattrib.c:g_attrib_unref() 0x5568f2ce8100: g_attrib_unref=0
May 3 19:48:31 Maui bluetoothd[32743]: src/adapter.c:connected_callback() hci0 device 60:F1:89:28:DA:1F connected eir_len 21
May 3 19:48:31 Maui bluetoothd[32743]: src/gatt-database.c:connect_cb() New incoming LE ATT connection
May 3 19:48:31 Maui bluetoothd[32743]: attrib/gattrib.c:g_attrib_ref() 0x5568f2d0aa60: g_attrib_ref=1
May 3 19:48:31 Maui bluetoothd[32743]: profiles/gap/gas.c:gap_accept() GAP profile accept (60:F1:89:28:DA:1F)
May 3 19:48:31 Maui bluetoothd[32743]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a02-0000-1000-8000-00805f9b34fb
May 3 19:48:31 Maui bluetoothd[32743]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a04-0000-1000-8000-00805f9b34fb
May 3 19:48:31 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: disconnected -> connected (0)
May 3 19:48:31 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:deviceinfo_accept() deviceinfo profile accept (60:F1:89:28:DA:1F)
May 3 19:48:31 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a29-0000-1000-8000-00805f9b34fb
May 3 19:48:31 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a24-0000-1000-8000-00805f9b34fb
May 3 19:48:31 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: disconnected -> connected (0)
May 3 19:48:31 Maui bluetoothd[32743]: profiles/midi/midi.c:midi_accept() MIDI GATT Driver profile accept (60:F1:89:28:DA:1F)
May 3 19:48:31 Maui bluetoothd[32743]: profiles/midi/midi.c:handle_midi_io() MIDI I/O handle: 0x001b
May 3 19:48:31 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: disconnected -> connected (0)
May 3 19:48:31 Maui bluetoothd[32743]: plugins/policy.c:service_cb() Added MIDI GATT Driver reconnect 0
May 3 19:48:31 Maui bluetoothd[32743]: src/gatt-client.c:btd_gatt_client_connected() Device connected.
May 3 19:48:31 Maui bluetoothd[32743]: src/device.c:gatt_debug() MTU exchange complete, with MTU: 23
May 3 19:48:31 Maui bluetoothd[32743]: profiles/gap/gas.c:read_device_name_cb() GAP Device Name: nanoKONTROL Studio
May 3 19:48:31 Maui bluetoothd[32743]: profiles/gap/gas.c:read_appearance_cb() GAP Appearance: 0x0080
May 3 19:48:31 Maui bluetoothd[32743]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 60:F1:89:28:DA:1F type 1 status 0x5
May 3 19:48:31 Maui bluetoothd[32743]: src/device.c:device_bonding_complete() bonding (nil) status 0x05
May 3 19:48:31 Maui bluetoothd[32743]: src/device.c:device_bonding_failed() status 5
May 3 19:48:31 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
May 3 19:48:31 Maui bluetoothd[32743]: src/adapter.c:dev_disconnected() Device 60:F1:89:28:DA:1F disconnected, reason 2
May 3 19:48:31 Maui bluetoothd[32743]: src/adapter.c:adapter_remove_connection()
May 3 19:48:31 Maui bluetoothd[32743]: plugins/policy.c:disconnect_cb() reason 2
May 3 19:48:31 Maui bluetoothd[32743]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 60:F1:89:28:DA:1F type 1 status 0xe
May 3 19:48:31 Maui bluetoothd[32743]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
May 3 19:48:31 Maui bluetoothd[32743]: src/device.c:device_bonding_failed() status 14
May 3 19:48:31 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
May 3 19:48:31 Maui bluetoothd[32743]: MIDI I/O: Failed to read initial request
May 3 19:48:31 Maui bluetoothd[32743]: src/device.c:gatt_debug() Primary service discovery failed. ATT ECODE: 0x00
May 3 19:48:31 Maui bluetoothd[32743]: src/device.c:gatt_debug() Failed to initialize gatt-client
May 3 19:48:31 Maui bluetoothd[32743]: src/device.c:gatt_client_ready_cb() status: failed, error: 0
May 3 19:48:31 Maui bluetoothd[32743]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_60_F1_89_28_DA_1F err -5
May 3 19:48:31 Maui bluetoothd[32743]: src/device.c:att_disconnected_cb()
May 3 19:48:31 Maui bluetoothd[32743]: src/device.c:att_disconnected_cb() Software caused connection abort (103)
May 3 19:48:31 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: connected -> disconnecting (0)
May 3 19:48:31 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: disconnecting -> disconnected (0)
May 3 19:48:31 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: connected -> disconnecting (0)
May 3 19:48:31 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: disconnecting -> disconnected (0)
May 3 19:48:31 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: connected -> disconnecting (0)
May 3 19:48:31 Maui bluetoothd[32743]: profiles/midi/midi.c:midi_disconnect() MIDI GATT Driver profile disconnect (60:F1:89:28:DA:1F)
May 3 19:48:31 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: disconnecting -> disconnected (0)
May 3 19:48:31 Maui bluetoothd[32743]: src/gatt-client.c:btd_gatt_client_disconnected() Device disconnected. Cleaning up.
May 3 19:48:31 Maui bluetoothd[32743]: attrib/gattrib.c:g_attrib_unref() 0x5568f2d0aa60: g_attrib_unref=0
May 3 19:48:32 Maui bluetoothd[32743]: src/adapter.c:connected_callback() hci0 device 60:F1:89:28:DA:1F connected eir_len 21
May 3 19:48:32 Maui bluetoothd[32743]: src/gatt-database.c:connect_cb() New incoming LE ATT connection
May 3 19:48:32 Maui bluetoothd[32743]: attrib/gattrib.c:g_attrib_ref() 0x5568f2d0aa60: g_attrib_ref=1
May 3 19:48:32 Maui bluetoothd[32743]: profiles/gap/gas.c:gap_accept() GAP profile accept (60:F1:89:28:DA:1F)
May 3 19:48:32 Maui bluetoothd[32743]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a02-0000-1000-8000-00805f9b34fb
May 3 19:48:32 Maui bluetoothd[32743]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a04-0000-1000-8000-00805f9b34fb
May 3 19:48:32 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: disconnected -> connected (0)
May 3 19:48:32 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:deviceinfo_accept() deviceinfo profile accept (60:F1:89:28:DA:1F)
May 3 19:48:32 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a29-0000-1000-8000-00805f9b34fb
May 3 19:48:32 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a24-0000-1000-8000-00805f9b34fb
May 3 19:48:32 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: disconnected -> connected (0)
May 3 19:48:32 Maui bluetoothd[32743]: profiles/midi/midi.c:midi_accept() MIDI GATT Driver profile accept (60:F1:89:28:DA:1F)
May 3 19:48:32 Maui bluetoothd[32743]: profiles/midi/midi.c:handle_midi_io() MIDI I/O handle: 0x001b
May 3 19:48:32 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: disconnected -> connected (0)
May 3 19:48:32 Maui bluetoothd[32743]: plugins/policy.c:service_cb() Added MIDI GATT Driver reconnect 0
May 3 19:48:32 Maui bluetoothd[32743]: src/gatt-client.c:btd_gatt_client_connected() Device connected.
May 3 19:48:32 Maui bluetoothd[32743]: src/device.c:gatt_debug() MTU exchange complete, with MTU: 23
May 3 19:48:32 Maui bluetoothd[32743]: profiles/gap/gas.c:read_device_name_cb() GAP Device Name: nanoKONTROL Studio
May 3 19:48:33 Maui bluetoothd[32743]: profiles/gap/gas.c:read_appearance_cb() GAP Appearance: 0x0080
May 3 19:48:33 Maui bluetoothd[32743]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 60:F1:89:28:DA:1F type 1 status 0x5
May 3 19:48:33 Maui bluetoothd[32743]: src/device.c:device_bonding_complete() bonding (nil) status 0x05
May 3 19:48:33 Maui bluetoothd[32743]: src/device.c:device_bonding_failed() status 5
May 3 19:48:33 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
May 3 19:48:33 Maui bluetoothd[32743]: src/adapter.c:dev_disconnected() Device 60:F1:89:28:DA:1F disconnected, reason 2
May 3 19:48:33 Maui bluetoothd[32743]: src/adapter.c:adapter_remove_connection()
May 3 19:48:33 Maui bluetoothd[32743]: plugins/policy.c:disconnect_cb() reason 2
May 3 19:48:33 Maui bluetoothd[32743]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 60:F1:89:28:DA:1F type 1 status 0xe
May 3 19:48:33 Maui bluetoothd[32743]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
May 3 19:48:33 Maui bluetoothd[32743]: src/device.c:device_bonding_failed() status 14
May 3 19:48:33 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
May 3 19:48:33 Maui bluetoothd[32743]: MIDI I/O: Failed to read initial request
May 3 19:48:33 Maui bluetoothd[32743]: src/device.c:gatt_debug() Primary service discovery failed. ATT ECODE: 0x00
May 3 19:48:33 Maui bluetoothd[32743]: src/device.c:gatt_debug() Failed to initialize gatt-client
May 3 19:48:33 Maui bluetoothd[32743]: src/device.c:gatt_client_ready_cb() status: failed, error: 0
May 3 19:48:33 Maui bluetoothd[32743]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_60_F1_89_28_DA_1F err -5
May 3 19:48:33 Maui bluetoothd[32743]: src/device.c:att_disconnected_cb()
May 3 19:48:33 Maui bluetoothd[32743]: src/device.c:att_disconnected_cb() Software caused connection abort (103)
May 3 19:48:33 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: connected -> disconnecting (0)
May 3 19:48:33 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: disconnecting -> disconnected (0)
May 3 19:48:33 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: connected -> disconnecting (0)
May 3 19:48:33 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: disconnecting -> disconnected (0)
May 3 19:48:33 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: connected -> disconnecting (0)
May 3 19:48:33 Maui bluetoothd[32743]: profiles/midi/midi.c:midi_disconnect() MIDI GATT Driver profile disconnect (60:F1:89:28:DA:1F)
May 3 19:48:33 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: disconnecting -> disconnected (0)
May 3 19:48:33 Maui bluetoothd[32743]: src/gatt-client.c:btd_gatt_client_disconnected() Device disconnected. Cleaning up.
May 3 19:48:33 Maui bluetoothd[32743]: attrib/gattrib.c:g_attrib_unref() 0x5568f2d0aa60: g_attrib_unref=0
May 3 19:48:34 Maui bluetoothd[32743]: src/adapter.c:connected_callback() hci0 device 60:F1:89:28:DA:1F connected eir_len 21
May 3 19:48:34 Maui bluetoothd[32743]: src/gatt-database.c:connect_cb() New incoming LE ATT connection
May 3 19:48:34 Maui bluetoothd[32743]: attrib/gattrib.c:g_attrib_ref() 0x5568f2d0c2d0: g_attrib_ref=1
May 3 19:48:34 Maui bluetoothd[32743]: profiles/gap/gas.c:gap_accept() GAP profile accept (60:F1:89:28:DA:1F)
May 3 19:48:34 Maui bluetoothd[32743]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a02-0000-1000-8000-00805f9b34fb
May 3 19:48:34 Maui bluetoothd[32743]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a04-0000-1000-8000-00805f9b34fb
May 3 19:48:34 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: disconnected -> connected (0)
May 3 19:48:34 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:deviceinfo_accept() deviceinfo profile accept (60:F1:89:28:DA:1F)
May 3 19:48:34 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a29-0000-1000-8000-00805f9b34fb
May 3 19:48:34 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a24-0000-1000-8000-00805f9b34fb
May 3 19:48:34 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: disconnected -> connected (0)
May 3 19:48:34 Maui bluetoothd[32743]: profiles/midi/midi.c:midi_accept() MIDI GATT Driver profile accept (60:F1:89:28:DA:1F)
May 3 19:48:34 Maui bluetoothd[32743]: profiles/midi/midi.c:handle_midi_io() MIDI I/O handle: 0x001b
May 3 19:48:34 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: disconnected -> connected (0)
May 3 19:48:34 Maui bluetoothd[32743]: plugins/policy.c:service_cb() Added MIDI GATT Driver reconnect 0
May 3 19:48:34 Maui bluetoothd[32743]: src/gatt-client.c:btd_gatt_client_connected() Device connected.
May 3 19:48:34 Maui bluetoothd[32743]: src/device.c:gatt_debug() MTU exchange complete, with MTU: 23
May 3 19:48:34 Maui bluetoothd[32743]: profiles/gap/gas.c:read_device_name_cb() GAP Device Name: nanoKONTROL Studio
May 3 19:48:34 Maui bluetoothd[32743]: profiles/gap/gas.c:read_appearance_cb() GAP Appearance: 0x0080
May 3 19:48:34 Maui bluetoothd[32743]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 60:F1:89:28:DA:1F type 1 status 0x5
May 3 19:48:34 Maui bluetoothd[32743]: src/device.c:device_bonding_complete() bonding (nil) status 0x05
May 3 19:48:34 Maui bluetoothd[32743]: src/device.c:device_bonding_failed() status 5
May 3 19:48:34 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
May 3 19:48:34 Maui bluetoothd[32743]: src/adapter.c:dev_disconnected() Device 60:F1:89:28:DA:1F disconnected, reason 2
May 3 19:48:34 Maui bluetoothd[32743]: src/adapter.c:adapter_remove_connection()
May 3 19:48:34 Maui bluetoothd[32743]: plugins/policy.c:disconnect_cb() reason 2
May 3 19:48:34 Maui bluetoothd[32743]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 60:F1:89:28:DA:1F type 1 status 0xe
May 3 19:48:34 Maui bluetoothd[32743]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
May 3 19:48:34 Maui bluetoothd[32743]: src/device.c:device_bonding_failed() status 14
May 3 19:48:34 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
May 3 19:48:34 Maui bluetoothd[32743]: MIDI I/O: Failed to read initial request
May 3 19:48:34 Maui bluetoothd[32743]: src/device.c:gatt_debug() Primary service discovery failed. ATT ECODE: 0x00
May 3 19:48:34 Maui bluetoothd[32743]: src/device.c:gatt_debug() Failed to initialize gatt-client
May 3 19:48:34 Maui bluetoothd[32743]: src/device.c:gatt_client_ready_cb() status: failed, error: 0
May 3 19:48:34 Maui bluetoothd[32743]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_60_F1_89_28_DA_1F err -5
May 3 19:48:34 Maui bluetoothd[32743]: src/device.c:att_disconnected_cb()
May 3 19:48:34 Maui bluetoothd[32743]: src/device.c:att_disconnected_cb() Software caused connection abort (103)
May 3 19:48:34 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: connected -> disconnecting (0)
May 3 19:48:34 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: disconnecting -> disconnected (0)
May 3 19:48:34 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: connected -> disconnecting (0)
May 3 19:48:34 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: disconnecting -> disconnected (0)
May 3 19:48:34 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: connected -> disconnecting (0)
May 3 19:48:34 Maui bluetoothd[32743]: profiles/midi/midi.c:midi_disconnect() MIDI GATT Driver profile disconnect (60:F1:89:28:DA:1F)
May 3 19:48:34 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: disconnecting -> disconnected (0)
May 3 19:48:34 Maui bluetoothd[32743]: src/gatt-client.c:btd_gatt_client_disconnected() Device disconnected. Cleaning up.
May 3 19:48:34 Maui bluetoothd[32743]: attrib/gattrib.c:g_attrib_unref() 0x5568f2d0c2d0: g_attrib_unref=0
May 3 19:48:35 Maui bluetoothd[32743]: src/adapter.c:connected_callback() hci0 device 60:F1:89:28:DA:1F connected eir_len 21
May 3 19:48:35 Maui bluetoothd[32743]: src/gatt-database.c:connect_cb() New incoming LE ATT connection
May 3 19:48:35 Maui bluetoothd[32743]: attrib/gattrib.c:g_attrib_ref() 0x5568f2d0c2d0: g_attrib_ref=1
May 3 19:48:35 Maui bluetoothd[32743]: profiles/gap/gas.c:gap_accept() GAP profile accept (60:F1:89:28:DA:1F)
May 3 19:48:35 Maui bluetoothd[32743]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a02-0000-1000-8000-00805f9b34fb
May 3 19:48:35 Maui bluetoothd[32743]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a04-0000-1000-8000-00805f9b34fb
May 3 19:48:35 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: disconnected -> connected (0)
May 3 19:48:35 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:deviceinfo_accept() deviceinfo profile accept (60:F1:89:28:DA:1F)
May 3 19:48:35 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a29-0000-1000-8000-00805f9b34fb
May 3 19:48:35 Maui bluetoothd[32743]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a24-0000-1000-8000-00805f9b34fb
May 3 19:48:35 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: disconnected -> connected (0)
May 3 19:48:35 Maui bluetoothd[32743]: profiles/midi/midi.c:midi_accept() MIDI GATT Driver profile accept (60:F1:89:28:DA:1F)
May 3 19:48:35 Maui bluetoothd[32743]: profiles/midi/midi.c:handle_midi_io() MIDI I/O handle: 0x001b
May 3 19:48:35 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: disconnected -> connected (0)
May 3 19:48:35 Maui bluetoothd[32743]: plugins/policy.c:service_cb() Added MIDI GATT Driver reconnect 0
May 3 19:48:35 Maui bluetoothd[32743]: src/gatt-client.c:btd_gatt_client_connected() Device connected.
May 3 19:48:35 Maui bluetoothd[32743]: src/device.c:gatt_debug() MTU exchange complete, with MTU: 23
May 3 19:48:35 Maui bluetoothd[32743]: profiles/gap/gas.c:read_device_name_cb() GAP Device Name: nanoKONTROL Studio
May 3 19:48:35 Maui bluetoothd[32743]: profiles/gap/gas.c:read_appearance_cb() GAP Appearance: 0x0080
May 3 19:48:36 Maui bluetoothd[32743]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 60:F1:89:28:DA:1F type 1 status 0x5
May 3 19:48:36 Maui bluetoothd[32743]: src/device.c:device_bonding_complete() bonding (nil) status 0x05
May 3 19:48:36 Maui bluetoothd[32743]: src/device.c:device_bonding_failed() status 5
May 3 19:48:36 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
May 3 19:48:36 Maui kernel: [128763.055431] usb 3-1.7.3: USB disconnect, device number 60
May 3 19:48:36 Maui kernel: [128763.088726] TCP: request_sock_TCP: Possible SYN flooding on port 39295. Sending cookies. Check SNMP counters.
May 3 19:48:36 Maui bluetoothd[32743]: src/adapter.c:dev_disconnected() Device 60:F1:89:28:DA:1F disconnected, reason 1
May 3 19:48:36 Maui bluetoothd[32743]: src/adapter.c:adapter_remove_connection()
May 3 19:48:36 Maui bluetoothd[32743]: plugins/policy.c:disconnect_cb() reason 1
May 3 19:48:36 Maui bluetoothd[32743]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 60:F1:89:28:DA:1F type 1 status 0xe
May 3 19:48:36 Maui bluetoothd[32743]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
May 3 19:48:36 Maui bluetoothd[32743]: src/device.c:device_bonding_failed() status 14
May 3 19:48:36 Maui bluetoothd[32743]: src/adapter.c:resume_discovery()
May 3 19:48:36 Maui bluetoothd[32743]: MIDI I/O: Failed to read initial request
May 3 19:48:36 Maui bluetoothd[32743]: src/device.c:gatt_debug() Primary service discovery failed. ATT ECODE: 0x00
May 3 19:48:36 Maui bluetoothd[32743]: src/device.c:gatt_debug() Failed to initialize gatt-client
May 3 19:48:36 Maui bluetoothd[32743]: src/device.c:gatt_client_ready_cb() status: failed, error: 0
May 3 19:48:36 Maui bluetoothd[32743]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_60_F1_89_28_DA_1F err -5
May 3 19:48:36 Maui bluetoothd[32743]: src/device.c:att_disconnected_cb()
May 3 19:48:36 Maui bluetoothd[32743]: src/device.c:att_disconnected_cb() Connection timed out (110)
May 3 19:48:36 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: connected -> disconnecting (0)
May 3 19:48:36 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2cec150: device 60:F1:89:28:DA:1F profile gap-profile state changed: disconnecting -> disconnected (0)
May 3 19:48:36 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: connected -> disconnecting (0)
May 3 19:48:36 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce8720: device 60:F1:89:28:DA:1F profile deviceinfo state changed: disconnecting -> disconnected (0)
May 3 19:48:36 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: connected -> disconnecting (0)
May 3 19:48:36 Maui bluetoothd[32743]: profiles/midi/midi.c:midi_disconnect() MIDI GATT Driver profile disconnect (60:F1:89:28:DA:1F)
May 3 19:48:36 Maui bluetoothd[32743]: src/service.c:change_state() 0x5568f2ce87b0: device 60:F1:89:28:DA:1F profile MIDI GATT Driver state changed: disconnecting -> disconnected (0)
May 3 19:48:36 Maui bluetoothd[32743]: src/gatt-client.c:btd_gatt_client_disconnected() Device disconnected. Cleaning up.
May 3 19:48:36 Maui bluetoothd[32743]: attrib/gattrib.c:g_attrib_unref() 0x5568f2d0c2d0: g_attrib_unref=0
[-- Attachment #3: Robert_Schneider.vcf --]
[-- Type: text/x-vcard, Size: 167 bytes --]
begin:vcard
fn:Robert Schneider
n:Schneider;Robert
email;internet:Robert.Schneider@aramar.de
tel;home:+49 8139 92850
tel;cell:+49 176 3892 7669
version:2.1
end:vcard
^ permalink raw reply
* Re: [PATCHv2 0/4] Motorola Droid 4: Add WL1285C support
From: Sebastian Reichel @ 2017-05-03 16:08 UTC (permalink / raw)
To: Marcel Holtmann
Cc: Rob Herring, David S. Miller, Tony Lindgren, Kalle Valo,
open list:BLUETOOTH DRIVERS, linux-wireless, linux-omap,
linux-kernel@vger.kernel.org
In-Reply-To: <F455FC62-BA1C-4A59-B526-DDB90362CFE8@holtmann.org>
[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]
Hi,
On Wed, May 03, 2017 at 05:02:13PM +0200, Marcel Holtmann wrote:
> >> Motorola Droid 4 uses a WL1285C, as visible on iFixit [0]. This
> >> fixes the DT file to use correct compatible for the wifi node
> >> and adds the bluetooth node.
> >>
> >> [0] https://www.ifixit.com/Teardown/Motorola+Droid+4+Teardown/7759#s31961
> >>
> >> Changes to PATCHv1:
> >> - use proper compatible value for bluetooth / shared transport
> >> - add patches fixing wlcore compatible for Droid 4
> >>
> >> -- Sebastian
> >>
> >> Sebastian Reichel (4):
> >> wlcore: add wl1285 compatible
> >> ARM: dts: omap4-droid4: Use wl1285 for wifi compatible
> >> Bluetooth: hci_ll: Add compatible values for more WL chips
> >> ARM: dts: omap4-droid4: Add bluetooth
> >
> > For the series,
> >
> > Reviewed-by: Rob Herring <robh@kernel.org>
>
> so now the question is if we merge this through a single
> maintainer or have each maintainer take the pieces? I would almost
> suggest that Dave Miller takes this directly into net-next to make
> this smoother.
I think the only complex thing is, that patch 2 should only be
applied after patch 1. So maybe patch 1 could be applied via
wireless/net-next for 4.12 and the other ones go through the
individual subsystems for 4.13?
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply
* Re: [PATCHv2 0/4] Motorola Droid 4: Add WL1285C support
From: Marcel Holtmann @ 2017-05-03 15:02 UTC (permalink / raw)
To: Rob Herring, David S. Miller
Cc: Sebastian Reichel, Sebastian Reichel, Tony Lindgren, Kalle Valo,
open list:BLUETOOTH DRIVERS, linux-wireless, linux-omap,
linux-kernel@vger.kernel.org
In-Reply-To: <CAL_JsqKktwFmxXijB0FVVoWGkswXm3twzD7She7zGR=rVQ4hWA@mail.gmail.com>
Hi Rob,
>> Motorola Droid 4 uses a WL1285C, as visible on iFixit [0]. This
>> fixes the DT file to use correct compatible for the wifi node
>> and adds the bluetooth node.
>>
>> [0] https://www.ifixit.com/Teardown/Motorola+Droid+4+Teardown/7759#s31961
>>
>> Changes to PATCHv1:
>> - use proper compatible value for bluetooth / shared transport
>> - add patches fixing wlcore compatible for Droid 4
>>
>> -- Sebastian
>>
>> Sebastian Reichel (4):
>> wlcore: add wl1285 compatible
>> ARM: dts: omap4-droid4: Use wl1285 for wifi compatible
>> Bluetooth: hci_ll: Add compatible values for more WL chips
>> ARM: dts: omap4-droid4: Add bluetooth
>
> For the series,
>
> Reviewed-by: Rob Herring <robh@kernel.org>
so now the question is if we merge this through a single maintainer or have each maintainer take the pieces? I would almost suggest that Dave Miller takes this directly into net-next to make this smoother.
Regards
Marcel
^ permalink raw reply
* Re: [PATCHv2 0/4] Motorola Droid 4: Add WL1285C support
From: Rob Herring @ 2017-05-03 14:47 UTC (permalink / raw)
To: Sebastian Reichel
Cc: Sebastian Reichel, Tony Lindgren, Marcel Holtmann, Kalle Valo,
open list:BLUETOOTH DRIVERS, linux-wireless, linux-omap,
linux-kernel@vger.kernel.org
In-Reply-To: <20170503142226.32380-1-sebastian.reichel@collabora.co.uk>
On Wed, May 3, 2017 at 9:22 AM, Sebastian Reichel
<sebastian.reichel@collabora.co.uk> wrote:
> Hi,
>
> Motorola Droid 4 uses a WL1285C, as visible on iFixit [0]. This
> fixes the DT file to use correct compatible for the wifi node
> and adds the bluetooth node.
>
> [0] https://www.ifixit.com/Teardown/Motorola+Droid+4+Teardown/7759#s31961
>
> Changes to PATCHv1:
> - use proper compatible value for bluetooth / shared transport
> - add patches fixing wlcore compatible for Droid 4
>
> -- Sebastian
>
> Sebastian Reichel (4):
> wlcore: add wl1285 compatible
> ARM: dts: omap4-droid4: Use wl1285 for wifi compatible
> Bluetooth: hci_ll: Add compatible values for more WL chips
> ARM: dts: omap4-droid4: Add bluetooth
For the series,
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply
* [PATCHv2 4/4] ARM: dts: omap4-droid4: Add bluetooth
From: Sebastian Reichel @ 2017-05-03 14:22 UTC (permalink / raw)
To: Sebastian Reichel, Tony Lindgren, Marcel Holtmann, Rob Herring,
Kalle Valo
Cc: linux-bluetooth, linux-wireless, linux-omap, linux-kernel,
Sebastian Reichel
In-Reply-To: <20170503142226.32380-1-sebastian.reichel@collabora.co.uk>
Droid 4 has WL 1285C connected to the OMAP's UART4 port, which is
used for Bluetooth and most likely can also be used for controlling
the FM radio and GPS receivers.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
---
arch/arm/boot/dts/omap4-droid4-xt894.dts | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
index c09b51d6ccf7..bd7f1cc55371 100644
--- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
@@ -453,6 +453,15 @@
OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE7)
>;
};
+
+ uart4_pins: pinmux_uart4_pins {
+ pinctrl-single,pins = <
+ OMAP4_IOPAD(0x15c, PIN_INPUT | MUX_MODE0) /* uart4_rx */
+ OMAP4_IOPAD(0x15e, PIN_OUTPUT | MUX_MODE0) /* uart4_tx */
+ OMAP4_IOPAD(0x110, PIN_INPUT_PULLUP | MUX_MODE5) /* uart4_cts */
+ OMAP4_IOPAD(0x112, PIN_OUTPUT_PULLUP | MUX_MODE5) /* uart4_rts */
+ >;
+ };
};
&omap4_pmx_wkup {
@@ -469,6 +478,17 @@
&omap4_pmx_core 0x17c>;
};
+&uart4 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart4_pins>;
+
+ bluetooth {
+ compatible = "ti,wl1285-st";
+ enable-gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>; /* gpio 174 */
+ max-speed = <3686400>;
+ };
+};
+
&usbhsehci {
phys = <&hsusb1_phy>;
};
--
2.11.0
^ permalink raw reply related
* [PATCHv2 3/4] Bluetooth: hci_ll: Add compatible values for more WL chips
From: Sebastian Reichel @ 2017-05-03 14:22 UTC (permalink / raw)
To: Sebastian Reichel, Tony Lindgren, Marcel Holtmann, Rob Herring,
Kalle Valo
Cc: linux-bluetooth, linux-wireless, linux-omap, linux-kernel,
Sebastian Reichel
In-Reply-To: <20170503142226.32380-1-sebastian.reichel@collabora.co.uk>
Add compatible values for WiLink chips from 128x and 180x series.
Also the DT binding already contained compatible values for the 127x
series, but the driver did not. This brings the list on par with
the list from wlcore (the wifi driver).
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
---
Documentation/devicetree/bindings/net/ti,wilink-st.txt | 6 ++++++
drivers/bluetooth/hci_ll.c | 8 ++++++++
2 files changed, 14 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/ti,wilink-st.txt b/Documentation/devicetree/bindings/net/ti,wilink-st.txt
index cbad73a84ac4..b1a421e2fde3 100644
--- a/Documentation/devicetree/bindings/net/ti,wilink-st.txt
+++ b/Documentation/devicetree/bindings/net/ti,wilink-st.txt
@@ -14,6 +14,12 @@ Required properties:
- compatible: should be one of the following:
"ti,wl1271-st"
"ti,wl1273-st"
+ "ti,wl1281-st"
+ "ti,wl1283-st"
+ "ti,wl1285-st"
+ "ti,wl1801-st"
+ "ti,wl1805-st"
+ "ti,wl1807-st"
"ti,wl1831-st"
"ti,wl1835-st"
"ti,wl1837-st"
diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c
index adc444f309a3..d2f32a994daa 100644
--- a/drivers/bluetooth/hci_ll.c
+++ b/drivers/bluetooth/hci_ll.c
@@ -740,6 +740,14 @@ static void hci_ti_remove(struct serdev_device *serdev)
}
static const struct of_device_id hci_ti_of_match[] = {
+ { .compatible = "ti,wl1271-st" },
+ { .compatible = "ti,wl1273-st" },
+ { .compatible = "ti,wl1281-st" },
+ { .compatible = "ti,wl1283-st" },
+ { .compatible = "ti,wl1285-st" },
+ { .compatible = "ti,wl1801-st" },
+ { .compatible = "ti,wl1805-st" },
+ { .compatible = "ti,wl1807-st" },
{ .compatible = "ti,wl1831-st" },
{ .compatible = "ti,wl1835-st" },
{ .compatible = "ti,wl1837-st" },
--
2.11.0
^ permalink raw reply related
* [PATCHv2 2/4] ARM: dts: omap4-droid4: Use wl1285 for wifi compatible
From: Sebastian Reichel @ 2017-05-03 14:22 UTC (permalink / raw)
To: Sebastian Reichel, Tony Lindgren, Marcel Holtmann, Rob Herring,
Kalle Valo
Cc: linux-bluetooth, linux-wireless, linux-omap, linux-kernel,
Sebastian Reichel
In-Reply-To: <20170503142226.32380-1-sebastian.reichel@collabora.co.uk>
The Motorola Droid 4 uses a WL 1285C, so let's use correct
compatible value instead of relying on WL 1283 being very
similar.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
---
arch/arm/boot/dts/omap4-droid4-xt894.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
index 89eb607f4a9e..c09b51d6ccf7 100644
--- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
@@ -301,7 +301,7 @@
#address-cells = <1>;
#size-cells = <0>;
wlcore: wlcore@2 {
- compatible = "ti,wl1283";
+ compatible = "ti,wl1285";
reg = <2>;
interrupt-parent = <&gpio4>;
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; /* gpio100 */
--
2.11.0
^ permalink raw reply related
* [PATCHv2 1/4] wlcore: add wl1285 compatible
From: Sebastian Reichel @ 2017-05-03 14:22 UTC (permalink / raw)
To: Sebastian Reichel, Tony Lindgren, Marcel Holtmann, Rob Herring,
Kalle Valo
Cc: linux-bluetooth, linux-wireless, linux-omap, linux-kernel,
Sebastian Reichel
In-Reply-To: <20170503142226.32380-1-sebastian.reichel@collabora.co.uk>
Motorola Droid 4 uses a WL 1285C. With differences between
chips not being public let's add explicit binding for wl1285
instead of relying on wl1283 being very similar.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
---
Documentation/devicetree/bindings/net/wireless/ti,wlcore.txt | 1 +
drivers/net/wireless/ti/wlcore/sdio.c | 1 +
drivers/net/wireless/ti/wlcore/spi.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/wireless/ti,wlcore.txt b/Documentation/devicetree/bindings/net/wireless/ti,wlcore.txt
index 2a3d90de18ee..7b2cbb14113e 100644
--- a/Documentation/devicetree/bindings/net/wireless/ti,wlcore.txt
+++ b/Documentation/devicetree/bindings/net/wireless/ti,wlcore.txt
@@ -10,6 +10,7 @@ Required properties:
* "ti,wl1273"
* "ti,wl1281"
* "ti,wl1283"
+ * "ti,wl1285"
* "ti,wl1801"
* "ti,wl1805"
* "ti,wl1807"
diff --git a/drivers/net/wireless/ti/wlcore/sdio.c b/drivers/net/wireless/ti/wlcore/sdio.c
index 287023ef4a78..2fb38717346f 100644
--- a/drivers/net/wireless/ti/wlcore/sdio.c
+++ b/drivers/net/wireless/ti/wlcore/sdio.c
@@ -237,6 +237,7 @@ static const struct of_device_id wlcore_sdio_of_match_table[] = {
{ .compatible = "ti,wl1273", .data = &wl127x_data },
{ .compatible = "ti,wl1281", .data = &wl128x_data },
{ .compatible = "ti,wl1283", .data = &wl128x_data },
+ { .compatible = "ti,wl1285", .data = &wl128x_data },
{ .compatible = "ti,wl1801", .data = &wl18xx_data },
{ .compatible = "ti,wl1805", .data = &wl18xx_data },
{ .compatible = "ti,wl1807", .data = &wl18xx_data },
diff --git a/drivers/net/wireless/ti/wlcore/spi.c b/drivers/net/wireless/ti/wlcore/spi.c
index f949ad2bd898..1f5d9ebb0925 100644
--- a/drivers/net/wireless/ti/wlcore/spi.c
+++ b/drivers/net/wireless/ti/wlcore/spi.c
@@ -433,6 +433,7 @@ static const struct of_device_id wlcore_spi_of_match_table[] = {
{ .compatible = "ti,wl1273", .data = &wl127x_data},
{ .compatible = "ti,wl1281", .data = &wl128x_data},
{ .compatible = "ti,wl1283", .data = &wl128x_data},
+ { .compatible = "ti,wl1285", .data = &wl128x_data},
{ .compatible = "ti,wl1801", .data = &wl18xx_data},
{ .compatible = "ti,wl1805", .data = &wl18xx_data},
{ .compatible = "ti,wl1807", .data = &wl18xx_data},
--
2.11.0
^ permalink raw reply related
* [PATCHv2 0/4] Motorola Droid 4: Add WL1285C support
From: Sebastian Reichel @ 2017-05-03 14:22 UTC (permalink / raw)
To: Sebastian Reichel, Tony Lindgren, Marcel Holtmann, Rob Herring,
Kalle Valo
Cc: linux-bluetooth, linux-wireless, linux-omap, linux-kernel,
Sebastian Reichel
Hi,
Motorola Droid 4 uses a WL1285C, as visible on iFixit [0]. This
fixes the DT file to use correct compatible for the wifi node
and adds the bluetooth node.
[0] https://www.ifixit.com/Teardown/Motorola+Droid+4+Teardown/7759#s31961
Changes to PATCHv1:
- use proper compatible value for bluetooth / shared transport
- add patches fixing wlcore compatible for Droid 4
-- Sebastian
Sebastian Reichel (4):
wlcore: add wl1285 compatible
ARM: dts: omap4-droid4: Use wl1285 for wifi compatible
Bluetooth: hci_ll: Add compatible values for more WL chips
ARM: dts: omap4-droid4: Add bluetooth
.../devicetree/bindings/net/ti,wilink-st.txt | 6 ++++++
.../devicetree/bindings/net/wireless/ti,wlcore.txt | 1 +
arch/arm/boot/dts/omap4-droid4-xt894.dts | 22 +++++++++++++++++++++-
drivers/bluetooth/hci_ll.c | 8 ++++++++
drivers/net/wireless/ti/wlcore/sdio.c | 1 +
drivers/net/wireless/ti/wlcore/spi.c | 1 +
6 files changed, 38 insertions(+), 1 deletion(-)
--
2.11.0
^ permalink raw reply
* [PATCH] Bluetooth: Skip vendor diagnostic configuration for HCI User Channel
From: Marcel Holtmann @ 2017-05-02 19:43 UTC (permalink / raw)
To: linux-bluetooth
When the HCI User Channel access is requested, then do not try to
undermine it with vendor diagnostic configuration. The exclusive user
is required to configure its own vendor diagnostic in that case and
can not rely on the host stack support.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
---
net/bluetooth/hci_core.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 43fecd59dfef..7655b4005dfb 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -148,13 +148,13 @@ static ssize_t vendor_diag_write(struct file *file, const char __user *user_buf,
return -EINVAL;
/* When the diagnostic flags are not persistent and the transport
- * is not active, then there is no need for the vendor callback.
- *
- * Instead just store the desired value. If needed the setting
- * will be programmed when the controller gets powered on.
+ * is not active or in user channel operation, then there is no need
+ * for the vendor callback. Instead just store the desired value and
+ * the setting will be programmed when the controller gets powered on.
*/
if (test_bit(HCI_QUIRK_NON_PERSISTENT_DIAG, &hdev->quirks) &&
- !test_bit(HCI_RUNNING, &hdev->flags))
+ (!test_bit(HCI_RUNNING, &hdev->flags) ||
+ hci_dev_test_flag(hdev, HCI_USER_CHANNEL)))
goto done;
hci_req_sync_lock(hdev);
@@ -1419,6 +1419,7 @@ static int hci_dev_do_open(struct hci_dev *hdev)
* completed.
*/
if (test_bit(HCI_QUIRK_NON_PERSISTENT_DIAG, &hdev->quirks) &&
+ !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) &&
hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) && hdev->set_diag)
ret = hdev->set_diag(hdev, true);
--
2.9.3
^ permalink raw reply related
* Re: [PATCH] Bluetooth: add a check for kmalloc() failure
From: Dan Carpenter @ 2017-05-02 18:34 UTC (permalink / raw)
To: Marcel Holtmann
Cc: Salvatore Benedetto, Gustavo F. Padovan, Johan Hedberg,
David S. Miller, Linux Bluetooth, kernel-janitors
In-Reply-To: <26554315-C6A5-4B85-B535-E6EB91499A61@holtmann.org>
On Tue, May 02, 2017 at 07:58:11PM +0200, Marcel Holtmann wrote:
> Hi Dan,
>
> > We should check to see if this kmalloc() fails.
> >
> > Fixes: e7c404c96c74 ("Bluetooth: allocate data for kpp on heap")
> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> >
> > diff --git a/net/bluetooth/ecdh_helper.c b/net/bluetooth/ecdh_helper.c
> > index 80184476ff74..c8535845813d 100644
> > --- a/net/bluetooth/ecdh_helper.c
> > +++ b/net/bluetooth/ecdh_helper.c
> > @@ -59,11 +59,15 @@ bool compute_ecdh_secret(const u8 public_key[64], const u8 private_key[32],
> > struct ecdh p;
> > struct ecdh_completion result;
> > struct scatterlist src, dst;
> > - u8 *tmp = kmalloc(64, GFP_KERNEL);
> > + u8 *tmp;
> > u8 *buf;
> > unsigned int buf_len;
> > int err = -ENOMEM;
> >
> > + tmp = kmalloc(64, GFP_KERNEL);
> > + if (!tmp)
> > + goto out;
> > +
>
> I thought that I already fixed this. Is this issue still present in bluetooth-next tree?
>
Ah yeah. You already fixed this.
regards,
dan carpenter
^ permalink raw reply
* Re: [PATCH] bluetooth: hci_uart: fix kconfig dependency
From: Marcel Holtmann @ 2017-05-02 18:07 UTC (permalink / raw)
To: Tobias Regnery
Cc: Rob Herring, Gustavo F. Padovan, Johan Hedberg, linux-bluetooth,
linux-kernel
In-Reply-To: <20170502131501.15851-1-tobias.regnery@gmail.com>
Hi Tobias,
> We see the following link error with CONFIG_BT_HCIUART=y,
> CONFIG_BT_HCIUART_LL=y and CONFIG_SERIAL_DEV_BUS=m:
>
> drivers/built-in.o: In function 'll_close':
> supp.c:(.text+0x55add4): undefined reference to 'serdev_device_close'
> supp.c:(.text+0x55add4): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 'serdev_device_close'
> drivers/built-in.o: In function 'll_open':
> supp.c:(.text+0x55aed0): undefined reference to 'serdev_device_open'
> supp.c:(.text+0x55aed0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 'serdev_device_open'
> drivers/built-in.o: In function `hci_ti_probe':
> supp.c:(.text+0x55b00c): undefined reference to 'hci_uart_register_device'
> supp.c:(.text+0x55b00c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 'hci_uart_register_device'
> drivers/built-in.o: In function `ll_setup':
> supp.c:(.text+0x55b08c): undefined reference to 'serdev_device_set_flow_control'
> supp.c:(.text+0x55b08c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 'serdev_device_set_flow_control'
> supp.c:(.text+0x55b324): undefined reference to 'serdev_device_set_baudrate'
> supp.c:(.text+0x55b324): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 'serdev_device_set_baudrate'
> drivers/built-in.o: In function 'll_init':
> supp.c:(.init.text+0x1b508): undefined reference to '__serdev_device_driver_register'
> supp.c:(.init.text+0x1b508): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol '__serdev_device_driver_register'
>
> Fix this by dependig BT_HCIUART_LL on the BT_HCIUART_SERDEV symbol.
> This implies a dependency on BT_HCIUART and hci_ll.c is only compiled in
> if SERIAl_DEV_BUS is built in or SERIAL_DEV_BUS and BT_HCIUART are
> modules.
>
> Fixes: 371805522f87 ("bluetooth: hci_uart: add LL protocol serdev driver support")
> Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com>
> ---
> Hi,
>
> I'm not sure if this is the right fix because the dependencies are quite
> complicated but at least the build failure goes away with this change.
>
> drivers/bluetooth/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel
^ permalink raw reply
* Re: [PATCH] Bluetooth: add a check for kmalloc() failure
From: Marcel Holtmann @ 2017-05-02 17:58 UTC (permalink / raw)
To: Dan Carpenter
Cc: Salvatore Benedetto, Gustavo F. Padovan, Johan Hedberg,
David S. Miller, Linux Bluetooth, kernel-janitors
In-Reply-To: <20170502092903.u7no6pizkakf454o@mwanda>
Hi Dan,
> We should check to see if this kmalloc() fails.
>
> Fixes: e7c404c96c74 ("Bluetooth: allocate data for kpp on heap")
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> diff --git a/net/bluetooth/ecdh_helper.c b/net/bluetooth/ecdh_helper.c
> index 80184476ff74..c8535845813d 100644
> --- a/net/bluetooth/ecdh_helper.c
> +++ b/net/bluetooth/ecdh_helper.c
> @@ -59,11 +59,15 @@ bool compute_ecdh_secret(const u8 public_key[64], const u8 private_key[32],
> struct ecdh p;
> struct ecdh_completion result;
> struct scatterlist src, dst;
> - u8 *tmp = kmalloc(64, GFP_KERNEL);
> + u8 *tmp;
> u8 *buf;
> unsigned int buf_len;
> int err = -ENOMEM;
>
> + tmp = kmalloc(64, GFP_KERNEL);
> + if (!tmp)
> + goto out;
> +
I thought that I already fixed this. Is this issue still present in bluetooth-next tree?
Regards
Marcel
^ permalink raw reply
* Re: [PATCH BlueZ v2] core/gatt-client: Add support for Includes property
From: Luiz Augusto von Dentz @ 2017-05-02 15:36 UTC (permalink / raw)
To: Marcin Kraglak; +Cc: linux-bluetooth@vger.kernel.org
In-Reply-To: <1493209933-10790-1-git-send-email-marcin.kraglak@tieto.com>
Hi Marcin,
On Wed, Apr 26, 2017 at 3:32 PM, Marcin Kraglak
<marcin.kraglak@tieto.com> wrote:
> Add implementation of Includes property in GATT service interface.
> Include services are updated after exporting all services, when new service
> has been added or service was removed.
> ---
> src/gatt-client.c | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++----
> 1 file changed, 106 insertions(+), 7 deletions(-)
>
> diff --git a/src/gatt-client.c b/src/gatt-client.c
> index 114981c..b86bfe6 100644
> --- a/src/gatt-client.c
> +++ b/src/gatt-client.c
> @@ -72,6 +72,7 @@ struct service {
> bt_uuid_t uuid;
> char *path;
> struct queue *chrcs;
> + struct queue *incl_services;
> };
>
> typedef bool (*async_dbus_op_complete_t)(void *data);
> @@ -1398,10 +1399,36 @@ static gboolean service_get_primary(const GDBusPropertyTable *property,
> return TRUE;
> }
>
> +static void append_incl_service_path(void *data, void *user_data)
> +{
> + struct service *incl_service = data;
> + DBusMessageIter *array = user_data;
> +
> + dbus_message_iter_append_basic(array, DBUS_TYPE_OBJECT_PATH,
> + &incl_service->path);
> +}
> +
> +static gboolean service_get_includes(const GDBusPropertyTable *property,
> + DBusMessageIter *iter, void *data)
> +{
> + struct service *service = data;
> + DBusMessageIter array;
> +
> + dbus_message_iter_open_container(iter, DBUS_TYPE_ARRAY, "{o}", &array);
> +
> + queue_foreach(service->incl_services, append_incl_service_path, &array);
> +
> + dbus_message_iter_close_container(iter, &array);
> +
> + return TRUE;
> +
> +}
> +
> static const GDBusPropertyTable service_properties[] = {
> { "UUID", "s", service_get_uuid },
> { "Device", "o", service_get_device },
> { "Primary", "b", service_get_primary },
> + { "Includes", "ao", service_get_includes },
> { }
> };
>
> @@ -1410,6 +1437,7 @@ static void service_free(void *data)
> struct service *service = data;
>
> queue_destroy(service->chrcs, NULL); /* List should be empty here */
> + queue_destroy(service->incl_services, NULL);
> g_free(service->path);
> free(service);
> }
> @@ -1423,6 +1451,7 @@ static struct service *service_create(struct gatt_db_attribute *attr,
>
> service = new0(struct service, 1);
> service->chrcs = queue_new();
> + service->incl_services = queue_new();
> service->client = client;
>
> gatt_db_attribute_get_service_data(attr, &service->start_handle,
> @@ -1459,13 +1488,29 @@ static struct service *service_create(struct gatt_db_attribute *attr,
> return service;
> }
>
> +static void on_service_removed(void *data, void *user_data)
> +{
> + struct service *service = data;
> + struct service *removed_service = user_data;
> +
> + if (queue_remove(service->incl_services, removed_service))
> + g_dbus_emit_property_changed(btd_get_dbus_connection(),
> + service->path,
> + GATT_SERVICE_IFACE,
> + "Includes");
> +}
> +
> static void unregister_service(void *data)
> {
> struct service *service = data;
> + struct btd_gatt_client *client = service->client;
>
> DBG("Removing GATT service: %s", service->path);
>
> queue_remove_all(service->chrcs, NULL, NULL, unregister_characteristic);
> + queue_remove_all(service->incl_services, NULL, NULL, NULL);
> +
> + queue_foreach(client->services, on_service_removed, service);
>
> g_dbus_unregister_interface(btd_get_dbus_connection(), service->path,
> GATT_SERVICE_IFACE);
> @@ -1567,11 +1612,71 @@ static void export_service(struct gatt_db_attribute *attr, void *user_data)
> queue_push_tail(client->services, service);
> }
>
> +static bool match_service_handle(const void *a, const void *b)
> +{
> + const struct service *service = a;
> + uint16_t start_handle = PTR_TO_UINT(b);
> +
> + return service->start_handle == start_handle;
> +}
> +
> +struct update_incl_data {
> + struct service *service;
> + bool changed;
> +};
> +
> +static void update_included_service(struct gatt_db_attribute *attrib,
> + void *user_data)
> +{
> + struct update_incl_data *update_data = user_data;
> + struct btd_gatt_client *client = update_data->service->client;
> + struct service *service = update_data->service;
> + struct service *incl_service;
> + uint16_t start_handle;
> +
> + gatt_db_attribute_get_incl_data(attrib, NULL, &start_handle, NULL);
> +
> + incl_service = queue_find(client->services, match_service_handle,
> + UINT_TO_PTR(start_handle));
> +
> + if (!incl_service)
> + return;
> +
> + /* Check if service is already on list */
> + if (queue_find(service->incl_services, NULL, incl_service))
> + return;
> +
> + queue_push_tail(service->incl_services, incl_service);
> + update_data->changed = true;
> +}
> +
> +static void update_included_services(void *data, void *user_data)
> +{
> + struct btd_gatt_client *client = user_data;
> + struct service *service = data;
> + struct gatt_db_attribute *attr;
> + struct update_incl_data inc_data = {
> + .changed = false,
> + .service = service,
> + };
> +
> + attr = gatt_db_get_attribute(client->db, service->start_handle);
> + gatt_db_service_foreach_incl(attr, update_included_service, &inc_data);
> +
> + if (inc_data.changed)
> + g_dbus_emit_property_changed(btd_get_dbus_connection(),
> + service->path,
> + GATT_SERVICE_IFACE,
> + "Includes");
> +}
> +
> static void create_services(struct btd_gatt_client *client)
> {
> DBG("Exporting objects for GATT services: %s", client->devaddr);
>
> gatt_db_foreach_service(client->db, NULL, export_service, client);
> +
> + queue_foreach(client->services, update_included_services, client);
> }
>
> struct btd_gatt_client *btd_gatt_client_new(struct btd_device *device)
> @@ -1689,14 +1794,8 @@ void btd_gatt_client_service_added(struct btd_gatt_client *client,
> return;
>
> export_service(attrib, client);
> -}
> -
> -static bool match_service_handle(const void *a, const void *b)
> -{
> - const struct service *service = a;
> - uint16_t start_handle = PTR_TO_UINT(b);
>
> - return service->start_handle == start_handle;
> + queue_foreach(client->services, update_included_services, client);
> }
>
> void btd_gatt_client_service_removed(struct btd_gatt_client *client,
> --
> 2.4.3
Applied, thanks.
--
Luiz Augusto von Dentz
^ permalink raw reply
* [PATCH] bluetooth: hci_uart: fix kconfig dependency
From: Tobias Regnery @ 2017-05-02 13:15 UTC (permalink / raw)
To: robh, marcel
Cc: gustavo, johan.hedberg, linux-bluetooth, linux-kernel,
Tobias Regnery
We see the following link error with CONFIG_BT_HCIUART=y,
CONFIG_BT_HCIUART_LL=y and CONFIG_SERIAL_DEV_BUS=m:
drivers/built-in.o: In function 'll_close':
supp.c:(.text+0x55add4): undefined reference to 'serdev_device_close'
supp.c:(.text+0x55add4): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 'serdev_device_close'
drivers/built-in.o: In function 'll_open':
supp.c:(.text+0x55aed0): undefined reference to 'serdev_device_open'
supp.c:(.text+0x55aed0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 'serdev_device_open'
drivers/built-in.o: In function `hci_ti_probe':
supp.c:(.text+0x55b00c): undefined reference to 'hci_uart_register_device'
supp.c:(.text+0x55b00c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 'hci_uart_register_device'
drivers/built-in.o: In function `ll_setup':
supp.c:(.text+0x55b08c): undefined reference to 'serdev_device_set_flow_control'
supp.c:(.text+0x55b08c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 'serdev_device_set_flow_control'
supp.c:(.text+0x55b324): undefined reference to 'serdev_device_set_baudrate'
supp.c:(.text+0x55b324): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 'serdev_device_set_baudrate'
drivers/built-in.o: In function 'll_init':
supp.c:(.init.text+0x1b508): undefined reference to '__serdev_device_driver_register'
supp.c:(.init.text+0x1b508): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol '__serdev_device_driver_register'
Fix this by dependig BT_HCIUART_LL on the BT_HCIUART_SERDEV symbol.
This implies a dependency on BT_HCIUART and hci_ll.c is only compiled in
if SERIAl_DEV_BUS is built in or SERIAL_DEV_BUS and BT_HCIUART are
modules.
Fixes: 371805522f87 ("bluetooth: hci_uart: add LL protocol serdev driver support")
Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com>
---
Hi,
I'm not sure if this is the right fix because the dependencies are quite
complicated but at least the build failure goes away with this change.
drivers/bluetooth/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig
index 737d93ef27c5..e5fd24d90b0a 100644
--- a/drivers/bluetooth/Kconfig
+++ b/drivers/bluetooth/Kconfig
@@ -131,7 +131,7 @@ config BT_HCIUART_ATH3K
config BT_HCIUART_LL
bool "HCILL protocol support"
- depends on BT_HCIUART
+ depends on BT_HCIUART_SERDEV
help
HCILL (HCI Low Level) is a serial protocol for communication
between Bluetooth device and host. This protocol is required for
--
2.11.0
^ permalink raw reply related
* Re: [PATCH v2 1/3] shared/att: Respond to any opcode that is not command
From: Luiz Augusto von Dentz @ 2017-05-02 11:24 UTC (permalink / raw)
To: linux-bluetooth@vger.kernel.org
In-Reply-To: <20170501155700.23761-1-luiz.dentz@gmail.com>
Hi,
On Mon, May 1, 2017 at 6:56 PM, Luiz Augusto von Dentz
<luiz.dentz@gmail.com> wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> Although get_op_type does now check for the command mask it must
> respond to anything other than ATT_OP_TYPE_CMD since there is no mask
> for response opcode.
> ---
> src/shared/att.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/shared/att.c b/src/shared/att.c
> index 494b10d..ca2d051 100644
> --- a/src/shared/att.c
> +++ b/src/shared/att.c
> @@ -149,7 +149,7 @@ static enum att_op_type get_op_type(uint8_t opcode)
> }
>
> if (opcode & ATT_OP_CMD_MASK)
> - return ATT_OP_CMD_MASK;
> + return ATT_OP_TYPE_CMD;
>
> return ATT_OP_TYPE_UNKNOWN;
> }
> @@ -841,10 +841,10 @@ static void handle_notify(struct bt_att *att, uint8_t opcode, uint8_t *pdu,
> }
>
> /*
> - * If this was a request and no handler was registered for it, respond
> - * with "Not Supported"
> + * If this was not a command and no handler was registered for it,
> + * respond with "Not Supported"
> */
> - if (!found && get_op_type(opcode) == ATT_OP_TYPE_REQ)
> + if (!found && get_op_type(opcode) != ATT_OP_TYPE_CMD)
> respond_not_supported(att, opcode);
>
> bt_att_unref(att);
> --
> 2.9.3
Applied.
--
Luiz Augusto von Dentz
^ permalink raw reply
* [PATCH] Bluetooth: add a check for kmalloc() failure
From: Dan Carpenter @ 2017-05-02 9:29 UTC (permalink / raw)
To: Marcel Holtmann, Salvatore Benedetto
Cc: Gustavo Padovan, Johan Hedberg, David S. Miller, linux-bluetooth,
kernel-janitors
We should check to see if this kmalloc() fails.
Fixes: e7c404c96c74 ("Bluetooth: allocate data for kpp on heap")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/net/bluetooth/ecdh_helper.c b/net/bluetooth/ecdh_helper.c
index 80184476ff74..c8535845813d 100644
--- a/net/bluetooth/ecdh_helper.c
+++ b/net/bluetooth/ecdh_helper.c
@@ -59,11 +59,15 @@ bool compute_ecdh_secret(const u8 public_key[64], const u8 private_key[32],
struct ecdh p;
struct ecdh_completion result;
struct scatterlist src, dst;
- u8 *tmp = kmalloc(64, GFP_KERNEL);
+ u8 *tmp;
u8 *buf;
unsigned int buf_len;
int err = -ENOMEM;
+ tmp = kmalloc(64, GFP_KERNEL);
+ if (!tmp)
+ goto out;
+
tfm = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0);
if (IS_ERR(tfm)) {
pr_err("alg: kpp: Failed to load tfm for kpp: %ld\n",
@@ -130,6 +134,7 @@ bool compute_ecdh_secret(const u8 public_key[64], const u8 private_key[32],
crypto_free_kpp(tfm);
free_tmp:
kfree(tmp);
+out:
return (err == 0);
}
^ permalink raw reply related
* [PATCH BlueZ 2/2] shared/gatt-client: Validate cached services
From: Marcin Kraglak @ 2017-05-02 8:28 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1493713711-26061-1-git-send-email-marcin.kraglak@tieto.com>
Remove services that were not found in current discovery.
---
src/shared/gatt-client.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index 0134721..ce19e38 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -920,6 +920,72 @@ done:
discovery_op_complete(op, success, att_ecode);
}
+struct validate_svc_data {
+ struct bt_gatt_result *result;
+ uint16_t start, end;
+ bool primary;
+};
+
+static bool validate_svc_cb(struct gatt_db_attribute *attrib,
+ void *user_data)
+{
+ struct validate_svc_data *data = user_data;
+ uint16_t service_start_h, service_end_h;
+ struct bt_gatt_iter iter;
+ bt_uuid_t service_uuid;
+ uint128_t u128;
+ bool primary;
+
+ gatt_db_attribute_get_service_data(attrib, &service_start_h,
+ &service_end_h, &primary,
+ &service_uuid);
+
+ if (primary != data->primary)
+ return false;
+
+ if (data->start > service_start_h || data->end < service_start_h)
+ return false;
+
+ if (data->result) {
+ uint16_t start_h, end_h;
+
+ bt_gatt_iter_init(&iter, data->result);
+
+ while (bt_gatt_iter_next_service(&iter, &start_h, &end_h,
+ u128.data)) {
+ bt_uuid_t uuid;
+
+ if (start_h != service_start_h)
+ continue;
+
+ if (end_h != service_end_h)
+ continue;
+
+ bt_uuid128_create(&uuid, u128);
+ if (bt_uuid_cmp(&uuid, &service_uuid))
+ continue;
+
+ return false;
+ }
+ }
+
+ return true;
+}
+
+static void validate_services(struct gatt_db *db, uint16_t start,
+ uint16_t end, bool primary,
+ struct bt_gatt_result *result)
+{
+ struct validate_svc_data data = {
+ .start = start,
+ .end = end,
+ .primary = primary,
+ .result = result,
+ };
+
+ gatt_db_remove_services(db, validate_svc_cb, &data);
+}
+
static void discover_secondary_cb(bool success, uint8_t att_ecode,
struct bt_gatt_result *result,
void *user_data)
@@ -939,6 +1005,9 @@ static void discover_secondary_cb(bool success, uint8_t att_ecode,
util_debug(client->debug_callback, client->debug_data,
"Secondary service discovery failed."
" ATT ECODE: 0x%02x", att_ecode);
+
+ validate_services(client->db, op->start, op->end, false, NULL);
+
switch (att_ecode) {
case BT_ATT_ERROR_ATTRIBUTE_NOT_FOUND:
case BT_ATT_ERROR_UNSUPPORTED_GROUP_TYPE:
@@ -957,6 +1026,8 @@ static void discover_secondary_cb(bool success, uint8_t att_ecode,
"Secondary services found: %u",
bt_gatt_result_service_count(result));
+ validate_services(client->db, op->start, op->end, false, result);
+
while (bt_gatt_iter_next_service(&iter, &start, &end, u128.data)) {
bt_uuid128_create(&uuid, u128);
@@ -1051,6 +1122,9 @@ static void discover_primary_cb(bool success, uint8_t att_ecode,
util_debug(client->debug_callback, client->debug_data,
"Primary service discovery failed."
" ATT ECODE: 0x%02x", att_ecode);
+
+ validate_services(client->db, op->start, op->end, true, NULL);
+
/* Reset error in case of not found */
switch (att_ecode) {
case BT_ATT_ERROR_ATTRIBUTE_NOT_FOUND:
@@ -1071,6 +1145,8 @@ static void discover_primary_cb(bool success, uint8_t att_ecode,
"Primary services found: %u",
bt_gatt_result_service_count(result));
+ validate_services(client->db, op->start, op->end, true, result);
+
while (bt_gatt_iter_next_service(&iter, &start, &end, u128.data)) {
bt_uuid128_create(&uuid, u128);
--
2.4.3
^ permalink raw reply related
* [PATCH BlueZ 1/2] shared/gatt-db: Remove services with match function
From: Marcin Kraglak @ 2017-05-02 8:28 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1493713711-26061-1-git-send-email-marcin.kraglak@tieto.com>
Allow remove services using match callback.
---
src/shared/gatt-db.c | 41 +++++++++++++++++++++++++++++++++++++++++
src/shared/gatt-db.h | 7 +++++++
2 files changed, 48 insertions(+)
diff --git a/src/shared/gatt-db.c b/src/shared/gatt-db.c
index 8ef6f3b..ded7561 100644
--- a/src/shared/gatt-db.c
+++ b/src/shared/gatt-db.c
@@ -408,6 +408,47 @@ bool gatt_db_remove_service(struct gatt_db *db,
return true;
}
+struct remove_services_data {
+ gatt_db_attribute_match_cb_t func;
+ void *user_data;
+};
+
+static bool remove_services_match(const void *data, const void *match_data)
+{
+ const struct remove_services_data *remove_svc_data = match_data;
+ const struct gatt_db_service *service = data;
+ struct gatt_db_attribute *attrib = service->attributes[0];
+
+ return remove_svc_data->func(attrib, remove_svc_data->user_data);
+}
+
+bool gatt_db_remove_services(struct gatt_db *db,
+ gatt_db_attribute_match_cb_t func,
+ void *user_data)
+{
+ if (!db)
+ return false;
+
+ if (func) {
+ struct remove_services_data remove_services_data = {
+ .func = func,
+ .user_data = user_data,
+ };
+
+ queue_remove_all(db->services, remove_services_match,
+ &remove_services_data,
+ gatt_db_service_destroy);
+ } else {
+ queue_remove_all(db->services, NULL, NULL,
+ gatt_db_service_destroy);
+ }
+
+ if (gatt_db_isempty(db))
+ db->next_handle = 0;
+
+ return true;
+}
+
bool gatt_db_clear(struct gatt_db *db)
{
return gatt_db_clear_range(db, 1, UINT16_MAX);
diff --git a/src/shared/gatt-db.h b/src/shared/gatt-db.h
index 134ec63..4e049cd 100644
--- a/src/shared/gatt-db.h
+++ b/src/shared/gatt-db.h
@@ -38,6 +38,13 @@ struct gatt_db_attribute *gatt_db_add_service(struct gatt_db *db,
bool gatt_db_remove_service(struct gatt_db *db,
struct gatt_db_attribute *attrib);
+
+typedef bool (*gatt_db_attribute_match_cb_t)(struct gatt_db_attribute *attrib,
+ void *user_data);
+
+bool gatt_db_remove_services(struct gatt_db *db,
+ gatt_db_attribute_match_cb_t func,
+ void *user_data);
bool gatt_db_clear(struct gatt_db *db);
bool gatt_db_clear_range(struct gatt_db *db, uint16_t start_handle,
uint16_t end_handle);
--
2.4.3
^ permalink raw reply related
* [PATCH BlueZ 0/2] Service caching improvements
From: Marcin Kraglak @ 2017-05-02 8:28 UTC (permalink / raw)
To: linux-bluetooth
Service discovery is performed after reconnect and after
receiving service changed indication. In current implementation
Bluez does not remove cached services if they were not found in
next discovery and no new services were put in their range.
This patch set removes services which were previously found in
range but were not found in current service discovery.
Marcin Kraglak (2):
shared/gatt-db: Remove services with match function
shared/gatt-client: Validate services
src/shared/gatt-client.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++
src/shared/gatt-db.c | 41 ++++++++++++++++++++++++++
src/shared/gatt-db.h | 7 +++++
3 files changed, 124 insertions(+)
--
2.4.3
^ permalink raw reply
* Re: [PATCH 1/3] Bluetooth: Enable LE Channel Selection Algorithm event
From: Marcel Holtmann @ 2017-05-02 7:48 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth@vger.kernel.org
In-Reply-To: <CABBYNZLX2FNXL7pW9AXodwypo-QzDvf0eBJ5yGjg-GZYBkDdkg@mail.gmail.com>
Hi Luiz,
>> If the Channel Selection Algorithm #2 feature is supported, then enable
>> the new LE Channel Selection Algorithm event.
>>
>> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
>> ---
>> include/net/bluetooth/hci.h | 1 +
>> net/bluetooth/hci_core.c | 8 ++++++++
>> 2 files changed, 9 insertions(+)
>>
>> diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
>> index 99aa5e5e3100..dd43cfdd443a 100644
>> --- a/include/net/bluetooth/hci.h
>> +++ b/include/net/bluetooth/hci.h
>> @@ -399,6 +399,7 @@ enum {
>> #define HCI_LE_PING 0x10
>> #define HCI_LE_DATA_LEN_EXT 0x20
>> #define HCI_LE_EXT_SCAN_POLICY 0x80
>> +#define HCI_LE_CHAN_SEL_ALG2 0x40
>>
>> /* Connection modes */
>> #define HCI_CM_ACTIVE 0x0000
>> diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
>> index 4a0cac774107..e58b9034afff 100644
>> --- a/net/bluetooth/hci_core.c
>> +++ b/net/bluetooth/hci_core.c
>> @@ -635,6 +635,14 @@ static int hci_init3_req(struct hci_request *req, unsigned long opt)
>> * Report
>> */
>>
>> + /* If the controller supports Channel Selection Algorithm #2
>> + * feature, enable the corresponding event.
>> + */
>> + if (hdev->le_features[1] & HCI_LE_CHAN_SEL_ALG2)
>> + events[2] |= 0x08; /* LE Channel Selection
>> + * Algorithm
>> + */
>
> It might look better if you move the comments before the assignment
> and it may actually fit in a single line. Btw, shoudn't we have a
> define for 0x08?
this is in line with how we have done for all other events. So I have no plan to re-format the whole section at this point.
Regards
Marcel
^ permalink raw reply
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox