diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2016-04-05 12:04:36 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2016-04-05 15:06:21 -0700 |
commit | f4335347c88c2836cc646a89d9328ab030ad8019 (patch) | |
tree | b710b9a82a33abf6e66298ec7bfac6fd3d641ff8 | |
parent | db0eda37e759924dd255e15c647b18b30043bd31 (diff) | |
download | hikey-f4335347c88c2836cc646a89d9328ab030ad8019.tar.gz |
hikey: Add SoftAP support
Change-Id: Ic2005af18165af6b65a38afd0082d280bde79051
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
-rw-r--r-- | BoardConfig.mk | 1 | ||||
-rw-r--r-- | device.mk | 2 | ||||
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 7 |
3 files changed, 9 insertions, 1 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index 9902d4a8..07b7fa71 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -27,6 +27,7 @@ BOARD_HAVE_BLUETOOTH := true # generic wifi WPA_SUPPLICANT_VERSION := VER_0_8_X BOARD_WPA_SUPPLICANT_DRIVER := NL80211 +BOARD_HOSTAPD_DRIVER := NL80211 CONFIG_DRIVER_NL80211 := y BOARD_KERNEL_CMDLINE := k3v2mem hisi_dma_print=0 vmalloc=484M no_irq_affinity loglevel=7 androidboot.hardware=hikey selinux=0 @@ -42,7 +42,7 @@ DEVICE_PACKAGE_OVERLAYS := device/linaro/hikey/overlay PRODUCT_PACKAGES += ssh sftp scp sshd ssh-keygen sshd_config start-ssh uim # Add wifi-related packages -PRODUCT_PACKAGES += libwpa_client wpa_supplicant +PRODUCT_PACKAGES += libwpa_client wpa_supplicant hostapd PRODUCT_PROPERTY_OVERRIDES += wifi.interface=wlan0 \ wifi.supplicant_scan_interval=15 diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index abd384f2..69ebf405 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -56,5 +56,12 @@ <item>"9,1"</item> </string-array> + <!-- List of regexpressions describing the interface (if any) that represent tetherable + 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>"wlan0"</item> + <item>"softap.*"</item> + </string-array> </resources> |