Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac800140 authored by Michal Kazior's avatar Michal Kazior Committed by Johannes Berg
Browse files

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: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 60771780
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -810,6 +810,9 @@ static int cfg80211_netdev_notifier_call(struct notifier_block *nb,
		case NL80211_IFTYPE_MESH_POINT:
		case NL80211_IFTYPE_MESH_POINT:
			cfg80211_leave_mesh(rdev, dev);
			cfg80211_leave_mesh(rdev, dev);
			break;
			break;
		case NL80211_IFTYPE_AP:
			cfg80211_stop_ap(rdev, dev);
			break;
		default:
		default:
			break;
			break;
		}
		}
+3 −0
Original line number Original line Diff line number Diff line
@@ -814,6 +814,9 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev,
		dev->ieee80211_ptr->mesh_id_up_len = 0;
		dev->ieee80211_ptr->mesh_id_up_len = 0;


		switch (otype) {
		switch (otype) {
		case NL80211_IFTYPE_AP:
			cfg80211_stop_ap(rdev, dev);
			break;
		case NL80211_IFTYPE_ADHOC:
		case NL80211_IFTYPE_ADHOC:
			cfg80211_leave_ibss(rdev, dev, false);
			cfg80211_leave_ibss(rdev, dev, false);
			break;
			break;