|
@@ -1065,6 +1065,9 @@ static u8 create_instance_adv_data(struct hci_dev *hdev, u8 instance, u8 *ptr)
|
|
if (instance_flags & MGMT_ADV_FLAG_LIMITED_DISCOV)
|
|
if (instance_flags & MGMT_ADV_FLAG_LIMITED_DISCOV)
|
|
flags |= LE_AD_LIMITED;
|
|
flags |= LE_AD_LIMITED;
|
|
|
|
|
|
|
|
+ if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED))
|
|
|
|
+ flags |= LE_AD_NO_BREDR;
|
|
|
|
+
|
|
if (flags || (instance_flags & MGMT_ADV_FLAG_MANAGED_FLAGS)) {
|
|
if (flags || (instance_flags & MGMT_ADV_FLAG_MANAGED_FLAGS)) {
|
|
/* If a discovery flag wasn't provided, simply use the global
|
|
/* If a discovery flag wasn't provided, simply use the global
|
|
* settings.
|
|
* settings.
|
|
@@ -1072,9 +1075,6 @@ static u8 create_instance_adv_data(struct hci_dev *hdev, u8 instance, u8 *ptr)
|
|
if (!flags)
|
|
if (!flags)
|
|
flags |= mgmt_get_adv_discov_flags(hdev);
|
|
flags |= mgmt_get_adv_discov_flags(hdev);
|
|
|
|
|
|
- if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED))
|
|
|
|
- flags |= LE_AD_NO_BREDR;
|
|
|
|
-
|
|
|
|
/* If flags would still be empty, then there is no need to
|
|
/* If flags would still be empty, then there is no need to
|
|
* include the "Flags" AD field".
|
|
* include the "Flags" AD field".
|
|
*/
|
|
*/
|