]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfce39517a4d3c52f2953098af708eca7d0e54261
tree631025a1b4b881e9ed179bc39d57f82b5cb13827
parent8c33d66a07b5cdbd7d1aad33146837489648bcb8
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