Compiling magwifi-ng 20060816 snapshot on Fedora rawhide kernel fails with:
make[1]: Entering directory `/usr/src/kernels/2.6.17-1.2583.fc6-i686'
CC [M] /home/ian/src/madwifi-ng-r1705-20060816.orig/ath/ah_osdep.o
In file included from /home/ian/src/madwifi-ng-r1705-20060816.orig/ath/../hal/linux/ah_osdep.c:44,
from /home/ian/src/madwifi-ng-r1705-20060816.orig/ath/ah_osdep.c:2:
include/linux/config.h:6:2: error: #warning Including config.h is deprecated.
make[3]: *** [/home/ian/src/madwifi-ng-r1705-20060816.orig/ath/ah_osdep.o] Error 1
make[2]: *** [/home/ian/src/madwifi-ng-r1705-20060816.orig/ath] Error 2
make[1]: *** [_module_/home/ian/src/madwifi-ng-r1705-20060816.orig] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.17-1.2583.fc6-i686'
make: *** [modules] Error 2
The current Fedora rawhide kernel (2.6.17-1.2586.fc6) is really 2.6.18-rc4 with patches. Replacing all "#include <linux/config.h>" with "#include <linux/autoconf.h>" fixes the problem. I have attached a patch which does this. My impression is that autoconf.h is available in older 2.6 kernels and config.h was kept for backward compatibility and is finally being deprecated in 2.6.18.