1
2on boot
3    setprop wlan.driver.status ok
4
5on post-fs-data
6    # Create the directories used by the Wireless subsystem
7    mkdir /data/vendor/misc 0770 wifi wifi
8    mkdir /data/vendor/misc/wifi 0770 wifi wifi
9    mkdir /data/vendor/misc/wifi/sockets 0770 wifi wifi
10    mkdir /data/vendor/misc/dhcp 0770 dhcp system
11
12service wpa_supplicant /system/vendor/bin/hw/wpa_supplicant \
13     -ip2p0 -Dnl80211 -c/vendor/etc/wifi/p2p_supplicant.conf \
14     -e/data/misc/wifi/entropy.bin -N \
15     -iwlan0 -Dnl80211 -c/vendor/etc/wifi/wpa_supplicant.conf \
16     -O/data/vendor/misc/wifi/sockets \
17     -g@android:wpa_wlan0
18     socket wpa_wlan0 dgram 660 wifi wifi
19     class main
20     user wifi
21     group wifi net_raw net_admin
22     capabilities NET_RAW NET_ADMIN
23     writepid /data/vendor/misc/wifi/wpa_supplicant.pid
24     disabled
25     oneshot
26