mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Bluetooth: Fix unnecessary EIR update during powering on
When powered on the EIR data gets updated as the last step by mgmt. Therefore avoid an update when getting a local name update as that's part of the normal HCI init sequence. Signed-off-by: Johan Hedberg <[email protected]> Acked-by: Marcel Holtmann <[email protected]> Signed-off-by: Gustavo Padovan <[email protected]>
This commit is contained in:
parent
6b4b73ee75
commit
1225a6bdf8
1 changed files with 6 additions and 1 deletions
|
|
@ -3516,7 +3516,12 @@ send_event:
|
|||
err = mgmt_event(MGMT_EV_LOCAL_NAME_CHANGED, hdev, &ev,
|
||||
sizeof(ev), cmd ? cmd->sk : NULL);
|
||||
|
||||
update_eir(hdev);
|
||||
/* EIR is taken care of separately when powering on the
|
||||
* adapter so only update them here if this is a name change
|
||||
* unrelated to power on.
|
||||
*/
|
||||
if (!test_bit(HCI_INIT, &hdev->flags))
|
||||
update_eir(hdev);
|
||||
|
||||
failed:
|
||||
if (cmd)
|
||||
|
|
|
|||
Loading…
Reference in a new issue