[Mi 3 Android Development] Pepe.II:
wifi wont work on miui_t3 kernel. dmesg:

root@cancro:/ # dmesg | grep wlan

<6>[ 0.505315] wcnss_wlan probed in built-in mode

<6>[ 14.773827] wcnss_wlan triggered by userspace

<6>[ 16.338561] wcnss_wlan_ctrl_probe: SMD ctrl channel up

<6>[ 18.879735] wcnss: Get nv file from wlan/prima/WCNSS_qcom_wlan_nv_x4.bin

<4>[ 33.738252] wlan: module is from the staging directory, the quality is unknown, you have been warned.

<3>[ 33.765932] wlan: Unknown parameter `mac'

<4>[ 33.925652] wlan: module is from the staging directory, the quality is unknown, you have been warned.

<3>[ 33.935584] wlan: Unknown parameter `mac'

dmesg from stock miui 6.4.3.0 kernel:

root@cancro:/ # dmesg | grep wlan

<6>[ 0.512844] C1 [ swapper/0, 1] wcnss_wlan probed in built-in mode

<6>[ 5.177784] C3 [ wcnss_service, 291] wcnss_wlan triggered by userspace

<6>[ 6.701015] C0 [ kworker/0:2, 225] wcnss_wlan_ctrl_probe: SMD ctrl channel up

<6>[ 9.247261] C0 [ kworker/0:0, 4] wcnss: Get nv file from wlan/prima/WCNSS_qcom_wlan_nv_x4.bin

<6>[ 22.062674] C3 [WifiStateMachin, 1308] wlan: loading driver v3.2.3.172

<6>[ 22.062723] C3 [WifiStateMachin, 1308] wlan: Get nv file from wlan/prima/WCNSS_qcom_wlan_nv_x4.bin

<6>[ 22.069478] C3 [WifiStateMachin, 1308] wlan: [1308:E :HDD] hdd_apply_cfg_ini: MAX_CFG_INI_ITEMS too small, must be at least 378

<6>[ 22.070046] C3 [WifiStateMachin, 1308] wlan: [1308:E :HDD] hdd_is_5g_supported: Hardware supports 5Ghz

<6>[ 22.070061] C3 [WifiStateMachin, 1308] wlan: [1308:E :HDD] hdd_is_5g_supported: Hardware supports 5Ghz

<6>[ 22.073038] C3 [WifiStateMachin, 1308] wlan: [1308:E :VOS] INFO: NV binary file version=2 Driver default NV version=3, continue...

<6>[ 22.073055] C3 [WifiStateMachin, 1308] wlan: [1308:E :VOS] !!!WARNING: Default NV is NV3 CH144 BIN is NV2, NV2 contents will be used!!!

<6>[ 22.225738] C3 [ MC_Thread, 1330] wlan: [1330:E :WDA] Update channel list capability Not Supported

<6>[ 22.225805] C3 [WifiStateMachin, 1308] wlan: WCNSS WLAN version 1.5.1.2

<6>[ 22.225819] C3 [WifiStateMachin, 1308] wlan: WCNSS software version CNSS-PR-1-4-1-c4-00065

<6>[ 22.225832] C3 [WifiStateMachin, 1308] wlan: WCNSS hardware version WCN v2.0 RadioPhy vIris_TSMC_3.0 with 48MHz XO

<3>[ 22.225851] C3 [WifiStateMachin, 1308] wlan: [1308:E :CTL] Host caps b4c001ff 0 0 80000000

<3>[ 22.225863] C3 [WifiStateMachin, 1308] wlan: [1308:E :CTL] Host Capability

<3>[ 22.225878] C3 [WifiStateMachin, 1308] wlan: [1308:E :CTL]	MCC, P2P, DOT11AC, SLM_SESSIONIZATION, DOT11AC_OPMODE, SAP32STA, TDLS, P2P_GO_NOA_DECOUPLE_INIT_SCAN, WLANACTIVE_OFFLOAD, WOW, WLAN_ROAM_SCAN_OFFLOAD, , , , FW_IN_TX_PATH

<6>[ 22.226098] C3 [ MC_Thread, 1330] wlan: [1330:E :WDA] Update channel list capability Not Supported

<3>[ 22.227193] C3 [ MC_Thread, 1330] wlan: [1330:E :CTL] FW caps fdf877ff 3b 0 0

<3>[ 22.227206] C3 [ MC_Thread, 1330] wlan: [1330:E :CTL] Firmware Capability

<3>[ 22.227224] C3 [ MC_Thread, 1330] wlan: [1330:E :CTL]	MCC, P2P, DOT11AC, SLM_SESSIONIZATION, DOT11AC_OPMODE, SAP32STA, TDLS, P2P_GO_NOA_DECOUPLE_INIT_SCAN, WLANACTIVE_OFFLOAD, BEACON_OFFLOAD, SCAN_OFFLOAD, BCN_MISS_OFFLOAD, STA_POWERSAVE, , BCN_FILTER, RTT, RATECTRL, WOW, WLAN_ROAM_SCAN_OFFLOAD, , , , , , , FW_IN_TX_PATH

<6>[ 22.233474] C3 [WifiStateMachin, 1308] wlan: [1308:E :HDD] wlan_hdd_tdls_init TDLS not enabled (0) or FW doesn't support (1)!

<6>[ 22.250733] C3 [WifiStateMachin, 1308] wlan: [1308:E :HDD] wlan_hdd_tdls_init TDLS not enabled (0) or FW doesn't support (1)!

<6>[ 22.258505] C3 [WifiStateMachin, 1308] wlan_logging_sock_activate_svc: Initalizing FEConsoleLog = 0 NumBuff = 32

<6>[ 22.258689] C3 [WifiStateMachin, 1308] wlan_logging_sock_activate_svc: Activated wlan_logging svc

<6>[ 22.258912] C3 [WifiStateMachin, 1308] wlan: driver loaded