Add IEEE80211_API_VERSION macro so that drivers are able to check it during compile time. This feature is useful to make backward IEEE80211 compatibilities for wireless drivers.
Signed-off-by: Zhu Yi <[EMAIL PROTECTED]> --- include/net/ieee80211.h | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) 29be0803256136011dd5c3b62e3eb9f782e57dbd diff --git a/include/net/ieee80211.h b/include/net/ieee80211.h index b174ebb..83e06aa 100644 --- a/include/net/ieee80211.h +++ b/include/net/ieee80211.h @@ -29,7 +29,17 @@ #include <linux/kernel.h> /* ARRAY_SIZE */ #include <linux/wireless.h> -#define IEEE80211_VERSION "git-1.1.13" +#define IEEE80211_VERSION_MAJOR 1 +#define IEEE80211_VERSION_API 2 +#define IEEE80211_VERSION_MINOR 15 +#define IEEE80211_VERSION_CODE IEEE80211_VERSION_MAJOR * 65536 + \ + IEEE80211_VERSION_API * 256 + \ + IEEE80211_VERSION_MINOR +#define _STRX(x) #x +#define _VERSION_STR(a,b,c) _STRX(a) "." _STRX(b) "." _STRX(c) +#define IEEE80211_VERSION _VERSION_STR(IEEE80211_VERSION_MAJOR,\ + IEEE80211_VERSION_API, \ + IEEE80211_VERSION_MINOR) #define IEEE80211_DATA_LEN 2304 /* Maximum size for the MA-UNITDATA primitive, 802.11 standard section -- 1.2.6 - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html