From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Williams Subject: Re: [PATCH 4/7] ieee80211: Add IEEE80211_API_VERSION macro Date: Mon, 21 Aug 2006 06:39:59 -0400 Message-ID: <1156156799.5729.23.camel@localhost.localdomain> References: <20060821033322.GA4793@mail.intel.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, "John W. Linville" Return-path: Received: from mx1.redhat.com ([66.187.233.31]:26083 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S1751849AbWHUKbZ (ORCPT ); Mon, 21 Aug 2006 06:31:25 -0400 To: yi.zhu@intel.com In-Reply-To: <20060821033322.GA4793@mail.intel.com> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, 2006-08-21 at 11:33 +0800, Zhu Yi wrote: > 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. Per my other mail, what exactly has changed and must be checked? The SIOCGIWFREQ stuff? Dan > Signed-off-by: Zhu Yi > > --- > > 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 /* ARRAY_SIZE */ > #include > > -#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