aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac802154/main.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-17 02:20:52 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-11-17 03:49:16 -0500
commit0e57547eb7f0aa99aba32b50c49dbd722a80d6fb (patch)
treeca66721d651bfa5ca441546976a83dc2b88af86b /net/mac802154/main.c
parentf3ea5e44231a88eaea69a13410d1b80c19cfa1df (diff)
ieee802154: setting extended address while iface add
This patch adds support for setting an extended address while registration a new interface. If ieee802154_is_valid_extended_addr getting as parameter and invalid extended address then the perm address is fallback. This is useful to make some default handling while for example default registration of a wpan interface while phy registration. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/main.c')
-rw-r--r--net/mac802154/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac802154/main.c b/net/mac802154/main.c
index bbb19dd585a0..8500378c8318 100644
--- a/net/mac802154/main.c
+++ b/net/mac802154/main.c
@@ -161,7 +161,8 @@ int ieee802154_register_hw(struct ieee802154_hw *hw)
161 161
162 rtnl_lock(); 162 rtnl_lock();
163 163
164 dev = ieee802154_if_add(local, "wpan%d", NL802154_IFTYPE_NODE); 164 dev = ieee802154_if_add(local, "wpan%d", NL802154_IFTYPE_NODE,
165 cpu_to_le64(0x0000000000000000ULL));
165 if (IS_ERR(dev)) { 166 if (IS_ERR(dev)) {
166 rtnl_unlock(); 167 rtnl_unlock();
167 rc = PTR_ERR(dev); 168 rc = PTR_ERR(dev);