asus-nb-wmi: Add wapf=4 quirk for X456UA/X456UF
PATCH 1/1 asus-nb-wmi: Add wapf=4 quirk for X456UA/X456UF
These laptops boot with wifi as hard-blocked, with no obvious way to enable it. Using a quirk to set wapf=4 solves the problem.
--- drivers/platform/x86/asus-nb-wmi.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +18 -0
@@ -128,6 +128,24 @@ static const struct dmi_system_id asus_quirks[] = { }, { .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. X456UA", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "X456UA"), + }, + .driver_data = &quirk_asus_wapf4, + }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. X456UF", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "X456UF"), + }, + .driver_data = &quirk_asus_wapf4, + }, + { + .callback = dmi_matched, .ident = "ASUSTeK COMPUTER INC. X501U", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
Signature · 1 line
2.1.4
Quoted 4 lines · Daniel Drake
These laptops boot with wifi as hard-blocked, with no obvious way to enable it. Using a quirk to set wapf=4 solves the problem.
Signed-off-by Daniel Drake <[email protected]>
Looks good.
Corentin, any concerns?
Quoted 37 lines
--- drivers/platform/x86/asus-nb-wmi.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)drivers/platform/x86/asus-nb-wmi.c +18
-0@@ -128,6 +128,24 @@ static const struct dmi_system_id asus_quirks[] = { }, { .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. X456UA", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "X456UA"), + }, + .driver_data = &quirk_asus_wapf4, + }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. X456UF", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "X456UF"), + }, + .driver_data = &quirk_asus_wapf4, + }, + { + .callback = dmi_matched, .ident = "ASUSTeK COMPUTER INC. X501U", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),Signature · 1 line
2.1.4
Signature · 2 lines
Darren Hart Intel Open Source Technology Center
Looks good.
I'd like to get somebody from Asus help us guess these values instead of just hard-coding them.. Unfortunately I have no contact with them anymore.
Quoted 51 lines · Darren Hart
Quoted 4 lines · Daniel Drake
These laptops boot with wifi as hard-blocked, with no obvious way to enable it. Using a quirk to set wapf=4 solves the problem.
Signed-off-by Daniel Drake <[email protected]>Looks good.
Corentin, any concerns?
Quoted 34 lines
--- drivers/platform/x86/asus-nb-wmi.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)drivers/platform/x86/asus-nb-wmi.c +18
-1@@ -128,6 +128,24 @@ static const struct dmi_system_id asus_quirks[] = { }, { .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. X456UA", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "X456UA"), + }, + .driver_data = &quirk_asus_wapf4, + }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. X456UF", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "X456UF"), + }, + .driver_data = &quirk_asus_wapf4, + }, + { + .callback = dmi_matched, .ident = "ASUSTeK COMPUTER INC. X501U", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), --Quoted 3 lines
2.1.4
--
Darren Hart
Intel Open Source Technology Center
Signature · 2 lines
Corentin Chary http://xf.iksaif.net
Quoted 3 lines · Corentin Chary
Looks good.
Acked-by Corentin Chary <[email protected]>
Thanks, queued for testing. Should make 4.3.
Signature · 2 lines
Darren Hart Intel Open Source Technology Center
Quoted 7 lines · Corentin Chary
Looks good.
Acked-by Corentin Chary <[email protected]>I'd like to get somebody from Asus help us guess these values instead of just hard-coding them.. Unfortunately I have no contact with them anymore.
I'll see if I can get a conversation going. I don't fully grasp this WAPF situation though. Are you hoping that they would provide us with a complete list of laptops to quirk, or do you think there is instead some way we could improve the code to work with all models without a specific whitelist/blacklist?
Thanks
Daniel
Corentin Chary
maintainerQuoted 9 lines · Daniel Drake
Quoted 7 lines · Corentin Chary
Looks good.
Acked-by Corentin Chary <[email protected]>I'd like to get somebody from Asus help us guess these values instead of just hard-coding them.. Unfortunately I have no contact with them anymore.
Quoted 5 lines
I'll see if I can get a conversation going. I don't fully grasp this WAPF situation though. Are you hoping that they would provide us with a complete list of laptops to quirk, or do you think there is instead some way we could improve the code to work with all models without a specific whitelist/blacklist?
I think at least having proper documentation of the intended behavior of WAPF and how they themselves set the value for windows would be great.
Quoted 2 lines
Thanks
Daniel
Signature · 2 lines
Corentin Chary http://xf.iksaif.net