pc2005
201
Ok once again I'm back
(but still without a time). I've read the whole chat and good work everyone ;-).
I've tried to compile a whole new openwrt snapshot and it seems wave300 doesn't support v5 kernel build system (it originates from v2.6). So openwrt testing kernel won't work. The last kernel which works is 4.19 (I think, = the non testing variant). I've tried to fix the problem and I couldn't found a way to fix that it is too obscure.
So I've hacked together (mirror) a quick working configuration of source codes from 4.19 build. There were some really weird things (logging functions being generated from perl for every directory, a single source for userspace app and kernel driver). So I've had to hack many print outs to the standard pr_info. There is a lots of unused code, no configuration support, distclean is done manually by deleting all .o and .cmd files
but it worked on v5 and I've seen the test network on my laptop (and packet dumps on tp-link modem).
Also the 4.19 kernel needs some patching so I will send patches when I will found my login keys to repo.cz
.
I suggest to not use the original tree as it is nearly impossible to develop on and use this hacked version to develop fully new driver from scratch (it will cost less human power).
I've checked iwlwav soruce code and it seems the code is just an newer iteration of our wave300 repos and obviously it doesn't support wave300. Actually if I remember correctly the driver lost the ABI/API support of the firmware after the transition from v3.4 to v3.5 and soon after the hardware lookup (PCI VID/DID) for wave300 was removed completely.
Wait for CHI Magic failed
This means incompatible/missing firmware. CHI magic word should appear after uploading the firmware to the device and it is hardcoded in some parameters structure after initialization. Bad location or a different word will obviously fail (most likely 3.2 fw vs 3.4 driver )