hp-wmi: detect "2009 BIOS or later" flag by WMI 0x0d for wireless cmd
authorAlex Hung <alex.hung@canonical.com>
Tue, 29 Oct 2013 06:57:58 +0000 (14:57 +0800)
committerMatthew Garrett <matthew.garrett@nebula.com>
Wed, 20 Nov 2013 23:51:03 +0000 (18:51 -0500)
commit997daa1bd9aca412ab97955a35b26c460c0ec7a4
tree1a34de5d9f9924fe70dc988f5231227615b2833e
parentcfb743bf6173063b57ef5a8185ea87f130209d4d
hp-wmi: detect "2009 BIOS or later" flag by WMI 0x0d for wireless cmd

Some HP BIOS has dummy WMI 0x05 cmd and it causes wireless set cmd to fail.
This patch fixes the problem by detecting "2009 BIOS or later" flag which
determines whether WMI 0x1b is supported and is used to replace WMI 0x05.

Signed-off-by: Alex Hung <alex.hung@canonical.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/hp-wmi.c