• Ondrej Zary's avatar
    Bluetooth: bluecard: fix LED behavior · 859d2351
    Ondrej Zary authored
    Keep power LED on during activity.
    
    LED timer races with power LED disabling in hci_close(), resulting in
    power LED left on after closing.
    Stop LED timer before disabling power LED.
    
    BTW. On cards without an activity LED, the behavior is a bit weird:
    The LED is on after hci_open() but only until the first data transfer.
    Then it's off in idle and on during activity.
    It could be improved by keeping the LED on in idle and flashing during
    activity.
    Signed-off-by: default avatarOndrej Zary <linux@rainbow-software.org>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    859d2351
bluecard_cs.c 19.8 KB