mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-25 11:55:37 +00:00
staging: rtl8192e: Remove call_usermodehelper starting RadioPower.sh
commit fe413a074a
upstream.
Remove call_usermodehelper starting /etc/acpi/events/RadioPower.sh that
is not available. This script is not part of the kernel and it is not
officially available on the www. The result is that this lines are just
dead code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Cc: stable <stable@kernel.org>
Link: https://lore.kernel.org/r/20230301215441.GA14049@matrix-ESPRIMO-P710
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
83d76e3d8b
commit
49393a43c6
1 changed files with 0 additions and 12 deletions
|
@ -1642,10 +1642,6 @@ static void _rtl92e_dm_check_rf_ctrl_gpio(void *data)
|
||||||
u8 tmp1byte;
|
u8 tmp1byte;
|
||||||
enum rt_rf_power_state rf_power_state_to_set;
|
enum rt_rf_power_state rf_power_state_to_set;
|
||||||
bool bActuallySet = false;
|
bool bActuallySet = false;
|
||||||
char *argv[3];
|
|
||||||
static const char RadioPowerPath[] = "/etc/acpi/events/RadioPower.sh";
|
|
||||||
static char *envp[] = {"HOME=/", "TERM=linux", "PATH=/usr/bin:/bin",
|
|
||||||
NULL};
|
|
||||||
|
|
||||||
bActuallySet = false;
|
bActuallySet = false;
|
||||||
|
|
||||||
|
@ -1675,14 +1671,6 @@ static void _rtl92e_dm_check_rf_ctrl_gpio(void *data)
|
||||||
mdelay(1000);
|
mdelay(1000);
|
||||||
priv->bHwRfOffAction = 1;
|
priv->bHwRfOffAction = 1;
|
||||||
rtl92e_set_rf_state(dev, rf_power_state_to_set, RF_CHANGE_BY_HW);
|
rtl92e_set_rf_state(dev, rf_power_state_to_set, RF_CHANGE_BY_HW);
|
||||||
if (priv->hw_radio_off)
|
|
||||||
argv[1] = "RFOFF";
|
|
||||||
else
|
|
||||||
argv[1] = "RFON";
|
|
||||||
|
|
||||||
argv[0] = (char *)RadioPowerPath;
|
|
||||||
argv[2] = NULL;
|
|
||||||
call_usermodehelper(RadioPowerPath, argv, envp, UMH_WAIT_PROC);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue