Skip to content

Commit d4a384a

Browse files
committed
enable wifi
1 parent 3c2018d commit d4a384a

File tree

3 files changed

+35
-8
lines changed

3 files changed

+35
-8
lines changed

init.rpi3.rc

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ on fs
1313
mount_all /fstab.rpi3
1414

1515
on post-fs-data
16-
# Create the directories used by the Wireless subsystem
17-
mkdir /data/misc/wifi 0770 wifi wifi
18-
mkdir /data/misc/wifi/sockets 0770 wifi wifi
19-
mkdir /data/misc/dhcp 0770 dhcp wifi
20-
2116
# Bluetooth
2217
chmod 0660 /sys/class/rfkill/rfkill0/state
2318
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
@@ -26,6 +21,16 @@ on post-fs-data
2621
# Set indication (checked by vold) that we have finished this action
2722
setprop vold.post_fs_data_done 1
2823

24+
on zygote-start
25+
# Create the directories used by the Wireless subsystem
26+
mkdir /data/misc/wifi 0770 wifi wifi
27+
mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
28+
mkdir /data/vendor/wifi 0771 wifi wifi
29+
mkdir /data/vendor/wifi/wpa 0770 wifi wifi
30+
mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi
31+
mkdir /data/misc/dhcp 0770 dhcp dhcp
32+
chown dhcp dhcp /data/misc/dhcp
33+
2934
on boot
3035
setprop net.dns1 8.8.8.8
3136
setprop net.dns2 8.8.4.4
@@ -40,9 +45,10 @@ on boot
4045
start adbd
4146

4247
service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
43-
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
48+
-iwlan0 -Dnl80211 -c/vendor/etc/wifi/wpa_supplicant.conf \
4449
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
45-
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
50+
-O/data/vendor/wifi/wpa/sockets -g@android:wpa_wlan0
51+
interface [email protected]::ISupplicant default
4652
class main
4753
socket wpa_wlan0 dgram 660 wifi wifi
4854
disabled

manifest.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,22 @@
7979
<instance>default</instance>
8080
</interface>
8181
</hal>
82+
<hal format="hidl">
83+
<name>android.hardware.wifi</name>
84+
<transport>hwbinder</transport>
85+
<version>1.0</version>
86+
<interface>
87+
<name>IWifi</name>
88+
<instance>default</instance>
89+
</interface>
90+
</hal>
91+
<hal format="hidl">
92+
<name>android.hardware.wifi.supplicant</name>
93+
<transport>hwbinder</transport>
94+
<version>1.0</version>
95+
<interface>
96+
<name>ISupplicant</name>
97+
<instance>default</instance>
98+
</interface>
99+
</hal>
82100
</manifest>

rpi3.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ PRODUCT_PACKAGES += \
2828
memtrack.rpi3 \
2929
audio.primary.rpi3 \
3030
audio.usb.default \
31+
wificond \
32+
wifilogd \
3133
wpa_supplicant \
3234
wpa_supplicant.conf
3335

@@ -41,7 +43,8 @@ PRODUCT_PACKAGES += \
4143
4244
4345
44-
46+
47+
4548

4649
# system configurations
4750
PRODUCT_COPY_FILES := \

0 commit comments

Comments
 (0)