aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/platform/x86/dell-laptop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index b13eb6a2cb51..81213e815400 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -190,6 +190,10 @@ static int dell_rfkill_set(void *data, bool blocked)
190 unsigned long radio = (unsigned long)data; 190 unsigned long radio = (unsigned long)data;
191 191
192 memset(&buffer, 0, sizeof(struct calling_interface_buffer)); 192 memset(&buffer, 0, sizeof(struct calling_interface_buffer));
193 dell_send_request(&buffer, 17, 11);
194 if (!(buffer.output[1] & BIT(16)))
195 return -EINVAL;
196
193 buffer.input[0] = (1 | (radio<<8) | (disable << 16)); 197 buffer.input[0] = (1 | (radio<<8) | (disable << 16));
194 dell_send_request(&buffer, 17, 11); 198 dell_send_request(&buffer, 17, 11);
195 199