All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cfg80211: Add stub for cfg80211_get_station()
@ 2016-08-19 20:02 ` Linus Lüssing
  0 siblings, 0 replies; 7+ messages in thread
From: Linus Lüssing @ 2016-08-19 20:02 UTC (permalink / raw)
  To: linux-wireless, Johannes Berg
  Cc: David S . Miller, netdev, linux-kernel, Antonio Quartulli,
	b.a.t.m.a.n, Linus Lüssing

This allows modules using this function (currently: batman-adv) to
compile even if cfg80211 is not built at all, thus relaxing
dependencies.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
---
 include/net/cfg80211.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 9c23f4d3..beb7610 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1102,6 +1102,7 @@ struct station_info {
 	struct cfg80211_tid_stats pertid[IEEE80211_NUM_TIDS + 1];
 };
 
+#if IS_ENABLED(CONFIG_CFG80211)
 /**
  * cfg80211_get_station - retrieve information about a given station
  * @dev: the device where the station is supposed to be connected to
@@ -1114,6 +1115,14 @@ struct station_info {
  */
 int cfg80211_get_station(struct net_device *dev, const u8 *mac_addr,
 			 struct station_info *sinfo);
+#else
+static inline int cfg80211_get_station(struct net_device *dev,
+				       const u8 *mac_addr,
+				       struct station_info *sinfo)
+{
+	return -ENOENT;
+}
+#endif
 
 /**
  * enum monitor_flags - monitor flags
-- 
2.1.4

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

* [PATCH] cfg80211: Add stub for cfg80211_get_station()
@ 2016-08-19 20:02 ` Linus Lüssing
  0 siblings, 0 replies; 7+ messages in thread
From: Linus Lüssing @ 2016-08-19 20:02 UTC (permalink / raw)
  To: linux-wireless-u79uwXL29TY76Z2rM5mHXA, Johannes Berg
  Cc: netdev-u79uwXL29TY76Z2rM5mHXA,
	b.a.t.m.a.n-ZwoEplunGu2X36UT3dwllkB+6BGkLq7r, Antonio Quartulli,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, David S . Miller

This allows modules using this function (currently: batman-adv) to
compile even if cfg80211 is not built at all, thus relaxing
dependencies.

Signed-off-by: Linus Lüssing <linus.luessing-djzkFPsfvsizQB+pC5nmwQ@public.gmane.org>
---
 include/net/cfg80211.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 9c23f4d3..beb7610 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1102,6 +1102,7 @@ struct station_info {
 	struct cfg80211_tid_stats pertid[IEEE80211_NUM_TIDS + 1];
 };
 
+#if IS_ENABLED(CONFIG_CFG80211)
 /**
  * cfg80211_get_station - retrieve information about a given station
  * @dev: the device where the station is supposed to be connected to
@@ -1114,6 +1115,14 @@ struct station_info {
  */
 int cfg80211_get_station(struct net_device *dev, const u8 *mac_addr,
 			 struct station_info *sinfo);
+#else
+static inline int cfg80211_get_station(struct net_device *dev,
+				       const u8 *mac_addr,
+				       struct station_info *sinfo)
+{
+	return -ENOENT;
+}
+#endif
 
 /**
  * enum monitor_flags - monitor flags
-- 
2.1.4

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

* [B.A.T.M.A.N.] [PATCH] cfg80211: Add stub for cfg80211_get_station()
@ 2016-08-19 20:02 ` Linus Lüssing
  0 siblings, 0 replies; 7+ messages in thread
From: Linus Lüssing @ 2016-08-19 20:02 UTC (permalink / raw)
  To: linux-wireless, Johannes Berg
  Cc: netdev, b.a.t.m.a.n, Antonio Quartulli, linux-kernel, David S . Miller

This allows modules using this function (currently: batman-adv) to
compile even if cfg80211 is not built at all, thus relaxing
dependencies.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
---
 include/net/cfg80211.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 9c23f4d3..beb7610 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1102,6 +1102,7 @@ struct station_info {
 	struct cfg80211_tid_stats pertid[IEEE80211_NUM_TIDS + 1];
 };
 
+#if IS_ENABLED(CONFIG_CFG80211)
 /**
  * cfg80211_get_station - retrieve information about a given station
  * @dev: the device where the station is supposed to be connected to
@@ -1114,6 +1115,14 @@ struct station_info {
  */
 int cfg80211_get_station(struct net_device *dev, const u8 *mac_addr,
 			 struct station_info *sinfo);
+#else
+static inline int cfg80211_get_station(struct net_device *dev,
+				       const u8 *mac_addr,
+				       struct station_info *sinfo)
+{
+	return -ENOENT;
+}
+#endif
 
 /**
  * enum monitor_flags - monitor flags
-- 
2.1.4


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

* Re: [PATCH] cfg80211: Add stub for cfg80211_get_station()
  2016-08-19 20:02 ` Linus Lüssing
@ 2016-08-30  6:06   ` Johannes Berg
  -1 siblings, 0 replies; 7+ messages in thread
From: Johannes Berg @ 2016-08-30  6:06 UTC (permalink / raw)
  To: Linus Lüssing, linux-wireless
  Cc: David S . Miller, netdev, linux-kernel, Antonio Quartulli, b.a.t.m.a.n

On Fri, 2016-08-19 at 22:02 +0200, Linus Lüssing wrote:
> This allows modules using this function (currently: batman-adv) to
> compile even if cfg80211 is not built at all, thus relaxing
> dependencies.


johannes

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

* Re: [B.A.T.M.A.N.] [PATCH] cfg80211: Add stub for cfg80211_get_station()
@ 2016-08-30  6:06   ` Johannes Berg
  0 siblings, 0 replies; 7+ messages in thread
From: Johannes Berg @ 2016-08-30  6:06 UTC (permalink / raw)
  To: Linus Lüssing, linux-wireless
  Cc: netdev, b.a.t.m.a.n, Antonio Quartulli, David S . Miller, linux-kernel

On Fri, 2016-08-19 at 22:02 +0200, Linus Lüssing wrote:
> This allows modules using this function (currently: batman-adv) to
> compile even if cfg80211 is not built at all, thus relaxing
> dependencies.


johannes

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

* Re: [PATCH] cfg80211: Add stub for cfg80211_get_station()
  2016-08-19 20:02 ` Linus Lüssing
@ 2016-08-30  6:07   ` Johannes Berg
  -1 siblings, 0 replies; 7+ messages in thread
From: Johannes Berg @ 2016-08-30  6:07 UTC (permalink / raw)
  To: Linus Lüssing, linux-wireless
  Cc: David S . Miller, netdev, linux-kernel, Antonio Quartulli, b.a.t.m.a.n

On Fri, 2016-08-19 at 22:02 +0200, Linus Lüssing wrote:
> This allows modules using this function (currently: batman-adv) to
> compile even if cfg80211 is not built at all, thus relaxing
> dependencies.
> 
Err, excuse the earlier empty email - editing mixup.

I've applied this and will send it to 4.8 so you can take advantage of
it sooner (to adjust the Kconfig dependencies, presumably).

johannes

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

* Re: [B.A.T.M.A.N.] [PATCH] cfg80211: Add stub for cfg80211_get_station()
@ 2016-08-30  6:07   ` Johannes Berg
  0 siblings, 0 replies; 7+ messages in thread
From: Johannes Berg @ 2016-08-30  6:07 UTC (permalink / raw)
  To: Linus Lüssing, linux-wireless
  Cc: netdev, b.a.t.m.a.n, Antonio Quartulli, David S . Miller, linux-kernel

On Fri, 2016-08-19 at 22:02 +0200, Linus Lüssing wrote:
> This allows modules using this function (currently: batman-adv) to
> compile even if cfg80211 is not built at all, thus relaxing
> dependencies.
> 
Err, excuse the earlier empty email - editing mixup.

I've applied this and will send it to 4.8 so you can take advantage of
it sooner (to adjust the Kconfig dependencies, presumably).

johannes

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

end of thread, other threads:[~2016-08-30  6:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-19 20:02 [PATCH] cfg80211: Add stub for cfg80211_get_station() Linus Lüssing
2016-08-19 20:02 ` [B.A.T.M.A.N.] " Linus Lüssing
2016-08-19 20:02 ` Linus Lüssing
2016-08-30  6:06 ` Johannes Berg
2016-08-30  6:06   ` [B.A.T.M.A.N.] " Johannes Berg
2016-08-30  6:07 ` Johannes Berg
2016-08-30  6:07   ` [B.A.T.M.A.N.] " Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.