• M
    Bluetooth: Bind the SMP channel registration to management power state · 162a3bac
    Marcel Holtmann 提交于
    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: NMarcel Holtmann <marcel@holtmann.org>
    Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
    162a3bac
mgmt.c 175.5 KB