mac802154: rework sdata state change to running
authorAlexander Aring <alex.aring@gmail.com>
Tue, 28 Oct 2014 17:21:24 +0000 (18:21 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 28 Oct 2014 22:19:07 +0000 (23:19 +0100)
commit0ea3da64fa602efa0a89502eefdb396be84d2eba
tree9438ff7ae9c8c5c8e9b6d29bab56086748ae774b
parenta543c5989d7711d984608f4e12a73218642ca865
mac802154: rework sdata state change to running

This patch reworks the handling for setting the state like mac80211. We
use bit's instead a bool variable. The mutex is not needed because it use
test and set bits which are atomic operations.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/ieee802154_i.h
net/mac802154/iface.c