We'll need this for proper channel tracking (which is going to be needed for channel context accounting and finding matching/active interface combination). Change-Id: I7fc8eac0989ced8a81048f299a9c311e0692f850 Signed-off-by: Michal Kazior <michal.kazior@xxxxxxxxx> --- net/wireless/core.c | 3 +++ net/wireless/util.c | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/net/wireless/core.c b/net/wireless/core.c index a87d435..46a33ea 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -869,6 +869,9 @@ static int cfg80211_netdev_notifier_call(struct notifier_block *nb, case NL80211_IFTYPE_MESH_POINT: cfg80211_leave_mesh(rdev, dev); break; + case NL80211_IFTYPE_AP: + cfg80211_stop_ap(rdev, dev); + break; default: break; } diff --git a/net/wireless/util.c b/net/wireless/util.c index eb7ca3c..252ba8d 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -815,6 +815,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; -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html