aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-11-26 06:37:43 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-11-26 06:47:38 -0500
commit5b97f49d653d366d8cb03cab40f8c45eb59dc70c (patch)
tree4ace82936a0c06750393841c616e13219ced695b /include/net/cfg80211.h
parent40a11ca83de91f6bb2306580e7732ad3d97f201a (diff)
cfg80211: refactor the various CQM event sending code
Much of the code can be shared by moving it into helper functions for the CQM event sending. Also move the code closer together, even in the header file. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index bb748c4da5af..1d15f1dfdaa7 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -4643,33 +4643,6 @@ void cfg80211_cqm_rssi_notify(struct net_device *dev,
4643 gfp_t gfp); 4643 gfp_t gfp);
4644 4644
4645/** 4645/**
4646 * cfg80211_radar_event - radar detection event
4647 * @wiphy: the wiphy
4648 * @chandef: chandef for the current channel
4649 * @gfp: context flags
4650 *
4651 * This function is called when a radar is detected on the current chanenl.
4652 */
4653void cfg80211_radar_event(struct wiphy *wiphy,
4654 struct cfg80211_chan_def *chandef, gfp_t gfp);
4655
4656/**
4657 * cfg80211_cac_event - Channel availability check (CAC) event
4658 * @netdev: network device
4659 * @chandef: chandef for the current channel
4660 * @event: type of event
4661 * @gfp: context flags
4662 *
4663 * This function is called when a Channel availability check (CAC) is finished
4664 * or aborted. This must be called to notify the completion of a CAC process,
4665 * also by full-MAC drivers.
4666 */
4667void cfg80211_cac_event(struct net_device *netdev,
4668 const struct cfg80211_chan_def *chandef,
4669 enum nl80211_radar_event event, gfp_t gfp);
4670
4671
4672/**
4673 * cfg80211_cqm_pktloss_notify - notify userspace about packetloss to peer 4646 * cfg80211_cqm_pktloss_notify - notify userspace about packetloss to peer
4674 * @dev: network device 4647 * @dev: network device
4675 * @peer: peer's MAC address 4648 * @peer: peer's MAC address
@@ -4697,6 +4670,33 @@ void cfg80211_cqm_txe_notify(struct net_device *dev, const u8 *peer,
4697 u32 num_packets, u32 rate, u32 intvl, gfp_t gfp); 4670 u32 num_packets, u32 rate, u32 intvl, gfp_t gfp);
4698 4671
4699/** 4672/**
4673 * cfg80211_radar_event - radar detection event
4674 * @wiphy: the wiphy
4675 * @chandef: chandef for the current channel
4676 * @gfp: context flags
4677 *
4678 * This function is called when a radar is detected on the current chanenl.
4679 */
4680void cfg80211_radar_event(struct wiphy *wiphy,
4681 struct cfg80211_chan_def *chandef, gfp_t gfp);
4682
4683/**
4684 * cfg80211_cac_event - Channel availability check (CAC) event
4685 * @netdev: network device
4686 * @chandef: chandef for the current channel
4687 * @event: type of event
4688 * @gfp: context flags
4689 *
4690 * This function is called when a Channel availability check (CAC) is finished
4691 * or aborted. This must be called to notify the completion of a CAC process,
4692 * also by full-MAC drivers.
4693 */
4694void cfg80211_cac_event(struct net_device *netdev,
4695 const struct cfg80211_chan_def *chandef,
4696 enum nl80211_radar_event event, gfp_t gfp);
4697
4698
4699/**
4700 * cfg80211_gtk_rekey_notify - notify userspace about driver rekeying 4700 * cfg80211_gtk_rekey_notify - notify userspace about driver rekeying
4701 * @dev: network device 4701 * @dev: network device
4702 * @bssid: BSSID of AP (to avoid races) 4702 * @bssid: BSSID of AP (to avoid races)