diff options
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r-- | net/bluetooth/hci_request.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c index 95a545ca9dbc..6e125d76df0d 100644 --- a/net/bluetooth/hci_request.c +++ b/net/bluetooth/hci_request.c | |||
@@ -872,7 +872,9 @@ static u32 get_adv_instance_flags(struct hci_dev *hdev, u8 instance) | |||
872 | if (hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) | 872 | if (hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) |
873 | flags |= MGMT_ADV_FLAG_CONNECTABLE; | 873 | flags |= MGMT_ADV_FLAG_CONNECTABLE; |
874 | 874 | ||
875 | if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) | 875 | if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) |
876 | flags |= MGMT_ADV_FLAG_LIMITED_DISCOV; | ||
877 | else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) | ||
876 | flags |= MGMT_ADV_FLAG_DISCOV; | 878 | flags |= MGMT_ADV_FLAG_DISCOV; |
877 | 879 | ||
878 | return flags; | 880 | return flags; |