Set disable_scan_offload=1 in wpa_supplicant overlay file

Bug: 8725307

Change-Id: Ie69683989ccd0625a07319a36089931c86a5af0d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/bcmdhd/config/config-bcm.mk b/bcmdhd/config/config-bcm.mk
new file mode 100644
index 0000000..ab3e5de
--- /dev/null
+++ b/bcmdhd/config/config-bcm.mk
@@ -0,0 +1,20 @@
+#
+# Copyright (C) 2008 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+########################
+PRODUCT_COPY_FILES += \
+    hardware/broadcom/wlan/bcmdhd/config/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf
+########################
diff --git a/bcmdhd/config/wpa_supplicant_overlay.conf b/bcmdhd/config/wpa_supplicant_overlay.conf
new file mode 100644
index 0000000..acbace2
--- /dev/null
+++ b/bcmdhd/config/wpa_supplicant_overlay.conf
@@ -0,0 +1 @@
+disable_scan_offload=1
diff --git a/bcmdhd/firmware/bcm4324/device-bcm.mk b/bcmdhd/firmware/bcm4324/device-bcm.mk
index 2d169d4..5100441 100644
--- a/bcmdhd/firmware/bcm4324/device-bcm.mk
+++ b/bcmdhd/firmware/bcm4324/device-bcm.mk
@@ -15,6 +15,7 @@
 #
 
 ########################
+-include hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk
 
 BCM_FW_SRC_FILE_STA := fw_bcm4324.bin
 BCM_FW_SRC_FILE_AP  := fw_bcm4324.bin
diff --git a/bcmdhd/firmware/bcm4330/device-bcm.mk b/bcmdhd/firmware/bcm4330/device-bcm.mk
index f383441..d9acd67 100644
--- a/bcmdhd/firmware/bcm4330/device-bcm.mk
+++ b/bcmdhd/firmware/bcm4330/device-bcm.mk
@@ -15,6 +15,7 @@
 #
 
 ########################
+-include hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk
 
 ifeq ($(strip $(WIFI_BAND)),802_11_BG)
 BCM_FW_SRC_FILE_STA := fw_bcm4330_bg.bin