[PATCH 0/5] Start wifi via GUI and connect

YanBo dreamfly281 at gmail.com
Sat May 25 14:03:18 EDT 2013


One tip for avoid modification the wifi.c to make the system
load/unload the module success.

Rename the module name from  wcn36xx.ko to wlan.ko just need below
and then create a symbol link in the phone's /systen/lib/modules from
wlan.ko->/"anythwhere the wlan.ko location"

Then the system can load an unload the wlan.ko automatic from the GUI
to trigger the event, of course, it still need the mac80211 be insert
at firstly no matter via integrated in kernel or manual insmod. also
the p2p0 interface need be created by manual too

This way work in my MTP89X0 platform which used the standard android release

BR /Yanbo


--- a/Makefile
+++ b/Makefile
@@ -5,13 +5,13 @@
 CROSS_COMPILE=$(ARM_EABI_TOOLCHAIN)/arm-eabi-

 ifneq ($(KERNELRELEASE),)
-       wcn36xx-objs            += \
+       wlan-objs               += \
                                main.o \
                                dxe.o \
                                txrx.o \
                                smd.o

-       obj-m := wcn36xx.o
+       obj-m := wlan.o
 else
        KLIB    := $(ANDROID_PRODUCT_OUT)/obj/KERNEL_OBJ/
        PWD     := $(shell pwd)



On Thu, May 23, 2013 at 9:00 PM, Olof Johansson <dev at skyshaper.net> wrote:
> On Thu, May 23, 2013 at 2:42 PM, Kalle Valo <kvalo at qca.qualcomm.com> wrote:
>> Ok, I need to take a look how CM does this. If you any tips or ideas,
>> please let me know.
>
> Sure.
> So, in hardware/libhardware_legacy/wifi/wifi.c we have a some
> insmodding and rmmodding going on. The issue for me was that they
> didn't check if the modules were already loaded or not and therefor
> returned error when they couldn't insmod due to the module already
> being loaded.
>
> I just removed these insmods to make sure that that function returned
> without error.
>
> Cheers
> --
> Olof
>
> _______________________________________________
> wcn36xx mailing list
> wcn36xx at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/wcn36xx



More information about the wcn36xx mailing list