aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-02-22 12:06:35 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-02-22 12:59:24 -0500
commit0f4bd942f13dd15a1b290953cdd7cd6aca11be1f (patch)
tree06ff7b649d20c15bd7732246508bb62fba1710c1 /net/bluetooth/mgmt.c
parent755a900fcde16c66223a85259859a3b534b6c64c (diff)
Bluetooth: Add Privacy flag to mgmt supported/current settings
This patch makes sure that the Privacy flag is available in the mgmt supported settings for all LE capable controllers and in the current settings whenever the HCI_PRIVACY flag is set. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 37a6c4eab881..301b18a1c6a0 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -390,6 +390,7 @@ static u32 get_supported_settings(struct hci_dev *hdev)
390 if (lmp_le_capable(hdev)) { 390 if (lmp_le_capable(hdev)) {
391 settings |= MGMT_SETTING_LE; 391 settings |= MGMT_SETTING_LE;
392 settings |= MGMT_SETTING_ADVERTISING; 392 settings |= MGMT_SETTING_ADVERTISING;
393 settings |= MGMT_SETTING_PRIVACY;
393 } 394 }
394 395
395 return settings; 396 return settings;
@@ -438,6 +439,9 @@ static u32 get_current_settings(struct hci_dev *hdev)
438 if (test_bit(HCI_DEBUG_KEYS, &hdev->dev_flags)) 439 if (test_bit(HCI_DEBUG_KEYS, &hdev->dev_flags))
439 settings |= MGMT_SETTING_DEBUG_KEYS; 440 settings |= MGMT_SETTING_DEBUG_KEYS;
440 441
442 if (test_bit(HCI_PRIVACY, &hdev->dev_flags))
443 settings |= MGMT_SETTING_PRIVACY;
444
441 return settings; 445 return settings;
442} 446}
443 447