aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h29
1 files changed, 5 insertions, 24 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 6914f9978aea..670a58ba8a41 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -2254,6 +2254,9 @@ enum ieee80211_rate_control_changed {
2254 * @get_et_strings: Ethtool API to get a set of strings to describe stats 2254 * @get_et_strings: Ethtool API to get a set of strings to describe stats
2255 * and perhaps other supported types of ethtool data-sets. 2255 * and perhaps other supported types of ethtool data-sets.
2256 * 2256 *
2257 * @get_rssi: Get current signal strength in dBm, the function is optional
2258 * and can sleep.
2259 *
2257 */ 2260 */
2258struct ieee80211_ops { 2261struct ieee80211_ops {
2259 void (*tx)(struct ieee80211_hw *hw, struct sk_buff *skb); 2262 void (*tx)(struct ieee80211_hw *hw, struct sk_buff *skb);
@@ -2393,6 +2396,8 @@ struct ieee80211_ops {
2393 void (*get_et_strings)(struct ieee80211_hw *hw, 2396 void (*get_et_strings)(struct ieee80211_hw *hw,
2394 struct ieee80211_vif *vif, 2397 struct ieee80211_vif *vif,
2395 u32 sset, u8 *data); 2398 u32 sset, u8 *data);
2399 int (*get_rssi)(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
2400 struct ieee80211_sta *sta, s8 *rssi_dbm);
2396}; 2401};
2397 2402
2398/** 2403/**
@@ -3843,28 +3848,4 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_vif *vif,
3843 */ 3848 */
3844int ieee80211_ave_rssi(struct ieee80211_vif *vif); 3849int ieee80211_ave_rssi(struct ieee80211_vif *vif);
3845 3850
3846/* Extra debugging macros */
3847
3848#ifdef CONFIG_MAC80211_HT_DEBUG
3849#define ht_vdbg(fmt, ...) \
3850 pr_debug(fmt, ##__VA_ARGS__)
3851#else
3852#define ht_vdbg(fmt, ...) \
3853do { \
3854 if (0) \
3855 pr_debug(fmt, ##__VA_ARGS__); \
3856} while (0)
3857#endif
3858
3859#ifdef CONFIG_MAC80211_IBSS_DEBUG
3860#define ibss_vdbg(fmt, ...) \
3861 pr_debug(fmt, ##__VA_ARGS__)
3862#else
3863#define ibss_vdbg(fmt, ...) \
3864do { \
3865 if (0) \
3866 pr_debug(fmt, ##__VA_ARGS__); \
3867} while (0)
3868#endif
3869
3870#endif /* MAC80211_H */ 3851#endif /* MAC80211_H */