0001-fix-hci-tool-error.patch 1003 B

123456789101112131415161718192021222324252627
  1. From 16e7291ff9701ffdcf5efe5b56f9a67c849fc426 Mon Sep 17 00:00:00 2001
  2. From: lihm <koumei.lhm@linux.alibaba.com>
  3. Date: Wed, 8 Sep 2021 01:07:23 +0800
  4. Subject: [PATCH] fix hci tool error
  5. ---
  6. net/bluetooth/hci_core.c | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
  9. index ff9516278..fdef1cc04 100644
  10. --- a/net/bluetooth/hci_core.c
  11. +++ b/net/bluetooth/hci_core.c
  12. @@ -816,11 +816,11 @@ static int hci_init4_req(struct hci_request *req, unsigned long opt)
  13. /* Set event mask page 2 if the HCI command for it is supported */
  14. if (hdev->commands[22] & 0x04)
  15. hci_set_event_mask_page_2(req);
  16. -
  17. +#if 0
  18. /* Read local codec list if the HCI command is supported */
  19. if (hdev->commands[29] & 0x20)
  20. hci_req_add(req, HCI_OP_READ_LOCAL_CODECS, 0, NULL);
  21. -
  22. +#endif
  23. /* Get MWS transport configuration if the HCI command is supported */
  24. if (hdev->commands[30] & 0x08)
  25. hci_req_add(req, HCI_OP_GET_MWS_TRANSPORT_CONFIG, 0, NULL);