OSDN Git Service

Bluetooth: mgmt: Fix refresh cached connection info
authorZhengping Jiang <jiangzp@google.com>
Mon, 13 Jun 2022 21:43:27 +0000 (14:43 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Jul 2022 00:07:50 +0000 (17:07 -0700)
commitd7b2fdfb53ea09382941c0a4950dc9b00d51d1c7
treef1674a8c51d88d78b453e6c641f93e06bb27fe5e
parent34a718bc86f908de8ef79affaff6a3de7b95759c
Bluetooth: mgmt: Fix refresh cached connection info

Set the connection data before calling get_conn_info_sync, so it can be
verified the connection is still connected, before refreshing cached
values.

Fixes: 47db6b42991e6 ("Bluetooth: hci_sync: Convert MGMT_OP_GET_CONN_INFO")
Signed-off-by: Zhengping Jiang <jiangzp@google.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/mgmt.c