summaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/Android.mk2
-rw-r--r--hostapd/hostapd.android.rc21
2 files changed, 17 insertions, 6 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index f193a1b..09d2dbb 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -46,7 +46,7 @@ L_CFLAGS += -DANDROID_LIB_STUB
endif
# Use Android specific directory for control interface sockets
-L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\"
+L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/hostapd\"
L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/system/hostapd\"
# Use Android specific directory for hostapd_cli command completion history
diff --git a/hostapd/hostapd.android.rc b/hostapd/hostapd.android.rc
index 37a95c2..e1a003b 100644
--- a/hostapd/hostapd.android.rc
+++ b/hostapd/hostapd.android.rc
@@ -7,15 +7,26 @@
#
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
+ mkdir /data/misc/wifi/hostapd 0770 wifi wifi
-service hostapd /vendor/bin/hw/hostapd
- interface android.hardware.wifi.hostapd@1.0::IHostapd default
+service hostapd /vendor/bin/hostapd -ddddKt \
+ -e /data/misc/wifi/entropy.bin \
+ /data/misc/wifi/hostapd.conf
class main
- capabilities NET_ADMIN NET_RAW
user wifi
group wifi net_raw net_admin
+ writepid /data/misc/wifi/hostapd.pid
+ disabled
+ oneshot
+
+service hostapd_dual /vendor/bin/hostapd -ddddKt \
+ -e /data/misc/wifi/entropy.bin \
+ /data/misc/wifi/hostapd_dual2g.conf \
+ /data/misc/wifi/hostapd_dual5g.conf
+ class main
+ user wifi
+ group wifi net_raw net_admin
+ writepid /data/vendor/wifi/hostapd.pid
disabled
oneshot