[Sprint HTC EVO 4G LTE] Zarboz:
Hey guys and gals,

You probably have seen me around posting some kernels here and there and lurking in other threads.

As you know Cyanogen posted Prima_Wlan drivers on his github for use with his CM10 rom and kernels.. I have brought this into a sense based kernel in hopes of being able to produce a usable .ko for wifi. I have finally got it building with linaro 4.6.2 (wish it was 4.7.2). I am at an impass of my C knowledge and knowledge of android reaching its capacity with little to no resources to guide my efforts thus far.

I will not post source to these drivers as I do not wish to offend XDA or break the rules here. (we can figure something out if you would like to help in regards to getting you source) LIKE I SAID ITS ON GITHUB....

With that being said after being built successfully im running into module loading errors now :D

The following errors are occuring

Version 3.1.7.2

3>[ 49.242942] prima_wlan: driver load failure
<4>[ 49.355379] prima_wlan: module is from the staging directory, the quality is unknown, you have been warned.
<4>[ 49.358950] kmemleak: Trying to color unknown object at 0xbf648000 as Grey
<4>[ 49.359133] [<c010c8ec>] (unwind_backtrace+0x0/0x12c) from [<c01b5234>] (load_module+0x8a4/0x1544)
<4>[ 49.366915] [<c01b5234>] (load_module+0x8a4/0x1544) from [<c01b5f14>] (sys_init_module+0x40/0x190)
<4>[ 49.367343] [<c01b5f14>] (sys_init_module+0x40/0x190) from [<c0105ec0>] (ret_fast_syscall+0x0/0x30)
<6>[ 49.711796] prima_wlan: loading driver v3.1.7.16
<2>[ 49.748115] VOS ASSERT in vos_open Line 370
<4>[ 49.748298] ------------[ cut here ]------------
<4>[ 49.748969] WARNING: at drivers/staging/prima/CORE/VOSS/src/vos_api.c:370 vos_open+0x1bc/0x3d0 [prima_wlan]()
<4>[ 49.749244] Modules linked in: prima_wlan(C+) kineto_gan
<4>[ 49.749610] [<c010c8ec>] (unwind_backtrace+0x0/0x12c) from [<c017f13c>] (warn_slowpath_common+0x4c/0x64)
<4>[ 49.749763] [<c017f13c>] (warn_slowpath_common+0x4c/0x64) from [<c017f16c>] (warn_slowpath_null+0x18/0x1c)
<4>[ 49.750404] [<c017f16c>] (warn_slowpath_null+0x18/0x1c) from [<bf720038>] (vos_open+0x1bc/0x3d0 [prima_wlan])
<4>[ 49.751258] [<bf720038>] (vos_open+0x1bc/0x3d0 [prima_wlan]) from [<bf667774>] (hdd_wlan_startup+0x1a0/0x87c [prima_wlan])
<4>[ 49.751960] [<bf667774>] (hdd_wlan_startup+0x1a0/0x87c [prima_wlan]) from [<bf80a06c>] (hdd_module_init+0x6c/0x13c [prima_wlan])
<4>[ 49.752418] [<bf80a06c>] (hdd_module_init+0x6c/0x13c [prima_wlan]) from [<c0100550>] (do_one_initcall+0x94/0x164)
<4>[ 49.752601] [<c0100550>] (do_one_initcall+0x94/0x164) from [<c01b5f44>] (sys_init_module+0x70/0x190)
<4>[ 49.752754] [<c01b5f44>] (sys_init_module+0x70/0x190) from [<c0105ec0>] (ret_fast_syscall+0x0/0x30)
<4>[ 49.752937] ---[ end trace da227214a82491c5 ]---
<3>[ 49.789623] prima_wlan: driver load failure

tried with version 3.20.2

<4>[ 4104.489302] prima_wlan: module is from the staging directory, the quality is unknown, you have been warned.
<4>[ 4104.493666] kmemleak: Trying to color unknown object at 0xbf003000 as Grey
<4>[ 4104.493849] [<c010c8ec>] (unwind_backtrace+0x0/0x12c) from [<c01b5234>] (load_module+0x8a4/0x1544)
<4>[ 4104.494093] [<c01b5234>] (load_module+0x8a4/0x1544) from [<c01b5f14>] (sys_init_module+0x40/0x190)
<4>[ 4104.494276] [<c01b5f14>] (sys_init_module+0x40/0x190) from [<c0105ec0>] (ret_fast_syscall+0x0/0x30)
<6>[ 4104.785288] prima_wlan: loading driver v3.2.0.2
<3>[ 4104.792094] [0:10569:E :CTL] WCTS_OpenTransport: smd_named_open_on_edge failed with status -19
<2>[ 4104.792247] [0:10569:F :CTL] WDI_Init: Failed to open WCTS transport
<3>[ 4104.792399] [0:10569:E :WDA] WDI Init failed
<3>[ 4104.792491] [0:10569:F :VOS] vos_open: Failed to open WDA module
<2>[ 4104.792644] VOS ASSERT in vos_open Line 370
<4>[ 4104.792735] ------------[ cut here ]------------
<4>[ 4104.793620] WARNING: at drivers/staging/prima/CORE/VOSS/src/vos_api.c:370 vos_open+0x260/0x528 [prima_wlan]()
<4>[ 4104.793773] Modules linked in: prima_wlan(C+) kineto_gan
<4>[ 4104.794231] [<c010c8ec>] (unwind_backtrace+0x0/0x12c) from [<c017f13c>] (warn_slowpath_common+0x4c/0x64)
<4>[ 4104.794414] [<c017f13c>] (warn_slowpath_common+0x4c/0x64) from [<c017f16c>] (warn_slowpath_null+0x18/0x1c)
<4>[ 4104.794994] [<c017f16c>] (warn_slowpath_null+0x18/0x1c) from [<bf10045c>] (vos_open+0x260/0x528 [prima_wlan])
<4>[ 4104.795879] [<bf10045c>] (vos_open+0x260/0x528 [prima_wlan]) from [<bf02d804>] (hdd_wlan_startup+0x2a4/0xc60 [prima_wlan])
<4>[ 4104.796611] [<bf02d804>] (hdd_wlan_startup+0x2a4/0xc60 [prima_wlan]) from [<bf23c0b4>] (hdd_module_init+0xb4/0x1fc [prima_wlan])
<4>[ 4104.797039] [<bf23c0b4>] (hdd_module_init+0xb4/0x1fc [prima_wlan]) from [<c0100550>] (do_one_initcall+0x94/0x164)
<4>[ 4104.797222] [<c0100550>] (do_one_initcall+0x94/0x164) from [<c01b5f44>] (sys_init_module+0x70/0x190)
<4>[ 4104.797313] [<c01b5f44>] (sys_init_module+0x70/0x190) from [<c0105ec0>] (ret_fast_syscall+0x0/0x30)
<4>[ 4104.797466] ---[ end trace da227214a82492b2 ]---
<3>[ 4104.797741] [0:10569:F :HDD] hdd_wlan_startup: vos_open failed
<3>[ 4104.802776] [0:10569:F :HDD] hdd_module_init: WLAN Driver Initialization failed
<3>[ 4104.802929] prima_wlan: driver load failure

here is a successful load on stock version: v3.1.0.24p27

354.714939] prima_wlan: module license 'Proprietary' taints kernel.
<4>[ 354.715031] Disabling lock debugging due to kernel taint
354.996917] [WLAN] prima_wlan: loading driver v3.1.0.24p27-htc-63
<4>[ 354.719273] kmemleak: Trying to color unknown object at 0xbf003000 as Grey
<4>[ 354.719426] [<c010c2d0>] (unwind_backtrace+0x0/0x11c) from [<c01b006c>] (sys_init_module+0x858/0x1afc)
<4>[ 354.719914] [<c01b006c>] (sys_init_module+0x858/0x1afc) from [<c0105d20>] (ret_fast_syscall+0x0/0x30)
<6>[ 354.996917] [WLAN] prima_wlan: loading driver v3.1.0.24p27-htc-63
<6>[ 354.997070] [WLAN] vos_preOpen+
<6>[ 355.005920] [SMD] SMD: ch 7 0 -> 1, state: 0
<6>[ 355.008759] [SMD] SMD: ch 7 1 -> 2, state: 1
<6>[ 355.026522] [WLAN] [0:5551:I :SAP] WLANSAP_SetChannelRange:startChannel 1,EndChannel 11,Operatingband:0
<6>[ 355.026766] [WLAN] hdd_update_config_dat: apStartChannelNum = 1, apEndChannelNum = 11 apOperatingBand = 0
<6>[ 355.027132] [WLAN] [0:5551:F :HDD] hdd_update_config_from_nv: mac address [18:87:96:8c:f8:2e]
<6>[ 355.232229] [K][PM] CPU1: msm_pm_power_collapse: change clock rate (old rate = 0)
<6>[ 355.313261] prima_wlan: WCNSS WLAN version 0.0.2.0
<6>[ 355.313352] prima_wlan: WCNSS software version M8960AAAAANAAW1031120A
<6>[ 355.313779] prima_wlan: WCNSS hardware version WCN v3.0 IRIS v2.0 with 48MHz XO
<6>[ 355.313963] [WLAN] hdd_post_voss_start_config 3083 Set LI 1 to HDD Context DoneSQOS old = cc54e000 , dev = cc54e000
<6>[ 355.314695] [WLAN] [0:5555:E :WDA] WDA_PWR_SAVE_CFG req in wrong state 1
<6>[ 355.321532] [WLAN] register_wlan_suspend
<6>[ 355.321715] [WLAN] prima_wlan: driver loaded
<4>[ 355.321867] [WLAN] before finishing init+
<4>[ 355.321959] [WLAN] after finishing init+
<6>[ 355.329742] [WLAN] Rcvd eWNI_PMC_ENTER_IMPS_RSP success
<6>[ 355.343659] [WLAN] Rcvd eWNI_PMC_EXIT_IMPS_RSP with status = 0
<6>[ 355.347871] [WLAN] Rcvd eWNI_PMC_ENTER_IMPS_RSP success
<6>[ 355.579459] [TP]S1@305,922
<6>[ 355.778544] [TP]E1@447,442
<6>[ 355.851548] ADDRCONF(NETDEV_UP): wlan0: link is not ready
<6>[ 355.852830] [WLAN] Set country code: US
<6>[ 356.162856] [WLAN] iw_set_dynamic_mcbc_filter: Set MC BC Filter Config request: 3
<6>[ 356.265252] [WLAN] Set country code: US
<6>[ 356.265405] [WLAN] [0:5555:E :CTL] Received WDI_ProcessKeepAliveRsp Callback from HAL
<6>[ 356.265893] [WLAN] [0:5566:F :HDD] iw_set_band_config: band value 0 violate INI settings 1
<6>[ 356.351838] [LS][cm3629] get_ls_adc_value: raw adc = 0x9C, ls_calibrate = 0
<6>[ 356.351930] [cm3629] set_lsensor_range: low_thd = 0x18, high_thd = 0x15a
<6>[ 356.352327] [LS][cm3629] report_lsensor_input_event: ADC=0x07F, Level=4, l_thd = 0x18, h_thd = 0x15a
<6>[ 356.367587] [WLAN] iw_set_dynamic_mcbc_filter: Set MC BC Filter Config request: 3
<6>[ 356.463116] [WLAN] Rcvd eWNI_PMC_ENTER_IMPS_RSP success
<6>[ 356.473889] [WLAN] Connecting to 00:1d:7e:d2:ed:0b
<6>[ 356.477430] [WLAN] [0:5555:E :CTL] Received WDI_ProcessKeepAliveRsp Callback from HAL
<6>[ 356.479963] [WLAN] Rcvd eWNI_PMC_EXIT_IMPS_RSP with status = 0
<6>[ 356.499618] [WLAN] Authenticated with BSS
<6>[ 356.511094] [WLAN] hdd_AssociationCompletionHandler+
<6>[ 356.511124] [WLAN] connected to 00:1d:7e:d2:ed:0b
<6>[ 356.511460] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
<6>[ 356.512925] [WLAN] hdd_AssociationCompletionHandler reset assoc_timeout_counter
<6>[ 356.604913] [K] binder: release 5245:5257 transaction 110563 in, still active
<6>[ 356.604913] [K] binder: send failed reply for transaction 110563 to 5576:5593
<6>[ 356.782786] [WLAN] [0:5555:E :CTL] Received WDI_ProcessKeepAliveRsp Callback from HAL
<6>[ 363.365389] [WLAN] Rcvd eWNI_PMC_ENTER_BMPS_RSP with status = 0root@android:/ #

very similiar errors but im unsure of the actual nature of the errors other than tha VOS is failing to open a WDA module (wich was built with the driver)

Any input would be greatly welcomed by ALL kernel devs on the 8960 platform. I am starting this in hopes to spark some creativity i have not yet thought of.