From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 In-Reply-To: References: <1479123009-7190-1-git-send-email-luiz.dentz@gmail.com> <20161114115118.GA5921@x1c> From: Trump DD Date: Tue, 15 Nov 2016 08:45:57 +0800 Message-ID: Subject: Re: [PATCH BlueZ] core/adapter: Fix using wrong address type to listen ATT To: Luiz Augusto von Dentz Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi compare the ok.log and failed.log generate by bluetoothd, I found that the first time startup bluetoothd, a error message was presented " Failed to set privacy: Rejected " bluetoothd[9988]: Failed to set privacy: Rejected (0x0b) bluetoothd[9988]: src/adapter.c:new_settings_callback() Settings: 0x00000ac5 bluetoothd[9988]: src/adapter.c:settings_changed() Changed settings: 0x00000004 bluetoothd[9988]: src/adapter.c:load_link_keys_complete() link keys loaded for hci0 bluetoothd[9988]: src/adapter.c:load_ltks_complete() LTKs loaded for hci0 bluetoothd[9988]: src/adapter.c:load_irks_complete() IRKs loaded for hci0 bluetoothd[9988]: src/adapter.c:load_conn_params_complete() Connection Parameters loaded for hci0 bluetoothd[9988]: src/adapter.c:add_device_complete() C0:11:5B:C6:55:DF (2) added to kernel connect list bluetoothd[9988]: src/adapter.c:get_connections_complete() Connection count: 0 In /etc/bluetooth/main.conf I have set " Privacy=device " Why the first time bluetoothd startup failed to set privacy, the second time bluetoothd startup all works right ? On Mon, Nov 14, 2016 at 10:12 PM, Luiz Augusto von Dentz wrote: > Hi, > > On Mon, Nov 14, 2016 at 3:53 PM, Trump DD wrote: >> this patch look like fix part bug of BLE devices reconnect >> >> when I restart bluetoothd , all works fine. >> such as: >> systemctl stop bluetooth >> systemctl start bluetooth >> click BLE mouse button, reconnect success. >> >> but this issue existed after apply this patch >> 1. reboot computer, bluetoothd the first time startup, BLE mouse >> reconnect failed with loop >> Connected: yes >> Connected: no >> ... >> ... > > Are you sure this is exact the same version after you reboot? Because > from the logs it looks like the exact same problem so perhaps you have > the older version being restored or something else is loading the old > binary, for me this works all the time even after rebooting, or > actually running a vm, but Im running it from source directly. -- Thanks