diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-11-01 23:18:42 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-01 23:51:07 -0400 |
commit | 78b4bad16ec41e1d3d5575ff9aca29aab2f831bc (patch) | |
tree | 83eae03594371ff179fae59e589b34f923ca51e4 /net/mac802154/mib.c | |
parent | 776e59de46b5db368e1bd0a4ec5c4feaa740a3d1 (diff) |
mac802154: set short address filter on ifup
This patch moves the setting of hardware short 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 short_addr 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/mib.c')
-rw-r--r-- | net/mac802154/mib.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/mac802154/mib.c b/net/mac802154/mib.c index cfd4f657a24e..755befde6a17 100644 --- a/net/mac802154/mib.c +++ b/net/mac802154/mib.c | |||
@@ -80,12 +80,6 @@ void mac802154_dev_set_short_addr(struct net_device *dev, __le16 val) | |||
80 | spin_lock_bh(&sdata->mib_lock); | 80 | spin_lock_bh(&sdata->mib_lock); |
81 | sdata->short_addr = val; | 81 | sdata->short_addr = val; |
82 | spin_unlock_bh(&sdata->mib_lock); | 82 | spin_unlock_bh(&sdata->mib_lock); |
83 | |||
84 | if ((sdata->local->ops->set_hw_addr_filt) && | ||
85 | (sdata->local->hw.hw_filt.short_addr != sdata->short_addr)) { | ||
86 | sdata->local->hw.hw_filt.short_addr = sdata->short_addr; | ||
87 | set_hw_addr_filt(dev, IEEE802154_AFILT_SADDR_CHANGED); | ||
88 | } | ||
89 | } | 83 | } |
90 | 84 | ||
91 | __le16 mac802154_dev_get_short_addr(const struct net_device *dev) | 85 | __le16 mac802154_dev_get_short_addr(const struct net_device *dev) |