]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cfg80211: fix interface combinations check
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 Jun 2012 10:16:50 +0000 (12:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jun 2012 18:23:10 +0000 (11:23 -0700)
commitf90b005ff35ab8e6ed3ddcbf79dee0baa48c429a
treec28a478f306c7ad5bedce37ca321e828cd75926d
parent55fe02e968371dd1c0b5b1f9411f2fc8c2b84e7e
cfg80211: fix interface combinations check

commit 463454b5dbd8dbab6e2fc6c557329e5b811b9c32 upstream.

If a given interface combination doesn't contain
a required interface type then we missed checking
that and erroneously allowed it even though iface
type wasn't there at all. Add a check that makes
sure that all interface types are accounted for.

Reported-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/util.c