mac80211: reject setting masked mac addresses
authorHelmut Schaa <helmut.schaa@googlemail.com>
Tue, 27 Nov 2012 17:23:06 +0000 (18:23 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 28 Nov 2012 12:52:43 +0000 (13:52 +0100)
commit478622e81c735ecd83d45ee6be3fd45d500aaa3b
tree631025a1b4b881e9ed179bc39d57f82b5cb13827
parent0624760c96da3ffeaec8027a016475ae752d75e1
mac80211: reject setting masked mac addresses

If a driver registers an address mask we should ensure that no
interface gets an address assigned that isn't covered by the
registered address mask. This prevents invalid configurations
from reaching the device and causing problems.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
[change function flow to reduce indentation, fix locking]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c