summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinit.tuna.rc12
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml4
2 files changed, 15 insertions, 1 deletions
diff --git a/init.tuna.rc b/init.tuna.rc
index 80d9729..224ed35 100755
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -105,7 +105,7 @@ service sdcard /system/bin/sdcard /data/media 1023 1023
class late_start
service wpa_supplicant /system/bin/wpa_supplicant \
- -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
+ -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
@@ -120,6 +120,11 @@ service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
disabled
oneshot
+service dhcpcd_p2p /system/bin/dhcpcd -aABKL
+ class main
+ disabled
+ oneshot
+
service dhcpcd_bnep0 /system/bin/dhcpcd -ABKL
class main
disabled
@@ -130,6 +135,11 @@ service iprenew_wlan0 /system/bin/dhcpcd -n
disabled
oneshot
+service iprenew_p2p /system/bin/dhcpcd -n
+ class main
+ disabled
+ oneshot
+
service iprenew_bnep0 /system/bin/dhcpcd -n
class main
disabled
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index c25041b..3ac06f2 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -99,6 +99,7 @@
<item>"mobile_supl,3,0,2,60000,true"</item>
<item>"mobile_hipri,5,0,3,60000,true"</item>
<item>"mobile_bluetooth,7,7,1,-1,true"</item>
+ <item>"wifi_p2p,13,1,0,-1,true"</item>
</string-array>
<!-- An Array of "[ConnectivityManager connectionType],
@@ -146,6 +147,9 @@
<!-- Boolean indicating whether the wifi chipset has background scan support -->
<bool translatable="false" name="config_wifi_background_scan_support">true</bool>
+ <!-- Boolean indicating whether the wifi chipset has wifi direct support -->
+ <bool translatable="false" name="config_wifi_p2p_support">true</bool>
+
<!-- Boolean indicating where bluetooth is always powered on but kept at
low power mode -->
<bool translatable="false" name="config_bluetooth_adapter_quick_switch">false</bool>