mkdir /data/media 0770 media_rw media_rw
chmod 0660 /data/misc/wifi/p2p_supplicant.conf
+ # Create the directories used by the Wireless subsystem
+ mkdir /data/misc/wifi 0770 wifi wifi
+ mkdir /data/misc/wifi/sockets 0770 wifi wifi
+ mkdir /data/misc/wpa_supplicant 0770 wifi wifi
+ mkdir /data/vendor/wifi 0771 wifi wifi
+ mkdir /data/vendor/wifi/wpa 0770 wifi wifi
+ mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi
# dhcp server
mkdir /data/misc/dhcp 0770 dhcp wifi
-I/system/etc/wifi/wpa_supplicant_overlay.conf -N \
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin -dd \
-I/system/etc/wifi/p2p_supplicant_overlay.conf \
- -O/data/misc/wifi/sockets -g@android:wpa_wlan0
+ -O/data/vendor/wifi/wpa/sockets \
+ -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
# user wifi