From: Johan Hedberg Date: Sun, 23 Feb 2014 17:42:25 +0000 (+0200) Subject: Bluetooth: Don't write static address during power on X-Git-Tag: accepted/tizen/common/20141203.182822~316^2~18^2^2~46^2~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f71c6c3157d12c90d3cf920dd5e94045679fdce;p=platform%2Fkernel%2Flinux-arm64.git 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 Signed-off-by: Marcel Holtmann --- 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.