summaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorFelix Fietkau2014-10-26 00:32:53 +0200
committerJohannes Berg2014-11-04 10:15:09 +0100
commit5b3dc42b1b0db0264bbbe4ae44c15ab97bfd1e93 (patch)
tree3a53814de5743eb3fdf491609a050a417632c9f4 /include/net/mac80211.h
parentieee80211: add "max length of AMPDU" enum for VHT (diff)
downloadkernel-qcow2-linux-5b3dc42b1b0db0264bbbe4ae44c15ab97bfd1e93.tar.gz
kernel-qcow2-linux-5b3dc42b1b0db0264bbbe4ae44c15ab97bfd1e93.tar.xz
kernel-qcow2-linux-5b3dc42b1b0db0264bbbe4ae44c15ab97bfd1e93.zip
mac80211: add support for driver tx power reporting
The configured tx power is often limited by hardware capabilities, channel settings, antenna configuration, etc. Signed-off-by: Felix Fietkau <nbd@openwrt.org> [fix tracing compilation] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 1614b2fc3bf6..03edbf6f6230 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -2857,6 +2857,9 @@ enum ieee80211_roc_type {
* @get_expected_throughput: extract the expected throughput towards the
* specified station. The returned value is expressed in Kbps. It returns 0
* if the RC algorithm does not have proper data to provide.
+ *
+ * @get_txpower: get current maximum tx power (in dBm) based on configuration
+ * and hardware limits.
*/
struct ieee80211_ops {
void (*tx)(struct ieee80211_hw *hw,
@@ -3065,6 +3068,8 @@ struct ieee80211_ops {
int (*join_ibss)(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
void (*leave_ibss)(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
u32 (*get_expected_throughput)(struct ieee80211_sta *sta);
+ int (*get_txpower)(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
+ int *dbm);
};
/**