diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-11-09 02:36:49 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-09 13:50:28 -0500 |
commit | 190ac1ca33442dc25a172ece0f34746a7e1514f3 (patch) | |
tree | ea959f364853e6d885c6abbd591d6ea2366058fb /net/mac802154 | |
parent | f3ada640c25f2d57beef79b7b98619748be3f3ca (diff) |
ieee802154: add iftype to wpan_dev
This patch adds an iftype argument to the wpan_dev. This is needed to
get the interface type from netdev ieee802154_ptr. The subif data struct
can only accessible in mac802154 branch.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154')
-rw-r--r-- | net/mac802154/iface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c index c0b96cf525d6..4630ceb25ad2 100644 --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c | |||
@@ -404,6 +404,7 @@ ieee802154_setup_sdata(struct ieee802154_sub_if_data *sdata, int type) | |||
404 | 404 | ||
405 | /* set some type-dependent values */ | 405 | /* set some type-dependent values */ |
406 | sdata->vif.type = type; | 406 | sdata->vif.type = type; |
407 | sdata->wpan_dev.iftype = type; | ||
407 | 408 | ||
408 | get_random_bytes(&wpan_dev->bsn, 1); | 409 | get_random_bytes(&wpan_dev->bsn, 1); |
409 | get_random_bytes(&wpan_dev->dsn, 1); | 410 | get_random_bytes(&wpan_dev->dsn, 1); |