mac80211: declare ieee80211_ave_rssi as EXPORT
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.
Signed-off-by Wey-Yi Guy <[email protected]>
--- net/mac80211/util.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
net/mac80211/util.c +9 -0
@@ -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
Johannes Berg
maintainerQuoted 14 lines · Wey-Yi Guy
ieee80211_ave_rssineed to be declare as export for driver to use it.Signed-off-by Wey-Yi Guy <[email protected]>--- net/mac80211/util.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)net/mac80211/util.c +0
-0@@ -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