asus-nb-wmi: set wapf=4 for ASUSTeK COMPUTER INC. X75VBP

From: poma
Date: Tue Apr 22 2014 - 16:39:42 EST



Ahoy!

Need to set wapf to 4 for ASUSTeK COMPUTER INC. X75VBP, so that
the device is enabled.

The corresponding /sys/class/dmi/id/* values via dmesg:
DMI: ASUSTeK COMPUTER INC. X75VBP/X75VBP, BIOS X75VBP.304 06/04/2013

Tested with WAPF values 0, 1 and 4.
The values 1 and 4 have the same effect regarding wireless network
adapter enablement.
A value of 0 has no effect.
The corresponding command line:
Kernel command line: BOOT_IMAGE=/isolinux/vmlinuz0
root=live:LABEL=Fedora-Live-Xfce-x86_64-rawhide- ro rd.live.image
selinux=0 biosdevname=0 asus-nb-wmi.wapf=4

rfkill list - vulgaris:
1: asus-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
2: asus-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
4: hci0: Bluetooth
Soft blocked: no
Hard blocked: no

rfkill list - asus-nb-wmi.wapf=1,
asus-nb-wmi.wapf=4:
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: asus-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
3: asus-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no

Regardless of the values ââof the WAPF parameter,
<Fn><F2> key combination does not give any results,
i.e. does not toggles The Internal Wireless LAN ON or OFF.
Also the WLAN LED is always ON, no matter what.


poma


diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c
index 563f59e..674793d 100644
--- a/drivers/platform/x86/asus-nb-wmi.c
+++ b/drivers/platform/x86/asus-nb-wmi.c
@@ -182,6 +182,15 @@ static struct dmi_system_id asus_quirks[] = {
},
{
.callback = dmi_matched,
+ .ident = "ASUSTeK COMPUTER INC. X75VBP",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "X75VBP"),
+ },
+ .driver_data = &quirk_asus_x401u,
+ },
+ {
+ .callback = dmi_matched,
.ident = "ASUSTeK COMPUTER INC. 1015E",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),