Skip to content
  • Marcel Holtmann's avatar
    Bluetooth: Bind the SMP channel registration to management power state · 162a3bac
    Marcel Holtmann authored
    
    
    When the controller gets powered on via the management interface, then
    register the supported SMP channels. There is no point in registering
    these channels earlier since it is not know what identity address the
    controller is going to operate with.
    
    When powering down a controller unregister all SMP channels. This is
    required since a powered down controller is allowed to change its
    identity address.
    
    In addition the SMP channels are only available when the controller
    is powered via the management interface. When using legacy ioctl, then
    Bluetooth Low Energy is not supported and registering kernel side SMP
    integration may actually cause confusion.
    
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
    162a3bac