Patch "staging: rtl8192e: Remove call_usermodehelper starting RadioPower.sh" has been added to the 4.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    staging: rtl8192e: Remove call_usermodehelper starting RadioPower.sh

to the 4.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     staging-rtl8192e-remove-call_usermodehelper-starting-radiopower.sh.patch
and it can be found in the queue-4.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From fe413a074a93d56f89e322c786aad8639afe76b4 Mon Sep 17 00:00:00 2001
From: Philipp Hortmann <philipp.g.hortmann@xxxxxxxxx>
Date: Wed, 1 Mar 2023 22:54:41 +0100
Subject: staging: rtl8192e: Remove call_usermodehelper starting RadioPower.sh

From: Philipp Hortmann <philipp.g.hortmann@xxxxxxxxx>

commit fe413a074a93d56f89e322c786aad8639afe76b4 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@xxxxxxxxx>
Cc: stable <stable@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20230301215441.GA14049@matrix-ESPRIMO-P710
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c |   12 ------------
 1 file changed, 12 deletions(-)

--- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
@@ -1782,10 +1782,6 @@ static void _rtl92e_dm_check_rf_ctrl_gpi
 	u8 tmp1byte;
 	enum rt_rf_power_state eRfPowerStateToSet;
 	bool bActuallySet = false;
-	char *argv[3];
-	static char const RadioPowerPath[] = "/etc/acpi/events/RadioPower.sh";
-	static char *envp[] = {"HOME=/", "TERM=linux", "PATH=/usr/bin:/bin",
-			       NULL};
 
 	bActuallySet = false;
 
@@ -1817,14 +1813,6 @@ static void _rtl92e_dm_check_rf_ctrl_gpi
 		mdelay(1000);
 		priv->bHwRfOffAction = 1;
 		rtl92e_set_rf_state(dev, eRfPowerStateToSet, RF_CHANGE_BY_HW);
-		if (priv->bHwRadioOff)
-			argv[1] = "RFOFF";
-		else
-			argv[1] = "RFON";
-
-		argv[0] = (char *)RadioPowerPath;
-		argv[2] = NULL;
-		call_usermodehelper(RadioPowerPath, argv, envp, UMH_WAIT_PROC);
 	}
 }
 


Patches currently in stable-queue which might be from philipp.g.hortmann@xxxxxxxxx are

queue-4.14/staging-rtl8192e-remove-function-..dm_check_ac_dc_power-calling-a-script.patch
queue-4.14/staging-rtl8192e-remove-call_usermodehelper-starting-radiopower.sh.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux