On Thu, 2008-09-18 at 19:26 +0200, Marcel Holtmann wrote: > if the numbers you are planning to use are stable, then please use the > above approach to just add the missing defines to it. Like adding a > compat.h file with > > #ifndef NL80211_ATTR_SUPPORTED_IFTYPES > #define NL80211_ATTR_SUPPORTED_IFTYPES boo > #endif I'm sure the numbers used to communicate between the kernel and the userspace are meant to be stable. > That would make a distro complied binary work with an updates kernel and > we don't end up with the issue the iwconfig current has when it has been > compiled for an older kernel. Having the include file in the sources would have the same effect. But your approach is easier to get wrong. Some numbers are from enum, not from preprocessor defines. It's easy to put a wrong number into the compatibility code. This code will need to be tested on older kernels. -- Regards, Pavel Roskin -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html