diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2018-01-24 08:57:13 -0800 |
---|---|---|
committer | Arian <arian.kulmer@web.de> | 2019-10-25 22:16:13 +0200 |
commit | f84315c6a58bd63d1140d62fb6927e0136541ae2 (patch) | |
tree | f655e1a13ed12ed026fc00b366a7e2eb822badd8 /rootdir | |
parent | 3dc59299b8d0655a2ce644293312b1f3995c8419 (diff) |
shinano-common: wpa_supplicant: Move control sockets to /data/vendor
Treble compliance.
Bug: 70228425
Bug: 70393317
Test: complete wifi test in b/70393317
Test: verify sockets exist in /data/vendor/wifi/wpa/sockets
Change-Id: I0bfc3a351419f0a03498e79664949f353369bf1b
Signed-off-by: Nikhil Punathil <nikhilpe@gmail.com>
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.qcom.rc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index d972b5f..f554ca7 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -370,6 +370,11 @@ on post-fs-data mkdir /data/misc/location/xtwifi 0770 gps gps mkdir /data/misc/location/gsiff 0770 gps gps + # Create the directories used by the Wireless subsystem + mkdir /data/vendor/wifi 0770 wifi wifi + mkdir /data/vendor/wifi/wpa 0770 wifi wifi + mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi + # Provide the access to hostapd.conf only to root and group chmod 0660 /data/hostapd/hostapd.conf @@ -439,7 +444,7 @@ service wpa_supplicant /system/vendor/bin/hw/wpa_supplicant \ -I/system/etc/wifi/wpa_supplicant_overlay.conf -N \ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \ -I/system/etc/wifi/p2p_supplicant_overlay.conf \ - -O/data/misc/wifi/sockets -puse_p2p_group_interface=1 \ + -O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1 \ -g@android:wpa_wlan0 # we will start as root and wpa_supplicant will switch to user wifi # after setting up the capabilities required for WEXT |