hikey: Add SoftAP support
am: f433534

* commit 'f4335347c88c2836cc646a89d9328ab030ad8019':
  hikey: Add SoftAP support

Change-Id: I839d92abd55adb539be064eecec21928acb683c5
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 9902d4a..07b7fa7 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -27,6 +27,7 @@
 # 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
diff --git a/device.mk b/device.mk
index 70c777b..bbf6baf 100644
--- a/device.mk
+++ b/device.mk
@@ -42,7 +42,7 @@
 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 abd384f..69ebf40 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>