diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2012-06-29 12:46:57 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-06-29 13:39:15 +0200 |
commit | ac800140c20e7ae51117e71289065bedd4930fc2 (patch) | |
tree | 7e9e762ed2a6a7b698db6c3cf4238dfa294364c3 /net/wireless/util.c | |
parent | cfg80211: introduce cfg80211_stop_ap (diff) | |
download | linux-ac800140c20e7ae51117e71289065bedd4930fc2.tar.xz linux-ac800140c20e7ae51117e71289065bedd4930fc2.zip |
cfg80211: .stop_ap when interface is going down
We'll need this for proper channel tracking (which
is going to be needed for channel context
accounting and finding matching/active interface
combination).
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to '')
-rw-r--r-- | net/wireless/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index 316cfd00914f..fc948d0a53f3 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -814,6 +814,9 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev, dev->ieee80211_ptr->mesh_id_up_len = 0; switch (otype) { + case NL80211_IFTYPE_AP: + cfg80211_stop_ap(rdev, dev); + break; case NL80211_IFTYPE_ADHOC: cfg80211_leave_ibss(rdev, dev, false); break; |