* [PATCH v3 1/1] mac80211: declare ieee80211_ave_rssi as EXPORT
@ 2012-04-20 16:38 Wey-Yi Guy
2012-04-20 17:28 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Wey-Yi Guy @ 2012-04-20 16:38 UTC (permalink / raw)
To: linville; +Cc: linux-wireless, Wey-Yi Guy
ieee80211_ave_rssi need to be declare as export for driver to use it.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
---
net/mac80211/util.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 89c1e5b..4a8cd29 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1794,6 +1794,14 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_vif *vif,
return 0;
}
+/**
+ * ieee80211_ave_rssi - report the average rssi for the specified interface
+ *
+ * @vif: the specified virtual interface
+ *
+ * This function return the average rssi value for the requested interface.
+ * It assumes that the given vif is valid.
+ */
int ieee80211_ave_rssi(struct ieee80211_vif *vif)
{
struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
@@ -1801,3 +1809,4 @@ int ieee80211_ave_rssi(struct ieee80211_vif *vif)
return ifmgd->ave_beacon_signal;
}
+EXPORT_SYMBOL_GPL(ieee80211_ave_rssi);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3 1/1] mac80211: declare ieee80211_ave_rssi as EXPORT
2012-04-20 16:38 [PATCH v3 1/1] mac80211: declare ieee80211_ave_rssi as EXPORT Wey-Yi Guy
@ 2012-04-20 17:28 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2012-04-20 17:28 UTC (permalink / raw)
To: Wey-Yi Guy; +Cc: linville, linux-wireless
On Fri, 2012-04-20 at 09:38 -0700, Wey-Yi Guy wrote:
> ieee80211_ave_rssi need to be declare as export for driver to use it.
>
> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
> ---
> net/mac80211/util.c | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/net/mac80211/util.c b/net/mac80211/util.c
> index 89c1e5b..4a8cd29 100644
> --- a/net/mac80211/util.c
> +++ b/net/mac80211/util.c
> @@ -1794,6 +1794,14 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_vif *vif,
> return 0;
> }
>
> +/**
> + * ieee80211_ave_rssi - report the average rssi for the specified interface
> + *
> + * @vif: the specified virtual interface
> + *
> + * This function return the average rssi value for the requested interface.
> + * It assumes that the given vif is valid.
> + */
> int ieee80211_ave_rssi(struct ieee80211_vif *vif)
The documentation should be in the header file.
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-20 17:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-20 16:38 [PATCH v3 1/1] mac80211: declare ieee80211_ave_rssi as EXPORT Wey-Yi Guy
2012-04-20 17:28 ` 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.