mac80211: simplify zero address checks
authorJohannes Berg <johannes.berg@intel.com>
Fri, 27 Aug 2010 10:35:56 +0000 (12:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Aug 2010 17:53:30 +0000 (13:53 -0400)
commitbf533e0bfd77d9671adabdf134b1ac7f24bb0670
tree80246d2a03e3aa1b6ebea0760cb4beab67e58f3d
parent26a58456be40d8181b884eb5b4e61e3f73ba94e0
mac80211: simplify zero address checks

The libertas_tf special code for zero addresses
is a bit too complex, it compares against a stack
value instead of using is_zero_ether_addr() and
tries to update all interfaces even if just the
one that's being brought up needs to be changed.
Additionally, the repeated check for a valid MAC
address need only be done if we actually changed
it on the fly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/iface.c