summaryrefslogtreecommitdiff
path: root/net/mac802154/driver-ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac802154/driver-ops.h')
-rw-r--r--net/mac802154/driver-ops.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac802154/driver-ops.h b/net/mac802154/driver-ops.h
index bf7980bbceff..bb3ee03c1669 100644
--- a/net/mac802154/driver-ops.h
+++ b/net/mac802154/driver-ops.h
@@ -29,6 +29,8 @@ static inline int drv_start(struct ieee802154_local *local)
{
might_sleep();
+ local->started = true;
+
return local->ops->start(&local->hw);
}
@@ -37,6 +39,8 @@ static inline void drv_stop(struct ieee802154_local *local)
might_sleep();
local->ops->stop(&local->hw);
+
+ local->started = false;
}
static inline int drv_set_channel(struct ieee802154_local *local,