diff options
| -rw-r--r-- | drivers/platform/x86/dell-laptop.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c index fe20f67ff44b..bd67c893ba07 100644 --- a/drivers/platform/x86/dell-laptop.c +++ b/drivers/platform/x86/dell-laptop.c | |||
| @@ -93,6 +93,10 @@ static struct backlight_device *dell_backlight_device; | |||
| 93 | static struct rfkill *wifi_rfkill; | 93 | static struct rfkill *wifi_rfkill; |
| 94 | static struct rfkill *bluetooth_rfkill; | 94 | static struct rfkill *bluetooth_rfkill; |
| 95 | static struct rfkill *wwan_rfkill; | 95 | static struct rfkill *wwan_rfkill; |
| 96 | static bool force_rfkill; | ||
| 97 | |||
| 98 | module_param(force_rfkill, bool, 0444); | ||
| 99 | MODULE_PARM_DESC(force_rfkill, "enable rfkill on non whitelisted models"); | ||
| 96 | 100 | ||
| 97 | static const struct dmi_system_id dell_device_table[] __initconst = { | 101 | static const struct dmi_system_id dell_device_table[] __initconst = { |
| 98 | { | 102 | { |
| @@ -567,7 +571,7 @@ static int __init dell_setup_rfkill(void) | |||
| 567 | * actually testing the rfkill functionality is only done on Latitudes. | 571 | * actually testing the rfkill functionality is only done on Latitudes. |
| 568 | */ | 572 | */ |
| 569 | product = dmi_get_system_info(DMI_PRODUCT_NAME); | 573 | product = dmi_get_system_info(DMI_PRODUCT_NAME); |
| 570 | if (!product || strncmp(product, "Latitude", 8)) | 574 | if (!force_rfkill && (!product || strncmp(product, "Latitude", 8))) |
| 571 | return 0; | 575 | return 0; |
| 572 | 576 | ||
| 573 | get_buffer(); | 577 | get_buffer(); |
