ieee802154: don't allow to change addr while netif_running
authorAlexander Aring <alex.aring@gmail.com>
Sun, 2 Nov 2014 03:18:39 +0000 (04:18 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 2 Nov 2014 03:51:07 +0000 (04:51 +0100)
commit8f499f991c275d5251a427c424360a9c60f549e4
tree282c2ff59de8abac43ee226a3726736cc7f516ef
parent4a9a816a4f8c79260446811bdf80615b36539949
ieee802154: don't allow to change addr while netif_running

This patch changes the actual behaviour for setting address attributes.
We should not change addresses while netif_running is true. Furthermore
when netif_running is running the address attributes becomes read only
and we can remove locking mechanism in receive and transmit hothpaths
of 802.15.4 subsystem.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/nl-mac.c