diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-02-23 19:42:25 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-02-23 12:24:26 -0800 |
commit | 8f71c6c3157d12c90d3cf920dd5e94045679fdce (patch) | |
tree | a1a8ec67de483b32f704fef68bbe0356b7e93051 /net/bluetooth/mgmt.c | |
parent | d9483943601ba7095af42a159faacf7746a74bc9 (diff) | |
download | op-kernel-dev-8f71c6c3157d12c90d3cf920dd5e94045679fdce.zip op-kernel-dev-8f71c6c3157d12c90d3cf920dd5e94045679fdce.tar.gz |
Bluetooth: Don't write static address during power on
Since we always update the random address before enabling advertising,
scanning and initiating LE connections there is no need to write the
random address add power on.
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.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index e369c87..49d52a3 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -4608,11 +4608,6 @@ static int powered_update_hci(struct hci_dev *hdev) } if (lmp_le_capable(hdev)) { - /* Set random address to static address if configured */ - if (bacmp(&hdev->static_addr, BDADDR_ANY)) - hci_req_add(&req, HCI_OP_LE_SET_RANDOM_ADDR, 6, - &hdev->static_addr); - /* Make sure the controller has a good default for * advertising data. This also applies to the case * where BR/EDR was toggled during the AUTO_OFF phase. |