net: wireless: rockchip_wlan: update for ap6xxx wifi firmware
authorXu Xuehui <xxh@rock-chips.com>
Thu, 9 Mar 2017 03:03:43 +0000 (11:03 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 10 Mar 2017 09:42:07 +0000 (17:42 +0800)
bcmdhd driver support ko module or compile into kernel

Change-Id: I260c9d3c3da0a9e249a4ee3883ed3efe03964ddf
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
drivers/net/wireless/rockchip_wlan/Makefile
drivers/net/wireless/rockchip_wlan/rkwifi/Makefile
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/Makefile
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux.c

index ff1725200b5bf22fb872061d12f3cd668b8b863f..edf0c6cd2967077f60aafceea3c0faeb5a5fd408 100644 (file)
@@ -3,3 +3,4 @@ obj-$(CONFIG_RTL8188EU) += rtl8188eu/
 obj-$(CONFIG_RTL8188FU)        += rtl8188fu/
 obj-$(CONFIG_RTL8822BE)        += rtl8822be/
 obj-$(CONFIG_WL_ROCKCHIP)      += wifi_sys/rkwifi_sys_iface.o
+obj-$(CONFIG_WL_ROCKCHIP)      += rkwifi/rk_wifi_config.o
index bc0dd65a08128f85b76bd5e22f4c89092f2956fc..1ffced552d36c4935f31b07eecbf808bd5beaea2 100644 (file)
@@ -1,7 +1,6 @@
 #rkwifi packed Makefile
 # (gwl)
 
-obj-$(CONFIG_AP6XXX) += rk_wifi_config.o
 obj-$(CONFIG_AP6XXX) += bcmdhd/
 
 .PHONY: clean
index a9b91da46f8ec1248fa7f2dd3415737161b0ba8e..75725ee86f0877d5212cedfecd17171fbb03c35d 100644 (file)
@@ -2,7 +2,7 @@
 # 1. WL_IFACE_COMB_NUM_CHANNELS must be added if Android version is 4.4 with Kernel version 3.0~3.4,
 #    otherwise please remove it.
 
-CONFIG_BCMDHD := y
+MODULE_NAME = bcmdhd
 CONFIG_BCMDHD_SDIO := y
 #CONFIG_BCMDHD_PCIE := y
 CONFIG_BCMDHD_OOB := y
@@ -52,7 +52,7 @@ DHDOFILES += dhd_pcie.o dhd_pcie_linux.o pcie_core.o dhd_flowring.o \
        dhd_msgbuf.o
 endif
 
-obj-$(CONFIG_BCMDHD) += bcmdhd.o
+obj-$(CONFIG_AP6XXX) += bcmdhd.o
 bcmdhd-objs += $(DHDOFILES)
 
 #ifeq ($(CONFIG_MACH_ODROID_4210),y)
index ca27706af9fb468bdb06a52adf5d46d7aa0df087..fa38648cd4d7e302846ab2984d1b8913e5cef02a 100644 (file)
@@ -10065,9 +10065,13 @@ void __exit rockchip_wifi_exit_module_rkwifi(void)
        dhd_module_exit();
 }
 
+#ifdef CONFIG_WIFI_LOAD_DRIVER_WHEN_KERNEL_BOOTUP
 late_initcall(rockchip_wifi_init_module_rkwifi);
 module_exit(rockchip_wifi_exit_module_rkwifi);
-
+#else
+module_init(rockchip_wifi_init_module_rkwifi);
+module_exit(rockchip_wifi_exit_module_rkwifi);
+#endif
 #if 0
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
 #if defined(CONFIG_DEFERRED_INITCALLS)