• Andrzej Kaczmarek's avatar
    Bluetooth: Fix powering on with privacy and advertising · e59a5542
    Andrzej Kaczmarek authored
    In order to enable advertising with privacy enabled, SMP has to be
    registered in order to generate new RPA. During power on, it will be
    registered at the very end which is the reason why advertising is not
    enabled and it's not possible to enable it anymore due to mismatch
    between hci_dev settings and actual controller state.
    
    This fixes this problem by moving SMP registration earlier, just after
    controller is powered (which is ok, because LE SMP will be already able
    to decide on identity address to be used), but before advertising is
    enabled.
    Signed-off-by: default avatarAndrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    e59a5542
mgmt.c 205 KB