• Alan Jenkins's avatar
    eeepc-laptop: fix wlan rfkill state change during init · fbc97e4c
    Alan Jenkins authored
    When an rfkill device is registered, the rfkill core will change its
    state to the system default. So we need to prepare for state changes
    *before* we register it. That means installing the eeepc-specific ACPI
    callback which handles the hotplug of the wireless network adaptor.
    
    This problem doesn't occur during normal operation.  You have to
    
    1) Boot with wireless enabled. eeepc-laptop should load automatically.
    2) modprobe -r eeepc-laptop
    3) modprobe eeepc-laptop
    
    On boot, the default rfkill state will be set to enabled.
    With the current core code, step 2) will disable the wireless.
    Therefore in step 3), the wireless will change state during registration,
    from disabled to enabled.  But without this fix, the PCI device for the
    wireless adaptor will not appear.
    Signed-off-by: default avatarAlan Jenkins <alan-jenkins@tuffmail.co.uk>
    Acked-by: default avatarMatthew Garrett <mjg@redhat.com>
    Signed-off-by: default avatarCorentin Chary <corentincj@iksaif.net>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    fbc97e4c
eeepc-laptop.c 23.8 KB