aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2014-04-09 09:11:01 -0400
committerJohannes Berg <johannes.berg@intel.com>2014-05-06 09:16:34 -0400
commitf04c22033c25f71617ac62bcfe75698baa17a0b8 (patch)
tree468527116aa880a43f476dc020754b9b6c64982e /include/net
parent66199506fb91058a78b154b7fecb703ddaa27146 (diff)
cfg80211: export interface stopping function
This exports a new cfg80211_stop_iface() function. This is intended for driver internal interface combination management and channel switching. Due to locking issues (it re-enters driver) the call is asynchronous and uses cfg80211 event list/worker. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/cfg80211.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 7eae46ccec01..0631230b01eb 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -4756,6 +4756,21 @@ int cfg80211_iter_combinations(struct wiphy *wiphy,
4756 void *data), 4756 void *data),
4757 void *data); 4757 void *data);
4758 4758
4759/*
4760 * cfg80211_stop_iface - trigger interface disconnection
4761 *
4762 * @wiphy: the wiphy
4763 * @wdev: wireless device
4764 * @gfp: context flags
4765 *
4766 * Trigger interface to be stopped as if AP was stopped, IBSS/mesh left, STA
4767 * disconnected.
4768 *
4769 * Note: This doesn't need any locks and is asynchronous.
4770 */
4771void cfg80211_stop_iface(struct wiphy *wiphy, struct wireless_dev *wdev,
4772 gfp_t gfp);
4773
4759/* Logging, debugging and troubleshooting/diagnostic helpers. */ 4774/* Logging, debugging and troubleshooting/diagnostic helpers. */
4760 4775
4761/* wiphy_printk helpers, similar to dev_printk */ 4776/* wiphy_printk helpers, similar to dev_printk */