rosemary: Configure Wi-Fi stack
This commit is contained in:
committed by
Matsvei Niaverau
parent
d4520d6186
commit
c472ec085f
BIN
proprietary/vendor/bin/hw/hostapd
vendored
BIN
proprietary/vendor/bin/hw/hostapd
vendored
Binary file not shown.
BIN
proprietary/vendor/bin/hw/wpa_supplicant
vendored
BIN
proprietary/vendor/bin/hw/wpa_supplicant
vendored
Binary file not shown.
@@ -1,16 +0,0 @@
|
||||
service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
|
||||
-O/data/vendor/wifi/wpa/sockets -dd \
|
||||
-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
|
||||
# group wifi inet keystore
|
||||
interface android.hardware.wifi.supplicant@1.0::ISupplicant default
|
||||
interface android.hardware.wifi.supplicant@1.1::ISupplicant default
|
||||
interface android.hardware.wifi.supplicant@1.2::ISupplicant default
|
||||
interface android.hardware.wifi.supplicant@1.3::ISupplicant default
|
||||
interface android.hardware.wifi.supplicant@1.4::ISupplicant default
|
||||
class main
|
||||
socket wpa_wlan0 dgram 660 wifi wifi
|
||||
disabled
|
||||
oneshot
|
||||
24
proprietary/vendor/etc/init/hostapd.android.rc
vendored
24
proprietary/vendor/etc/init/hostapd.android.rc
vendored
@@ -1,24 +0,0 @@
|
||||
#
|
||||
# init.rc fragment for hostapd on Android
|
||||
# Copyright (c) 2002-2016, Jouni Malinen <j@w1.fi>
|
||||
#
|
||||
# This software may be distributed under the terms of the BSD license.
|
||||
# See README for more details.
|
||||
#
|
||||
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/wifi 0770 wifi wifi
|
||||
mkdir /data/vendor/wifi/hostapd 0770 wifi wifi
|
||||
mkdir /data/vendor/wifi/hostapd/sockets 0770 wifi wifi
|
||||
|
||||
service hostapd /vendor/bin/hw/hostapd
|
||||
interface android.hardware.wifi.hostapd@1.0::IHostapd default
|
||||
interface android.hardware.wifi.hostapd@1.1::IHostapd default
|
||||
interface android.hardware.wifi.hostapd@1.2::IHostapd default
|
||||
interface android.hardware.wifi.hostapd@1.3::IHostapd default
|
||||
class main
|
||||
capabilities NET_ADMIN NET_RAW
|
||||
user wifi
|
||||
group wifi net_raw net_admin
|
||||
disabled
|
||||
oneshot
|
||||
@@ -1,11 +0,0 @@
|
||||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.wifi.hostapd</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.3</version>
|
||||
<interface>
|
||||
<name>IHostapd</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</manifest>
|
||||
@@ -1,11 +0,0 @@
|
||||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.wifi.supplicant</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.4</version>
|
||||
<interface>
|
||||
<name>ISupplicant</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</manifest>
|
||||
Reference in New Issue
Block a user