diff options
author | Victor Goldenshtein <victorg@ti.com> | 2012-06-21 07:56:46 (GMT) |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-06-21 14:42:17 (GMT) |
commit | 66572cfc30a4b764150c83ee5d842a3ce17991c9 (patch) | |
tree | 3b344b9c986b55f77b4652fd46ce2dad9138ea31 /include/net/mac80211.h | |
parent | 0f6b3f597daab2254614e2773e322e73fb1b6f4b (diff) | |
download | linux-fsl-qoriq-66572cfc30a4b764150c83ee5d842a3ce17991c9.tar.xz |
mac80211: add command to get current rssi
Get current rssi (in dBm) from the driver/FW.
Instead of reporting the signal received in the last
rx packet, which might be inaccurate if rx traffic is
low and beacon filtering is enabled, get the signal
from the driver/FW.
Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r-- | include/net/mac80211.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index d152f54..f11c2f8 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -2249,6 +2249,9 @@ enum ieee80211_rate_control_changed { * @get_et_strings: Ethtool API to get a set of strings to describe stats * and perhaps other supported types of ethtool data-sets. * + * @get_rssi: Get current signal strength in dBm, the function is optional + * and can sleep. + * */ struct ieee80211_ops { void (*tx)(struct ieee80211_hw *hw, struct sk_buff *skb); @@ -2388,6 +2391,8 @@ struct ieee80211_ops { void (*get_et_strings)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, u32 sset, u8 *data); + int (*get_rssi)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, + struct ieee80211_sta *sta, s8 *rssi_dbm); }; /** |