2015-06-10 17:44:59

by Dmitry Tunin

[permalink] [raw]
Subject: [PATCH] Add wapf1 quirk for Asus X550VC

Wireless is always blocked on this device.
There is no way to unblock by software or hardware.

1: asus-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
2: asus-bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes

With wapf=4 bluetooth unblocks but wifi stays blocked

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
7: hci0: Bluetooth
Soft blocked: no
Hard blocked: no

Only with wapf=1 everything works OK.

Signed-off-by: Dmitry Tunin <[email protected]>
Cc: [email protected]
---
drivers/platform/x86/asus-nb-wmi.c | 13 +++++++++++++
1 file changed, 13 insertions(+)

diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c
index abdaed3..cf5ba28 100644
--- a/drivers/platform/x86/asus-nb-wmi.c
+++ b/drivers/platform/x86/asus-nb-wmi.c
@@ -78,6 +78,10 @@ static struct quirk_entry quirk_asus_x200ca = {
.wapf = 2,
};

+static struct quirk_entry quirk_asus_wapf1 = {
+ .wapf = 1,
+};
+
static int dmi_matched(const struct dmi_system_id *dmi)
{
quirks = dmi->driver_data;
@@ -191,6 +195,15 @@ static const struct dmi_system_id asus_quirks[] = {
},
{
.callback = dmi_matched,
+ .ident = "ASUSTeK COMPUTER INC. X550VC",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "X550VC"),
+ },
+ .driver_data = &quirk_asus_wapf1,
+ },
+ {
+ .callback = dmi_matched,
.ident = "ASUSTeK COMPUTER INC. X551CA",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
--
1.9.1


2015-06-18 21:39:36

by Darren Hart

[permalink] [raw]
Subject: Re: [PATCH] Add wapf1 quirk for Asus X550VC

On Wed, Jun 10, 2015 at 08:44:22PM +0300, Dmitry Tunin wrote:
> Wireless is always blocked on this device.
> There is no way to unblock by software or hardware.
>
> 1: asus-wlan: Wireless LAN
> Soft blocked: no
> Hard blocked: no
> 2: asus-bluetooth: Bluetooth
> Soft blocked: yes
> Hard blocked: no
> 3: phy0: Wireless LAN
> Soft blocked: no
> Hard blocked: yes
>
> With wapf=4 bluetooth unblocks but wifi stays blocked
>
> 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
> 7: hci0: Bluetooth
> Soft blocked: no
> Hard blocked: no
>
> Only with wapf=1 everything works OK.
>
> Signed-off-by: Dmitry Tunin <[email protected]>
> Cc: [email protected]

Thanks Dmitry, queued.

--
Darren Hart
Intel Open Source Technology Center