• Henrique de Moraes Holschuh's avatar
    ACPI: thinkpad-acpi: WLSW overrides other rfkill switches · 133ec3bd
    Henrique de Moraes Holschuh authored
    On ThinkPads where the WLSW switch exists, the firmware or the hardware
    ANDs the WLSW state with the device-specific switches (WWAN, Bluetooth).
    It is downright impossible to enable WWAN or Bluetooth when WLSW is
    blocking the radios.
    
    This reality does not necessarily carry over to the WWAN and Bluetooth
    firmware interfaces, though... so the state thinkpad-acpi was reporting
    could be incorrect.
    
    Tie the three switches in the driver so that we keep their state sane.
    When WLSL is off, force the other switches to off as well.
    Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
    133ec3bd
thinkpad_acpi.c 161 KB