diff options
author | Thomas Pedersen <c_tpeder@qca.qualcomm.com> | 2012-07-12 19:17:33 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-17 05:57:23 -0400 |
commit | 84f10708f73254878246772cead70a2eb6a123f2 (patch) | |
tree | 39a4ca2f6cc3ab5b33320e3a62d2a8f7c4901b7a /net/wireless/mlme.c | |
parent | 00f5335079689cd65a9430b5df8974dc35c7914b (diff) |
cfg80211: support TX error rate CQM
Let the user configure serveral TX error conection quality monitoring
parameters: % error rate, survey interval, and # of attempted packets.
On exceeding the TX failure rate over the given interval, the driver
will send a CQM notify event with the actual TX failure rate and
packets attempted.
Signed-off-by: Thomas Pedersen <c_tpeder@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/mlme.c')
-rw-r--r-- | net/wireless/mlme.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index abe9f82d5a82..1cdb1d5e6b0f 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c | |||
@@ -919,6 +919,19 @@ void cfg80211_cqm_pktloss_notify(struct net_device *dev, | |||
919 | } | 919 | } |
920 | EXPORT_SYMBOL(cfg80211_cqm_pktloss_notify); | 920 | EXPORT_SYMBOL(cfg80211_cqm_pktloss_notify); |
921 | 921 | ||
922 | void cfg80211_cqm_txe_notify(struct net_device *dev, | ||
923 | const u8 *peer, u32 num_packets, | ||
924 | u32 rate, u32 intvl, gfp_t gfp) | ||
925 | { | ||
926 | struct wireless_dev *wdev = dev->ieee80211_ptr; | ||
927 | struct wiphy *wiphy = wdev->wiphy; | ||
928 | struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); | ||
929 | |||
930 | nl80211_send_cqm_txe_notify(rdev, dev, peer, num_packets, | ||
931 | rate, intvl, gfp); | ||
932 | } | ||
933 | EXPORT_SYMBOL(cfg80211_cqm_txe_notify); | ||
934 | |||
922 | void cfg80211_gtk_rekey_notify(struct net_device *dev, const u8 *bssid, | 935 | void cfg80211_gtk_rekey_notify(struct net_device *dev, const u8 *bssid, |
923 | const u8 *replay_ctr, gfp_t gfp) | 936 | const u8 *replay_ctr, gfp_t gfp) |
924 | { | 937 | { |