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

Commit 1f3b8a2b authored by Simon Wunderlich's avatar Simon Wunderlich Committed by Johannes Berg
Browse files

mac80211: don't leak next beacon when csa is aborted

parent beffd138
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1080,6 +1080,9 @@ static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev)

	/* abort any running channel switch */
	sdata->vif.csa_active = false;
	kfree(sdata->u.ap.next_beacon);
	sdata->u.ap.next_beacon = NULL;

	cancel_work_sync(&sdata->u.ap.request_smps_work);

	/* turn off carrier for this interface and dependent VLANs */