Hello,
as far as I know, there was some API change in Linux 2.6.22 release. I have tried the madwifi-ng-current from 11-Aug-2007 (latest). It compiled successfully, but modules wont load. Both the kernel and madwifi driver compiled with the same gcc.
# uname -srm
Linux 2.6.22.2 i686
# modprobe ath_pci
WARNING: Error inserting ath_hal (/lib/modules/2.6.22.2/net/ath_hal.ko): Invalid module format
WARNING: Error inserting wlan (/lib/modules/2.6.22.2/net/wlan.ko): Invalid module format
FATAL: Error inserting ath_pci (/lib/modules/2.6.22.2/net/ath_pci.ko): Invalid module format
# gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.1.2/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.1.2/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.1.2
Am I missing something?