All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] bluetooth: Fix the bluetooth icon status after running hciconfig hci0 up
@ 2022-09-30 14:06 Ajye Huang
  2022-09-30 14:44 ` [v1] " bluez.test.bot
  2022-09-30 19:57 ` [PATCH v1] " Luiz Augusto von Dentz
  0 siblings, 2 replies; 5+ messages in thread
From: Ajye Huang @ 2022-09-30 14:06 UTC (permalink / raw)
  To: linux-kernel
  Cc: Marcel Holtmann, Johan Hedberg, Luiz Augusto von Dentz,
	David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Ajye Huang, linux-bluetooth, netdev

When "hciconfig hci0 up" command is used to bluetooth ON, but
the bluetooth UI icon in settings still not be turned ON.

Refer to commit 2ff13894cfb8 ("Bluetooth: Perform HCI update for power on synchronously")
Add back mgmt_power_on(hdev, ret) into function hci_dev_do_open(struct hci_dev *hdev)
in hci_core.c

Signed-off-by: Ajye Huang <ajye_huang@compal.corp-partner.google.com>
---
 net/bluetooth/hci_core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 0540555b3704..5061845c8fc2 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -481,6 +481,7 @@ static int hci_dev_do_open(struct hci_dev *hdev)
 	hci_req_sync_lock(hdev);
 
 	ret = hci_dev_open_sync(hdev);
+	mgmt_power_on(hdev, ret);
 
 	hci_req_sync_unlock(hdev);
 	return ret;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-30 22:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-30 14:06 [PATCH v1] bluetooth: Fix the bluetooth icon status after running hciconfig hci0 up Ajye Huang
2022-09-30 14:44 ` [v1] " bluez.test.bot
2022-09-30 19:57 ` [PATCH v1] " Luiz Augusto von Dentz
2022-09-30 22:30   ` Ajye Huang
2022-09-30 22:58     ` Luiz Augusto von Dentz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.