1
0
Fork 0

asus-wmi: on/off bit is not set when reading the value

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
wifi-calibration
Corentin Chary 2012-03-20 09:53:04 +01:00 committed by Matthew Garrett
parent eb649a818a
commit c09b2237da
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ static int kbd_led_read(struct asus_wmi *asus, int *level, int *env)
if (retval >= 0) {
if (level)
*level = retval & 0x80 ? retval & 0x7F : 0;
*level = retval & 0x7F;
if (env)
*env = (retval >> 8) & 0x7F;
retval = 0;