mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
Bluetooth: Add missing check for BREDR_ENABLED flag in update_class()
We shouldn't be sending the HCI_Write_Class_Of_Device command when BR/EDR is disabled since this is a BR/EDR-only command. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
10994ce6e6
commit
f87ea1dabb
1 changed files with 3 additions and 0 deletions
|
@ -749,6 +749,9 @@ static void update_class(struct hci_request *req)
|
|||
if (!hdev_is_powered(hdev))
|
||||
return;
|
||||
|
||||
if (!test_bit(HCI_BREDR_ENABLED, &hdev->dev_flags))
|
||||
return;
|
||||
|
||||
if (test_bit(HCI_SERVICE_CACHE, &hdev->dev_flags))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue