acer-wmi: check the existence of internal wireless device when set capability
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Thu, 18 Aug 2011 10:47:34 +0000 (18:47 +0800)
committerMatthew Garrett <mjg@redhat.com>
Mon, 24 Oct 2011 14:52:42 +0000 (16:52 +0200)
commit1fbc01a7b0f2cf5dc375ecde3833df2fbbfdc812
tree630776d044bf599c1f7e2e1826db74b3a571e6ce
parent72e71de15fceb0fd7cdfd8bb35f4f8aa8b0e20b5
acer-wmi: check the existence of internal wireless device when set capability

That will be better to check the existence of internal wireless device
when we set wireless capability and generate killswitch for it. It can
avoid userland access wireless rfkill but the machine doesn't have internal
wireless device.

Tested on Acer Travelmate 8572

Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Corentin Chary <corentincj@iksaif.net>
Cc: Thomas Renninger <trenn@suse.de>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/acer-wmi.c