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

Commit ed2e627c authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann
Browse files

mac802154: iface: flush workqueue before stop



This patch flushs the workqueue which is currently used for xmit_sync
callback before calling stop driver-ops. Flush the queue will ensure all
pending tx frames are transmitted.

Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent b4ee1944
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -308,6 +308,7 @@ static int mac802154_slave_close(struct net_device *dev)
	clear_bit(SDATA_STATE_RUNNING, &sdata->state);

	if (!local->open_count) {
		flush_workqueue(local->workqueue);
		hrtimer_cancel(&local->ifs_timer);
		drv_stop(local);
	}