netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 5/7] ieee80211: export symbol ieee80211_api_version
@ 2006-08-21  3:33 Zhu Yi
  2006-08-21  9:51 ` Christoph Hellwig
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Zhu Yi @ 2006-08-21  3:33 UTC (permalink / raw)
  To: netdev, John W. Linville

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 5/7] ieee80211: export symbol ieee80211_api_version
  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
  2006-08-21 12:27 ` John W. Linville
  2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2006-08-21  9:51 UTC (permalink / raw)
  To: Zhu Yi; +Cc: netdev, John W. Linville

On Mon, Aug 21, 2006 at 11:33:40AM +0800, Zhu Yi wrote:
> Export this symbol so that wireless drivers can check the running IEEE80211
> API version dynamically.

NACK (Or should I say no f***ing way :)).  We don't export runtime subsystem
versions, especially as they are totally useless already.  Please submit
a patch to remove the already meaningless net/ieee80211/ versioning instead.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 5/7] ieee80211: export symbol ieee80211_api_version
  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
  2006-08-21 12:27 ` John W. Linville
  2 siblings, 0 replies; 4+ messages in thread
From: Dan Williams @ 2006-08-21 10:38 UTC (permalink / raw)
  To: yi.zhu; +Cc: netdev, John W. Linville

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)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 5/7] ieee80211: export symbol ieee80211_api_version
  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
@ 2006-08-21 12:27 ` John W. Linville
  2 siblings, 0 replies; 4+ messages in thread
From: John W. Linville @ 2006-08-21 12:27 UTC (permalink / raw)
  To: Zhu Yi; +Cc: netdev

On Mon, Aug 21, 2006 at 11:33:40AM +0800, Zhu Yi wrote:
> Export this symbol so that wireless drivers can check the running IEEE80211
> API version dynamically.

The sole purpose of this would seem to be supporting out-of-stream
driver development.  Is there some other use that I am overlooking?

I'm sorry, but we just can't/won't take patches that exist solely
for that.  A much better would be for ongoing driver development to
be conducted solely upstream.

John
-- 
John W. Linville
linville@tuxdriver.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-21 12:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-08-21 12:27 ` John W. Linville

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).