diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-04-20 14:57:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-23 15:37:41 -0400 |
commit | 0d8a0a17288e419c2e5e9ce18c8b66b390eb7e23 (patch) | |
tree | 73660da190f46b320b45f6fdf7491b9c0a0364d4 | |
parent | 6ac95b57657d1bf5776f29a1697c123f62d5a58a (diff) |
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 <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | include/net/mac80211.h | 8 | ||||
-rw-r--r-- | net/mac80211/util.c | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index bebd89f7f6c3..da3658177997 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -3802,6 +3802,14 @@ int ieee80211_add_srates_ie(struct ieee80211_vif *vif, | |||
3802 | int ieee80211_add_ext_srates_ie(struct ieee80211_vif *vif, | 3802 | int ieee80211_add_ext_srates_ie(struct ieee80211_vif *vif, |
3803 | struct sk_buff *skb, bool need_basic); | 3803 | struct sk_buff *skb, bool need_basic); |
3804 | 3804 | ||
3805 | /** | ||
3806 | * ieee80211_ave_rssi - report the average rssi for the specified interface | ||
3807 | * | ||
3808 | * @vif: the specified virtual interface | ||
3809 | * | ||
3810 | * This function return the average rssi value for the requested interface. | ||
3811 | * It assumes that the given vif is valid. | ||
3812 | */ | ||
3805 | int ieee80211_ave_rssi(struct ieee80211_vif *vif); | 3813 | int ieee80211_ave_rssi(struct ieee80211_vif *vif); |
3806 | 3814 | ||
3807 | #endif /* MAC80211_H */ | 3815 | #endif /* MAC80211_H */ |
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 577942bfc024..8ba8b49c9531 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -1803,3 +1803,4 @@ int ieee80211_ave_rssi(struct ieee80211_vif *vif) | |||
1803 | 1803 | ||
1804 | return ifmgd->ave_beacon_signal; | 1804 | return ifmgd->ave_beacon_signal; |
1805 | } | 1805 | } |
1806 | EXPORT_SYMBOL_GPL(ieee80211_ave_rssi); | ||