ieee802154: rework interface registration
authorAlexander Aring <alex.aring@gmail.com>
Wed, 5 Nov 2014 19:51:17 +0000 (20:51 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 5 Nov 2014 20:53:04 +0000 (21:53 +0100)
commitd5ae67bacd9654b0e26b9f248249e9ee1b6e338b
tree7462206b0153d069ab4421a0d9d299c419d3b56e
parent12cb56c2370b2911295026630a71af044c12d2aa
ieee802154: rework interface registration

This patch meld mac802154_netdev_register into ieee802154_if_add
function. Also we have now only one alloc_netdev call with one interface
setup routine "ieee802154_if_setup" instead two different one for each
interface type. This patch checks via runtime the interface type and do
different handling now. Additional we add the wpan_dev struct in
ieee802154_sub_if_data and set the new ieee802154_ptr while netdev
registration. This behaviour is very similar the mac80211 netdev
registration functionality.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/cfg802154.h
net/mac802154/cfg.c
net/mac802154/ieee802154_i.h
net/mac802154/iface.c
This page took 0.027453 seconds and 5 git commands to generate.