|
@@ -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);
|
|
|
};
|
|
|
|
|
|
/**
|