diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-11-02 04:18:43 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-02 04:51:07 +0100 |
commit | 50c79075019e7b952327cfebf0681548573fd8e5 (patch) | |
tree | a2ec43c416cca5bdca81bb0c58d13692b4b647c9 /net/mac802154/iface.c | |
parent | 78b4bad16ec41e1d3d5575ff9aca29aab2f831bc (diff) | |
download | linux-50c79075019e7b952327cfebf0681548573fd8e5.tar.gz linux-50c79075019e7b952327cfebf0681548573fd8e5.tar.bz2 linux-50c79075019e7b952327cfebf0681548573fd8e5.zip |
mac802154: set panid address filter on ifup
This patch moves the setting of hardware panid address filtering
inside of interface up instead doing it it directly inside of netlink
interface. The netlink call which can only be called when netif isn't
running sets only the necessary panid value in sdata. After an
interface up the address filter will be set with this value.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/iface.c')
-rw-r--r-- | net/mac802154/iface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c index 1bae29dff082..5f94c70478f9 100644 --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c @@ -205,6 +205,10 @@ static int mac802154_wpan_open(struct net_device *dev) } if (local->hw.flags & IEEE802154_HW_AFILT) { + rc = drv_set_pan_id(local, sdata->pan_id); + if (rc < 0) + goto out; + rc = drv_set_extended_addr(local, sdata->extended_addr); if (rc < 0) goto out; |