[LG Optimus L3 II, L5 II, L7 II, L9 II] weritos:
All right wi-fi is not initialized, but I think because of the library libhardware_legasy.so, it registered just the right driver

Here is the information from a file in CM11:

.rodata:00003DEF aCfg80211 DCB "cfg80211",0 ; DATA XREF: wifi_unload_driver+3Co
.rodata:00003DEF ; .text:off_1FC4o ...
.rodata:00003DF8 aP2p_supplicant DCB "p2p_supplicant",0 ; DATA XREF: wifi_start_supplicant+28o
.rodata:00003DF8 ; .text:off_2850o ...
.rodata:00003E07 unk_3E07 DCB 0 ; DATA XREF: wifi_load_driver+24o
.rodata:00003E07 ; .text:off_208Co
.rodata:00003E08 aSystemLibMod_0 DCB "/system/lib/modules/ath6kl/ath6kl_sdio.ko",0
.rodata:00003E08 ; DATA XREF: wifi_load_driver+38o
.rodata:00003E08 ; .text:off_2090o
.rodata:00003E32 unk_3E32 DCB 0 ; DATA XREF: wifi_load_driver+3Ao
.rodata:00003E32 ; .text:off_2094o
.rodata:00003E33 aWlan_driver_st DCB "wlan.driver.status",0
.rodata:00003E33 ; DATA XREF: is_wifi_driver_loaded+10o
.rodata:00003E33 ; is_wifi_driver_loaded+9Co ...
.rodata:00003E46 aSystemLibModul DCB "/system/lib/modules/ath6kl/cfg80211.ko",0
.rodata:00003E46 ; DATA XREF: wifi_load_driver+22o
.rodata:00003E46 ; .text:off_2088o
.rodata:00003E6D aCtrlEventIgnor DCB "CTRL-EVENT-IGNORE ",0
.rodata:00003E6D ; DATA XREF: wifi_wait_on_socket+C

Here is the information from the file in the firmware of LG

rodata:000047EC ; .text:off_37C8o
.rodata:00004821 aSWcn1314Featur DCB "<%s>: WCN1314 Featuring, passing setting country code",0
.rodata:00004821 ; DATA XREF: wifi_load_driver+38o
.rodata:00004821 ; .text:off_37D4o
.rodata:00004857 aSWifi_driver_m DCB "<%s>:WIFI_DRIVER_MODULE_PATH Case",0
.rodata:00004857 ; DATA XREF: wifi_load_driver+46o
.rodata:00004857 ; .text:off_37D8o
.rodata:00004879 aWifi_unload_dr DCB "wifi_unload_driverExcepton Fail - librasdioif",0
.rodata:00004879 ; DATA XREF: wifi_load_driver+E4o
.rodata:00004879 ; .text:off_37F8o
.rodata:000048A7 aWifi_unload__0 DCB "wifi_unload_driverExcepton Success - librasdioif",0
.rodata:000048A7 ; DATA XREF: wifi_load_driver+F0o
.rodata:000048A7 ; .text:off_3800o
.rodata:000048D8 aWifi_unload__1 DCB "wifi_unload_driverExcepton Fail - cfg80211",0
.rodata:000048D8 ; DATA XREF: wifi_load_driver+10Co
.rodata:000048D8 ; .text:off_380Co
.rodata:00004903 aWifi_unload__2 DCB "wifi_unload_driverExcepton Success - cfg80211",0
.rodata:00004903 ; DATA XREF: wifi_load_driver+118o
.rodata:00004903 ; .text:off_3814o
.rodata:00004931 aLoading DCB "loading",0 ; DATA XREF: wifi_load_driver+126o
.rodata:00004931 ; .text:off_381Co
.rodata:00004939 aWifiSdioOn DCB "wifi-sdio-on",0 ; DATA XREF: wifi_load_driver+138o
.rodata:00004939 ; .text:off_382Co
.rodata:00004946 aInsmodForSFail DCB "insmod for %s failed ",0xA,0
.rodata:00004946 ; DATA XREF: wifi_load_driver+162o
.rodata:00004946 ; wifi_load_driver+190o ...
.rodata:0000495D aInsmodFailureE DCB "insmod failure error=%s",0
.rodata:0000495D ; DATA XREF: wifi_load_driver+1C0o
.rodata:0000495D ; .text:off_3860o
.rodata:00004975 aDriver_modules DCB "DRIVER_MODULES_PATH=%s",0
.rodata:00004975 ; DATA XREF: wifi_load_driver+1D0o
.rodata:00004975 ; .text:off_3864o
.rodata:0000498C aTimeout DCB "timeout",0 ; DATA XREF: wifi_load_driver+230o
.rodata:0000498C ; .text:off_3884o
.rodata:00004994 aQemudS DCB "qemud:%s",0 ; DATA XREF: sub_38D0+22o
.rodata:00004994 ; .text:off_399Co
.rodata:0000499D aPipeS DCB "pipe:%s",0 ; DATA XREF: sub_38D0+3Ao
.rodata:0000499D ; .text:off_39A0o
.rodata:000049A5 aDevQemu_pipe DCB "/dev/qemu_pipe",0 ; DATA XREF: sub_38D0+46o
.rodata:000049A5 ; .text:off_39A4o
.rodata:000049B4 aRo_kernel_qemu DCB "ro.kernel.qemu",0 ; DATA XREF: qemu_check+22o
.rodata:000049B4 ; .text:off_3A08o
.rodata:000049C3 unk_49C3 DCB 0 ; DATA XREF: qemu_check+24o
.rodata:000049C3 ; .text:off_3A0Co ...
.rodata:000049C4 aQemud DCB "qemud",0 ; DATA XREF: qemu_channel_open+3Ao
.rodata:000049C4 ; .text:off_3BB0o
.rodata:000049CA aQemud_S DCB "qemud_%s",0 ; DATA XREF: qemu_channel_open+88o
.rodata:000049CA ; .text:off_3BB4o
.rodata:000049D3 aDevS DCB "/dev/%s",0 ; DATA XREF: qemu_channel_open+C4o
.rodata:000049D3 ; .text:off_3BBCo
.rodata:000049DB aDevTty DCB "/dev/tty",0 ; DATA XREF: qemu_channel_open+D4o
.rodata:000049DB ; .text:off_3BC0o
.rodata:000049E4 aRo_kernel_andr DCB "ro.kernel.android.%s",0
.rodata:000049E4 ; DATA XREF: qemu_channel_open+174o
.rodata:000049E4 ; .text:off_3BC4o
.rodata:000049F9 a04x DCB "%04x",0 ; DATA XREF: qemu_control_command+30o
.rodata:000049F9 ; .text:off_3C78o
.rodata:000049FE aHwControl DCB "hw-control",0 ; DATA XREF: qemu_control_command+52o
.rodata:000049FE ; .text:off_3C80o ...
.rodata:00004A09 aSysQemu_traceS DCB "/sys/qemu_trace/state",0
.rodata:00004A09 ; DATA XREF: qemu_start_tracing+6o
.rodata:00004A09 ; .text:off_3D48o ...
.rodata:00004A1F a1 DCB "1",0xA,0 ; DATA XREF: qemu_start_tracing+14o
.rodata:00004A1F ; .text:off_3D4Co
.rodata:00004A22 a0_0 DCB "0",0xA,0 ; DATA XREF: qemu_stop_tracing+14o
.rodata:00004A22 ; .text:off_3D7Co
.rodata:00004A25 aSysQemu_trac_0 DCB "/sys/qemu_trace/symbol",0
.rodata:00004A25 ; DATA XREF: qemu_add_mapping+30o
.rodata:00004A25 ; .text:off_3E14o ...
.rodata:00004A3C aXS DCB "%x %s",0xA,0 ; DATA XREF: qemu_add_mapping+44o
.rodata:00004A3C ; .text:off_3E18o
.rodata:00004A43 aX DCB "%x",0xA,0 ; DATA XREF: qemu_remove_mapping+32o
.rodata:00004A43 ; .text:off_3E9Co
.rodata:00004A47 aLibrasdioif DCB "librasdioif",0 ; DATA XREF: wifi_unload_driver+6Co
.rodata:00004A47 ; .text:off_23F8o ...
.rodata:00004A53 unk_4A53 DCB 0 ; DATA XREF: wifi_load_driver+1A2o
.rodata:00004A53 ; .text:off_3858o
.rodata:00004A54 aCfg80211 DCB "cfg80211",0 ; DATA XREF: wifi_unload_driver+5Eo
.rodata:00004A54 ; .text:off_23F4o ...
.rodata:00004A5D aP2p_supplicant DCB "p2p_supplicant",0 ; DATA XREF: wifi_start_supplicant+28o
.rodata:00004A5D ; .text:off_2D24o ...
.rodata:00004A6C aWlan_driver_st DCB "wlan.driver.status",0
.rodata:00004A6C ; DATA XREF: is_wifi_driver_loaded+14o
.rodata:00004A6C ; is_wifi_driver_loaded+9Co ...
.rodata:00004A7F aSystemLibMod_0 DCB "/system/lib/modules/librasdioif.ko",0
.rodata:00004A7F ; DATA XREF: wifi_load_driver+178o
.rodata:00004A7F ; .text:off_3840o
.rodata:00004AA2 aSystemLibMod_1 DCB "/system/lib/modules/wlan.ko",0
.rodata:00004AA2 ; DATA XREF: wifi_load_driver+1A0o
.rodata:00004AA2 ; .text:off_3854o
.rodata:00004ABE aSystemEtcWifiW DCB "/system/etc/wifi/wpa_supplicant.conf",0
.rodata:00004ABE ; DATA XREF: ensure_config_file_exists+C6o
.rodata:00004ABE ; ensure_config_file_exists+114o ...
.rodata:00004AE3 aWlan_0 DCB "wlan",0 ; DATA XREF: wifi_unload_driver+28o
.rodata:00004AE3 ; .text:off_23ECo
.rodata:00004AE8 aDataMiscWifiEn DCB "/data/misc/wifi/entropy.bin",0
.rodata:00004AE8 ; DATA XREF: ensure_entropy_file_exists+6o
.rodata:00004AE8 ; ensure_entropy_file_exists+6Co ...
.rodata:00004B04 aInit_svc_wpa_s DCB "init.svc.wpa_supplicant",0
.rodata:00004B04 ; DATA XREF: wifi_start_supplicant+64o
.rodata:00004B04 ; .text:off_2D48o ...
.rodata:00004B1C aWifi_start_sup DCB "wifi_start_supplicant",0
.rodata:00004B1C ; DATA XREF: wifi_start_supplicant+104o
.rodata:00004B1C ; .text:off_2D88o
.rodata:00004B32 unk_4B32 DCB 0 ; DATA XREF: wifi_connect_to_supplicant+6o
.rodata:00004B32 ; .text:off_3018o

As can be seen used very different modules

Replacement of the file and its dependencies leads to a black screen.

Compile the file with these parameters does not leave, they just do not register