diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index f39bab059fcc20bd9338614ba6f5091e2e6ccab1..dd0bd4a55c8ad92fc35768f8520b53aaffc4abb4 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -632,7 +632,7 @@ static void update_adv_data(struct hci_request *req) struct hci_cp_le_set_adv_data cp; u8 len; - if (!lmp_le_capable(hdev)) + if (!test_bit(HCI_LE_ENABLED, &hdev->dev_flags)) return; memset(&cp, 0, sizeof(cp));