marlin/sailfish: 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.
(cherry-pick of commit 7a5ffa283181f4437c2107c59af4580a50df31a9)
Bug: 33435250
Test: Compiles.
Change-Id: I84a38cea5e0f729147c3191c3485a3738d7838ef
diff --git a/init.common.rc b/init.common.rc
index 97fd351..c2fa030 100755
--- a/init.common.rc
+++ b/init.common.rc
@@ -416,6 +416,9 @@
setprop ro.qualcomm.bluetooth.map true
setprop ro.bluetooth.hfp.ver 1.6
+ # Wifi firmware reload path
+ chown wifi wifi /sys/module/wlan/parameters/fwpath
+
on property:wc_transport.start_hci=true
start start_hci_filter