]> 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)
commit60e61ee1317307049bbe2a68c4ad9f032c13c589
tree631025a1b4b881e9ed179bc39d57f82b5cb13827
parenta9628a64c7c5a82cae1ee6271c572a7ffbfad387
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