Skip to content

Commit

Permalink
Add WiFi Direct and Bluetooth reverse tethering support
Browse files Browse the repository at this point in the history
  • Loading branch information
pawitp authored and jt1134 committed Dec 1, 2011
1 parent 73081e1 commit d83fa35
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 15 deletions.
21 changes: 12 additions & 9 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,18 @@ BOARD_USERDATAIMAGE_PARTITION_SIZE := 1665130496
BOARD_FLASH_BLOCK_SIZE := 4096

# Connectivity - Wi-Fi
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_wext
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
BOARD_WLAN_DEVICE := bcm4329
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcm4329.ko"
WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcm4329.bin"
WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcm4329_apsta.bin"
WIFI_DRIVER_MODULE_NAME := "bcm4329"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/vendor/firmware/fw_bcm4329.bin nvram_path=/vendor/firmware/nvram_net.txt"
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_WLAN_DEVICE := bcmdhd
BOARD_WLAN_DEVICE_REV := bcm4329
WIFI_DRIVER_MODULE_NAME := "bcmdhd"
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin"
WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/fw_bcmdhd_p2p.bin"
WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin"

# Vold
BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true
Expand Down
Binary file removed bcm4329.ko
Binary file not shown.
5 changes: 4 additions & 1 deletion fascinatemtd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ PRODUCT_COPY_FILES += \
frameworks/base/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
Expand Down Expand Up @@ -155,7 +156,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
# Note that the only such settings should be the ones that are too low-level to
# be reachable from resources or other mechanisms.
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=eth0 \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=20 \
dalvik.vm.heapsize=48m

Expand Down Expand Up @@ -202,6 +203,8 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
device/samsung/aries-common/updater.sh:updater.sh

$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4329/device-bcm.mk)

# See comment at the top of this file. This is where the other
# half of the device-specific product definition file takes care
# of the aspects that require proprietary drivers that aren't
Expand Down
29 changes: 25 additions & 4 deletions init.aries.rc
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,39 @@ service pvrsrvinit /system/vendor/bin/pvrsrvinit
group root
oneshot

service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
service wpa_supplicant /system/bin/wpa_supplicant \
-Dnl80211 -iwlan0 -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin
class main
socket wpa_eth0 dgram 0660 wifi wifi
socket wpa_wlan0 dgram 0660 wifi wifi
disabled
oneshot

service dhcpcd_eth0 /system/bin/dhcpcd -ABKL
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot

service iprenew_eth0 /system/bin/dhcpcd -n
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
class main
disabled
oneshot

service dhcpcd_bnep0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot

service iprenew_wlan0 /system/bin/dhcpcd -n
class main
disabled
oneshot

service iprenew_p2p /system/bin/dhcpcd -n
class main
disabled
oneshot

service iprenew_bnep0 /system/bin/dhcpcd -n
class main
disabled
oneshot
Expand Down
Binary file modified kernel
Binary file not shown.
7 changes: 6 additions & 1 deletion overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@
<item>"mobile_supl,3,0,2,60000,true"</item>
<item>"mobile_dun,4,0,4,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>

<!-- List of regexpressions describing the interface (if any) that represent tetherable
Expand All @@ -151,7 +153,7 @@
Wifi interfaces. If the device doesn't want to support tethering over Wifi this
should be empty. An example would be "softap.*" -->
<string-array translatable="false" name="config_tether_wifi_regexs">
<item>"wl0.1"</item>
<item>"wlan0"</item>
</string-array>

<!-- List of regexpressions describing the interface (if any) that represent tetherable
Expand All @@ -169,6 +171,9 @@
<item>1</item>
</integer-array>

<!-- Boolean indicating whether the wifi chipset has p2p support -->
<bool translatable="false" name="config_wifi_p2p_support">true</bool>

<!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap -->
<integer-array name="config_keyboardTapVibePattern">
<item>30</item>
Expand Down

0 comments on commit d83fa35

Please sign in to comment.