summaryrefslogtreecommitdiffstats
path: root/net/mac802154/cfg.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-08-10 21:15:54 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-08-10 20:43:06 +0200
commit09095fdc9e5d5438051fc4e92867f1aff764cd21 (patch)
tree6f64034a211a8c077c3ff614f5f3b4418bb2050b /net/mac802154/cfg.c
parent51e0e5d8124ece158927a4c2288c0929d3b53aa3 (diff)
downloadlinux-09095fdc9e5d5438051fc4e92867f1aff764cd21.tar.gz
linux-09095fdc9e5d5438051fc4e92867f1aff764cd21.tar.bz2
linux-09095fdc9e5d5438051fc4e92867f1aff764cd21.zip
mac802154: fix wpan mac setting while lowpan is there
If we currently change the mac address inside the wpan interface while we have a lowpan interface on top of the wpan interface, the mac address setting doesn't reach the lowpan interface. The effect would be that the IPv6 lowpan interface has the old SLAAC address and isn't working anymore because the lowpan interface use in internal mechanism sometimes dev->addr which is the old mac address of the wpan interface. This patch checks if a wpan interface belongs to lowpan interface, if yes then we need to check if the lowpan interface is down and change the mac address also at the lowpan interface. When the lowpan interface will be set up afterwards, it will use the correct SLAAC address which based on the updated mac address setting. Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com> Tested-by: Stefan Schmidt <stefan@osg.samsung.com> Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/cfg.c')
0 files changed, 0 insertions, 0 deletions