[Nexus 4 Android Development] jolinnard:
Thanks, using CM as a base, system is working ;) But Wifi don't want to turn on... Here some logs:

<6>[ 19.710941] wlan: loading driver v3.2.7.47
<3>[ 19.738562] wlan: [556:E :HDD] hdd_apply_cfg_ini: Reg Parameter gEmptyScanRefreshPeriod < allowed Minimum [0 < 1000]. Enforcing Default= 0
<6>[ 19.749580] EXT4-fs (dm-3): mounted filesystem without journal. Opts: (null)
<7>[ 19.749763] SELinux: initialized (dev dm-3, type ext4), uses xattr
<3>[ 19.750007] wlan: [556:E :VOS] INFO: NV binary file version=0 Driver default NV version=1, continue...
<3>[ 19.750007]
<3>[ 19.750221] wlan: [556:E :VOS] !!!WARNING: Using Coupler Type field instead of Fw Config table,
<3>[ 19.750221] Make sure that this is intented or may impact performance!!!
<3>[ 19.750251]
<6>[ 19.750556] DefaultCountry is WS
<3>[ 19.754188] wlan: [938:E :PE ] processCfgDownloadReq: 782: <CFG> DNLD_RSP invalid length 5104 (exp 5184)
<3>[ 19.754402] wlan: [556:E :PE ] CheckParam: 664: Param id 17 not valid
<3>[ 19.754524] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 17
<3>[ 19.754585] wlan: [556:E :PE ] CheckParam: 664: Param id 14 not valid
<3>[ 19.754738] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 14
<3>[ 19.754860] wlan: [556:E :PE ] CheckParam: 664: Param id 77 not valid
<3>[ 19.754921] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 77
<3>[ 19.755043] wlan: [556:E :PE ] CheckParam: 664: Param id 91 not valid
<3>[ 19.755135] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 91
<3>[ 19.755257] wlan: [556:E :PE ] CheckParam: 664: Param id 145 not valid
<3>[ 19.755379] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 145
<3>[ 19.755440] wlan: [556:E :PE ] CheckParam: 664: Param id 69 not valid
<3>[ 19.755562] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 69
<3>[ 19.755684] wlan: [556:E :PE ] CheckParam: 664: Param id 36 not valid
<3>[ 19.755775] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 36
<3>[ 19.755898] wlan: [556:E :PE ] CheckParam: 664: Param id 205 not valid
<3>[ 19.755989] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 205
<3>[ 19.756111] wlan: [556:E :PE ] CheckParam: 664: Param id 104 not valid
<3>[ 19.756233] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 104
<3>[ 19.756294] wlan: [556:E :PE ] CheckParam: 664: Param id 102 not valid
<3>[ 19.756416] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 102
<3>[ 19.756538] wlan: [556:E :PE ] CheckParam: 664: Param id 226 not valid
<3>[ 19.756600] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 226
<3>[ 19.756722] wlan: [556:E :PE ] CheckParam: 664: Param id 47 not valid
<3>[ 19.756844] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 47
<3>[ 19.756905] wlan: [556:E :PE ] CheckParam: 664: Param id 204 not valid
<3>[ 19.757027] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 204
<3>[ 19.757179] wlan: [556:E :PE ] CheckParam: 664: Param id 59 not valid
<3>[ 19.757240] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 59
<3>[ 19.757363] wlan: [556:E :PE ] CheckParam: 664: Param id 40 not valid
<3>[ 19.757424] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 40
<3>[ 19.757515] wlan: [556:E :PE ] CheckParam: 664: Param id 20 not valid
<3>[ 19.757668] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 20
<3>[ 19.757729] wlan: [556:E :PE ] CheckParam: 664: Param id 21 not valid
<3>[ 19.757851] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 21
<3>[ 19.757973] wlan: [556:E :PE ] CheckParam: 664: Param id 5 not valid
<3>[ 19.758065] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 5
<3>[ 19.758187] wlan: [556:E :PE ] CheckParam: 664: Param id 208 not valid
<3>[ 19.758248] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 208
<3>[ 19.758339] wlan: [556:E :PE ] CheckParam: 664: Param id 83 not valid
<3>[ 19.758461] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 83
<3>[ 19.758522] wlan: [556:E :PE ] CheckParam: 664: Param id 259 not valid
<3>[ 19.758644] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 259
<3>[ 19.758766] wlan: [556:E :PE ] CheckParam: 664: Param id 210 not valid
<3>[ 19.758858] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 210
<3>[ 19.759011] wlan: [556:E :PE ] CheckParam: 664: Param id 215 not valid
<3>[ 19.759102] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 215
<3>[ 19.759255] wlan: [556:E :PE ] CheckParam: 664: Param id 29 not valid
<3>[ 19.759346] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 29
<3>[ 19.759438] wlan: [556:E :PE ] CheckParam: 664: Param id 28 not valid
<3>[ 19.759529] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 28
<3>[ 19.759682] wlan: [556:E :PE ] CheckParam: 664: Param id 30 not valid
<3>[ 19.759743] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 30
<3>[ 19.759865] wlan: [556:E :PE ] CheckParam: 664: Param id 31 not valid
<3>[ 19.759957] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 31
<3>[ 19.760109] wlan: [556:E :PE ] CheckParam: 664: Param id 212 not valid
<3>[ 19.760231] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 212
<3>[ 19.760292] wlan: [556:E :PE ] CheckParam: 664: Param id 289 not valid
<3>[ 19.760415] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 289
<3>[ 19.760537] wlan: [556:E :PE ] CheckParam: 664: Param id 260 not valid
<3>[ 19.760598] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 260
<3>[ 19.760720] wlan: [556:E :PE ] CheckParam: 664: Param id 290 not valid
<3>[ 19.760842] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 290
<3>[ 19.760903] wlan: [556:E :PE ] CheckParam: 664: Param id 291 not valid
<3>[ 19.761025] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 291
<3>[ 19.761147] wlan: [556:E :PE ] CheckParam: 664: Param id 297 not valid
<3>[ 19.761208] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 297
<3>[ 19.761330] wlan: [556:E :PE ] CheckParam: 664: Param id 268 not valid
<3>[ 19.761391] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 268
<3>[ 19.761513] wlan: [556:E :PE ] CheckParam: 664: Param id 269 not valid
<3>[ 19.761635] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 269
<3>[ 19.761696] wlan: [556:E :PE ] CheckParam: 664: Param id 270 not valid
<3>[ 19.761819] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 270
<3>[ 19.761941] wlan: [556:E :PE ] CheckParam: 664: Param id 272 not valid
<3>[ 19.762002] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 272
<3>[ 19.762124] wlan: [556:E :PE ] CheckParam: 664: Param id 276 not valid
<3>[ 19.762185] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 276
<3>[ 19.762307] wlan: [556:E :PE ] CheckParam: 664: Param id 277 not valid
<3>[ 19.762429] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 277
<3>[ 19.762490] wlan: [556:E :PE ] CheckParam: 664: Param id 279 not valid
<3>[ 19.762612] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 279
<3>[ 19.762734] wlan: [556:E :PE ] CheckParam: 664: Param id 278 not valid
<3>[ 19.762795] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 278
<3>[ 19.762917] wlan: [556:E :PE ] CheckParam: 664: Param id 280 not valid
<3>[ 19.763039] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 280
<3>[ 19.763100] wlan: [556:E :PE ] CheckParam: 664: Param id 32 not valid
<3>[ 19.763222] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 32
<3>[ 19.763345] wlan: [556:E :PE ] CheckParam: 664: Param id 282 not valid
<3>[ 19.763406] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 282
<3>[ 19.763497] wlan: [556:E :PE ] CheckParam: 664: Param id 274 not valid
<3>[ 19.763589] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 274
<3>[ 19.763711] wlan: [556:E :PE ] CheckParam: 664: Param id 275 not valid
<3>[ 19.763863] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 275
<3>[ 19.763924] wlan: [556:E :PE ] CheckParam: 664: Param id 287 not valid
<3>[ 19.764077] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 287
<3>[ 19.764199] wlan: [556:E :PE ] CheckParam: 664: Param id 17 not valid
<3>[ 19.764260] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 17
<3>[ 19.764382] wlan: [556:E :PE ] CheckParam: 664: Param id 14 not valid
<3>[ 19.764443] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 14
<3>[ 19.764565] wlan: [556:E :PE ] CheckParam: 664: Param id 77 not valid
<3>[ 19.764657] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 77
<3>[ 19.764718] wlan: [556:E :PE ] CheckParam: 664: Param id 69 not valid
<3>[ 19.764871] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 69
<3>[ 19.765023] wlan: [556:E :PE ] CheckParam: 664: Param id 287 not valid
<3>[ 19.765115] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 287
<3>[ 19.765267] wlan: [556:E :PE ] CheckParam: 664: Param id 288 not valid
<3>[ 19.765328] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 288
<3>[ 19.765420] wlan: [556:E :PE ] CheckParam: 664: Param id 271 not valid
<3>[ 19.765511] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 271
<3>[ 19.765603] wlan: [556:E :PE ] CheckParam: 664: Param id 206 not valid
<3>[ 19.765695] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 206
<3>[ 19.765817] wlan: [556:E :PE ] CheckParam: 664: Param id 292 not valid
<3>[ 19.765878] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 292
<3>[ 19.765969] wlan: [556:E :PE ] wlan_cfgGetInt: 348: Not valid cfg id 195
<3>[ 19.766091] wlan: [556:E :PE ] CheckParam: 664: Param id 195 not valid
<3>[ 19.766152] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 195
<3>[ 19.766274] wlan: [556:E :PE ] wlan_cfgGetInt: 348: Not valid cfg id 188
<3>[ 19.766336] wlan: [556:E :PE ] CheckParam: 664: Param id 188 not valid
<3>[ 19.766427] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 188
<3>[ 19.766549] wlan: [556:E :PE ] wlan_cfgGetInt: 348: Not valid cfg id 189
<3>[ 19.766610] wlan: [556:E :PE ] CheckParam: 664: Param id 189 not valid
<3>[ 19.766732] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 189
<3>[ 19.766824] wlan: [556:E :PE ] CheckParam: 664: Param id 203 not valid
<3>[ 19.766946] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 203
<3>[ 19.767068] wlan: [556:E :PE ] CheckParam: 664: Param id 156 not valid
<3>[ 19.767160] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 156
<3>[ 19.767282] wlan: [556:E :PE ] wlan_cfgGetInt: 348: Not valid cfg id 157
<3>[ 19.767404] wlan: [556:E :PE ] CheckParam: 664: Param id 157 not valid
<3>[ 19.767495] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 157
<3>[ 19.767617] wlan: [556:E :PE ] CheckParam: 664: Param id 175 not valid
<3>[ 19.767770] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 175
<3>[ 19.767831] wlan: [556:E :PE ] CheckParam: 664: Param id 283 not valid
<3>[ 19.767953] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 283
<3>[ 19.768075] wlan: [556:E :PE ] CheckParam: 664: Param id 294 not valid
<3>[ 19.768136] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 294
<3>[ 19.768258] wlan: [556:E :PE ] CheckParam: 664: Param id 295 not valid
<3>[ 19.768350] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 295
<3>[ 19.768472] wlan: [556:E :PE ] CheckParam: 664: Param id 296 not valid
<3>[ 19.768594] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 296
<3>[ 19.768655] wlan: [556:E :PE ] CheckParam: 664: Param id 147 not valid
<3>[ 19.768777] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 147
<3>[ 19.768899] wlan: [556:E :PE ] CheckParam: 664: Param id 148 not valid
<3>[ 19.768991] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 148
<3>[ 19.769113] wlan: [556:E :PE ] CheckParam: 664: Param id 149 not valid
<3>[ 19.769204] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 149
<3>[ 19.769296] wlan: [556:E :PE ] CheckParam: 664: Param id 230 not valid
<3>[ 19.769418] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 230
<3>[ 19.769479] wlan: [556:E :PE ] CheckParam: 664: Param id 298 not valid
<3>[ 19.769601] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 298
<3>[ 19.770028] wlan: [556:E :PE ] CheckParam: 664: Param id 299 not valid
<3>[ 19.770090] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 299
<3>[ 19.770212] wlan: [556:E :PE ] CheckParam: 664: Param id 300 not valid
<3>[ 19.770334] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 300
<3>[ 19.770395] wlan: [556:E :PE ] CheckParam: 664: Param id 301 not valid
<3>[ 19.770517] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 301
<3>[ 19.770639] wlan: [556:E :PE ] CheckParam: 664: Param id 302 not valid
<3>[ 19.770700] wlan: [556:E :PE ] ProcSetReqInternal: 581: Check param failed, param 302
<3>[ 19.770822] wlan: [556:E :PE ] cfgSetStrNotify: 513: Invalid cfg id 0
<3>[ 19.770914] wlan: [556:E :HDD] hdd_wlan_startup: Failed to set MAC Address. HALStatus is 00002601 [x00000a29]
<3>[ 19.833999] wlan: [556:F :HDD] hdd_driver_init: WLAN Driver Initialization failed
<3>[ 19.834182] wlan: driver load failure

Anybody running CM could confirm that Wifi is working?

BTW, according to the logs, I saw that fkbootscript.sh fails to execute because is set to 644. I added a chmod in modrd.sh to solve it:

[...]
cp ../fkbootscript.sh sbin/
chmod 755 sbin/fkbootscript.sh
[...]

This file should be 755 right?