From: Zhu Yi <yi.zhu@intel•com>
To: netdev@vger•kernel.org, "John W. Linville" <linville@tuxdriver•com>
Subject: [PATCH 5/7] ieee80211: export symbol ieee80211_api_version
Date: Mon, 21 Aug 2006 11:33:40 +0800 [thread overview]
Message-ID: <20060821033340.GA4802@mail.intel.com> (raw)
Export this symbol so that wireless drivers can check the running IEEE80211
API version dynamically.
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)
--
1.2.6
next reply other threads:[~2006-08-21 3:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-21 3:33 Zhu Yi [this message]
2006-08-21 9:51 ` [PATCH 5/7] ieee80211: export symbol ieee80211_api_version Christoph Hellwig
2006-08-21 10:38 ` Dan Williams
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=20060821033340.GA4802@mail.intel.com \
--to=yi.zhu@intel$(echo .)com \
--cc=linville@tuxdriver$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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