Skip to content

Commit

Permalink
enable wifi
Browse files Browse the repository at this point in the history
  • Loading branch information
peyo-hd committed Jun 12, 2019
1 parent 3c2018d commit d4a384a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
20 changes: 13 additions & 7 deletions init.rpi3.rc
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ on fs
mount_all /fstab.rpi3

on post-fs-data
# 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/dhcp 0770 dhcp wifi

# Bluetooth
chmod 0660 /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
Expand All @@ -26,6 +21,16 @@ on post-fs-data
# Set indication (checked by vold) that we have finished this action
setprop vold.post_fs_data_done 1

on zygote-start
# Create the directories used by the Wireless subsystem
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/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
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp

on boot
setprop net.dns1 8.8.8.8
setprop net.dns2 8.8.4.4
Expand All @@ -40,9 +45,10 @@ on boot
start adbd

service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-iwlan0 -Dnl80211 -c/vendor/etc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
-O/data/vendor/wifi/wpa/sockets -g@android:wpa_wlan0
interface [email protected]::ISupplicant default
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
Expand Down
18 changes: 18 additions & 0 deletions manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,22 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.wifi</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IWifi</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.wifi.supplicant</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ISupplicant</name>
<instance>default</instance>
</interface>
</hal>
</manifest>
5 changes: 4 additions & 1 deletion rpi3.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ PRODUCT_PACKAGES += \
memtrack.rpi3 \
audio.primary.rpi3 \
audio.usb.default \
wificond \
wifilogd \
wpa_supplicant \
wpa_supplicant.conf

Expand All @@ -41,7 +43,8 @@ PRODUCT_PACKAGES += \
[email protected] \
[email protected] \
[email protected] \
[email protected]
[email protected] \
[email protected]

# system configurations
PRODUCT_COPY_FILES := \
Expand Down

0 comments on commit d4a384a

Please sign in to comment.