mac802154: iface: flush workqueue before stop
authorAlexander Aring <alex.aring@gmail.com>
Sat, 13 Jun 2015 20:15:52 +0000 (22:15 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 14 Jun 2015 23:22:19 +0000 (01:22 +0200)
commited2e627cb17d385f02d0a28fd7e564031f7769b0
tree4db365cf6c263ff632d28c444fde36721661653c
parentb4ee194441d7e4457c7bac6c2a5da8428974db5a
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: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/iface.c