• C
    asus-laptop: add bluetooth and wlan support · 4564de17
    Corentin Chary 提交于
    WLED and BLED are not handled like other leds (MLED, etc ..),
    because sometime they also control the wlan/bluetooth device.
    If the method for wireless_status is found, it's used to get the
    status, otherwise hotk->status is used.  We also use the HWRS
    method, which tell if the bluetooth/wlan device is present or not.
    This patch show why we need a ASUS_SET_DEVICE_ATTR macro : if
    there is a bluetooth device, /sys/dev.../asus-laptop/bluetooth
    is usable, else it's not but it's clean.
    Signed-off-by: NCorentin Chary <corentincj@iksaif.net>
    Signed-off-by: NLen Brown <len.brown@intel.com>
    4564de17
asus-laptop.c 21.0 KB