]> git.ipfire.org Git - thirdparty/linux.git/commit
Bluetooth: hci_core: Rework hci_dev_do_reset() to use hci_sync functions
authorHeitor Alves de Siqueira <halves@igalia.com>
Tue, 26 May 2026 13:50:57 +0000 (10:50 -0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 28 May 2026 12:52:21 +0000 (08:52 -0400)
commit40b87657200cfae93e48904fd9c9c8fc3e192cae
tree8490949f76f27d1b5edddda0edbbdbe59d9733a3
parent4b5f8e608749b7e8fa386c6e4301cf9272595859
Bluetooth: hci_core: Rework hci_dev_do_reset() to use hci_sync functions

The current HCI reset function in hci_core.c duplicates most of the work
done by hci_dev_close_sync(), and doesn't handle LE, advertising or
discovery.

Instead of porting these to hci_dev_do_reset(), directly call the
close/open functions from hci_sync to reset the hdev. MGMT now notifies
when a user performs a reset.

Suggested-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Heitor Alves de Siqueira <halves@igalia.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_core.c