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>
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c
index a509a71..1bae29d 100644
--- a/net/mac802154/iface.c
+++ b/net/mac802154/iface.c
@@ -208,6 +208,10 @@
rc = drv_set_extended_addr(local, sdata->extended_addr);
if (rc < 0)
goto out;
+
+ rc = drv_set_short_addr(local, sdata->short_addr);
+ if (rc < 0)
+ goto out;
}
if (local->hw.flags & IEEE802154_HW_TXPOWER) {