OSDN Git Service

eeepc-laptop: check the 3G rfkill state on resume
authorCorentin Chary <corentincj@iksaif.net>
Tue, 29 Sep 2009 14:08:17 +0000 (16:08 +0200)
committerCorentin Chary <corentincj@iksaif.net>
Wed, 30 Sep 2009 20:17:45 +0000 (22:17 +0200)
All the rfkill devices are treated as "persistent", 3G is no exception.
This means their state may change over hibernation.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/eeepc-laptop.c

index 7f5dfb9..1c929b0 100644 (file)
@@ -845,6 +845,10 @@ static int eeepc_hotk_resume(struct acpi_device *device)
                rfkill_force_state(ehotk->bluetooth_rfkill,
                                   get_acpi(CM_ASL_BLUETOOTH) != 1);
 
+       if (ehotk->wwan3g_rfkill)
+               rfkill_force_state(ehotk->wwan3g_rfkill,
+                                  get_acpi(CM_ASL_3G) != 1);
+
        return 0;
 }