summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrepo sync <isheriff@google.com>2011-08-15 21:43:47 -0700
committerrepo sync <isheriff@google.com>2011-08-16 20:53:54 -0700
commit53d6229624818e13e90308dcbec8a664820fbfab (patch)
tree781c4186a51f93ae06e72e21225078c55341269f
parent68228be7fae3471d689dc9e82d1072d6a00c542d (diff)
downloaddevice_samsung_tuna-53d6229624818e13e90308dcbec8a664820fbfab.zip
device_samsung_tuna-53d6229624818e13e90308dcbec8a664820fbfab.tar.gz
device_samsung_tuna-53d6229624818e13e90308dcbec8a664820fbfab.tar.bz2
add p2p support on prime
Bug: 5002384 Change-Id: I6042e8900c308801ef9ac8d1445d1d6025c5a7c9
-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>