summaryrefslogtreecommitdiffstats
path: root/net/mac802154/iface.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-06-24 11:36:34 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-07-23 17:10:49 +0200
commitc4227c8a6246b30793bd7360113ddc7b66d526dc (patch)
tree734eb9edbe8c83e2f81c46420b7e2ce31f963950 /net/mac802154/iface.c
parent927e031c7cb266e5f7fd600899f1603813ee7439 (diff)
downloadop-kernel-dev-c4227c8a6246b30793bd7360113ddc7b66d526dc.zip
op-kernel-dev-c4227c8a6246b30793bd7360113ddc7b66d526dc.tar.gz
mac802154: util: add stop_device utility function
This patch adds ieee802154_stop_device for preparing a utility function to stop the ieee802154 device. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/iface.c')
-rw-r--r--net/mac802154/iface.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c
index 4760368..416de90 100644
--- a/net/mac802154/iface.c
+++ b/net/mac802154/iface.c
@@ -314,11 +314,8 @@ 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);
- }
+ if (!local->open_count)
+ ieee802154_stop_device(local);
return 0;
}
OpenPOWER on IntegriCloud