aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2016-12-08 18:41:47 -0800
committerdd3boh <dade.garberi@gmail.com>2017-09-07 13:41:55 +0200
commitad72b65243e36e3342eab088cc3140b380a9f74d (patch)
treebb1451922d4dea61a78bfb4107368c0e3092fd34
parent9ef8496791b5d017fd699f1b2b3ba26b88be878d (diff)
init: Change ownership of wifi firmware reload sysfs paths
This will let the wifi hal run as "wifi" user and not need root permissions to access this path for firmware reloads. Bug: 33435250 Test: Compiles. Change-Id: I84a38cea5e0f729147c3191c3485a3738d7838ef
-rwxr-xr-xrootdir/etc/init.qcom.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index 8971d9c..aa8239c 100755
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -339,6 +339,9 @@ on boot
# change this when HAL3 is working
setprop persist.camera.HAL3.enabled 0
+ # Wifi firmware reload path
+ chown wifi wifi /sys/module/wlan/parameters/fwpath
+
# Don't reset entire SoC on individual subsystem crash
write /sys/bus/msm_subsys/devices/subsys0/restart_level "related"
write /sys/bus/msm_subsys/devices/subsys1/restart_level "related"