Staging: batman-adv: suppress false warning when changing the mac address
authorMarek Lindner <lindner_marek@yahoo.de>
Thu, 4 Nov 2010 22:02:30 +0000 (23:02 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 10 Nov 2010 00:21:27 +0000 (16:21 -0800)
commit4d774a7fed886522f55119ef524cbe3c90bbdc38
treefde5725268a44fb9a83f5b5d8e967624e052b9bf
parentf581cf21b48c305c6fbbc3db5ef905deb19131e5
Staging: batman-adv: suppress false warning when changing the mac address

Whenever the mac address of an batman interface is changed
check_known_mac_addr() is called to print a warning if the newly added
mac address exists an another batman interface. While looping through
the batman interface list check_known_mac_addr() only compares mac
addresses and does not make sure they belong to different interfaces,
thus always printing a warning.

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/hard-interface.c