summaryrefstree
path: root/vendor/etc/init/hostapd.android.rc
blob: 1cb322263117fd7689c900e225f916f1922736ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# 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 -dd -g /data/vendor/wifi/hostapd/global
    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 vendor.qti.hardware.wifi.hostapd@1.0::IHostapdVendor default
    interface vendor.qti.hardware.wifi.hostapd@1.1::IHostapdVendor default
    interface vendor.qti.hardware.wifi.hostapd@1.2::IHostapdVendor default
    class main
    capabilities NET_ADMIN NET_RAW
    user wifi
    group wifi net_raw net_admin
    disabled
    oneshot