Skip to contentSkip to conversation

mac80211: declare ieee80211_ave_rssi as EXPORT

PATCH Superseded Wey-Yi Guy 2 participants 2 messages Apr 20, 2012 mac80211

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Wey-Yi Guy

author
#0 lore raw

PATCH v3 1/1 mac80211: declare ieee80211_ave_rssi as EXPORT

ieee80211_ave_rssi need to be declare as export for driver to use it.

---
 net/mac80211/util.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
net/mac80211/util.c +9 -0
index 89c1e5b..4a8cd29 100644
@@ -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);
Signature · 1 line
1.7.0.4
maintainer
#1 lore raw
Quoted 14 lines · Wey-Yi Guy

ieee80211_ave_rssi need to be declare as export for driver to use it.

---
 net/mac80211/util.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
net/mac80211/util.c +0 -0
index 89c1e5b..4a8cd29 100644
@@ -1794,6 +1794,14 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_vif *vif,
 	return 0;
 }

net/mac80211/util.c int ieee80211_add_ext_srates_ie(struct ieee80211_vif *vif, · line 1805

Quoted 10 lines
net/mac80211/util.c +8 -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