To be applied in the base source folder.
patch -p0 < 6.0-wifi-dongle.patch
index 28f76d7..7582451 100755
--- device/samsung/smdk4412-common/BoardCommonConfig.mk
+++ device/samsung/smdk4412-common/BoardCommonConfig.mk
@@ -123,17 +123,23 @@ BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
-WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/dhd.ko"
+#WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/dhd.ko"
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path"
-WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/bcmdhd_sta.bin"
-WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/bcmdhd_apsta.bin"
-WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/bcmdhd_p2p.bin"
+#WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/bcmdhd_sta.bin"
+#WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/bcmdhd_apsta.bin"
+#WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/bcmdhd_p2p.bin"
WIFI_DRIVER_MODULE_NAME := "dhd"
-WIFI_DRIVER_MODULE_ARG := "firmware_path=/vendor/firmware/bcmdhd_sta.bin nvram_path=/vendor/firmware/nvram_net.txt"
-WIFI_DRIVER_MODULE_AP_ARG := "firmware_path=/vendor/firmware/bcmdhd_apsta.bin nvram_path=/vendor/firmware/nvram_net.txt"
+#WIFI_DRIVER_MODULE_ARG := "firmware_path=/vendor/firmware/bcmdhd_sta.bin nvram_path=/vendor/firmware/nvram_net.txt"
+#WIFI_DRIVER_MODULE_AP_ARG := "firmware_path=/vendor/firmware/bcmdhd_apsta.bin nvram_path=/vendor/firmware/nvram_net.txt"
WIFI_BAND := 802_11_ABG
BOARD_HAVE_SAMSUNG_WIFI := true
+LOCAL_CFLAGS += -DWIFI_DRIVER_FW_PATH_STA=0
+LOCAL_CFLAGS += -DWIFI_DRIVER_FW_PATH_AP=0
+LOCAL_CFLAGS += -DWIFI_DRIVER_FW_PATH_P2P=0
+LOCAL_CFLAGS += -DWIFI_DRIVER_MODULE_ARG=0
+LOCAL_CFLAGS += -DWIFI_DRIVER_MODULE_AP_ARG=0
+
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
index 2b7d54c..2f6f9b7 100644
--- device/samsung/smdk4412-common/common.mk
+++ device/samsung/smdk4412-common/common.mk
@@ -138,7 +138,6 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
- frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml
index 31d9440..cc682b7 100644
--- external/wpa_supplicant_8/src/drivers/android_drv.h
+++ external/wpa_supplicant_8/src/drivers/android_drv.h
@@ -13,7 +13,7 @@
#define MAX_SSID_LEN 32
#define MAX_DRV_CMD_SIZE 248
-#define DRV_NUMBER_SEQUENTIAL_ERRORS 4
+#define DRV_NUMBER_SEQUENTIAL_ERRORS 40
#define WEXT_PNOSETUP_HEADER "PNOSETUP "
#define WEXT_PNOSETUP_HEADER_SIZE 9
_______________________________________________
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant