From: Dan Williams <dcbw@redhat.com>
To: yi.zhu@intel.com
Cc: netdev@vger.kernel.org, "John W. Linville" <linville@tuxdriver.com>
Subject: Re: [PATCH 5/7] ieee80211: export symbol ieee80211_api_version
Date: Mon, 21 Aug 2006 06:38:27 -0400 [thread overview]
Message-ID: <1156156707.5729.21.camel@localhost.localdomain> (raw)
In-Reply-To: <20060821033340.GA4802@mail.intel.com>
On Mon, 2006-08-21 at 11:33 +0800, Zhu Yi wrote:
> Export this symbol so that wireless drivers can check the running IEEE80211
> API version dynamically.
What's that needed for? Capability checks? Checking user's version to
ensure they have a version with security fixes?
What API bits changed?
Dan
> Signed-off-by: Zhu Yi <yi.zhu@intel.com>
>
> ---
>
> include/net/ieee80211.h | 2 ++
> net/ieee80211/ieee80211_module.c | 3 +++
> 2 files changed, 5 insertions(+), 0 deletions(-)
>
> 81634e488965fae232027e14a54c998ccb5b0c49
> diff --git a/include/net/ieee80211.h b/include/net/ieee80211.h
> index 83e06aa..ee66681 100644
> --- a/include/net/ieee80211.h
> +++ b/include/net/ieee80211.h
> @@ -1255,6 +1255,8 @@ static inline int ieee80211_is_cck_rate(
> return 0;
> }
>
> +extern const int ieee80211_api_version;
> +
> /* ieee80211.c */
> extern void free_ieee80211(struct net_device *dev);
> extern struct net_device *alloc_ieee80211(int sizeof_priv);
> diff --git a/net/ieee80211/ieee80211_module.c b/net/ieee80211/ieee80211_module.c
> index 13b1e5f..02e730b 100644
> --- a/net/ieee80211/ieee80211_module.c
> +++ b/net/ieee80211/ieee80211_module.c
> @@ -61,6 +61,9 @@ MODULE_DESCRIPTION(DRV_DESCRIPTION);
> MODULE_AUTHOR(DRV_COPYRIGHT);
> MODULE_LICENSE("GPL");
>
> +const int ieee80211_api_version = IEEE80211_VERSION_API;
> +EXPORT_SYMBOL(ieee80211_api_version);
> +
> static int ieee80211_networks_allocate(struct ieee80211_device *ieee)
> {
> if (ieee->networks)
next prev parent reply other threads:[~2006-08-21 10:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-21 3:33 [PATCH 5/7] ieee80211: export symbol ieee80211_api_version Zhu Yi
2006-08-21 9:51 ` Christoph Hellwig
2006-08-21 10:38 ` Dan Williams [this message]
2006-08-21 12:27 ` John W. Linville
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1156156707.5729.21.camel@localhost.localdomain \
--to=dcbw@redhat.com \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
--cc=yi.zhu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).