]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: rework wpan_phy index assignment
authorAlexander Aring <alex.aring@gmail.com>
Wed, 5 Nov 2014 19:51:12 +0000 (20:51 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 5 Nov 2014 20:53:03 +0000 (21:53 +0100)
commitd9e973c730de369e5e9e67b57e07b1031a795295
treed6d98d0ad30cb084516cbbc741425f95c0dee46c
parent86629ab745ea22694d2e254003983c650a9eab48
ieee802154: rework wpan_phy index assignment

This patch reworks the wpan_phy index incrementation. It's now similar
like wireless wiphy index incrementation. We move the wpan_phy index
attribute inside of cfg802154_registered_device and use atomic
operations instead locking mechanism via wpan_phy_mutex.

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