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:21:26 +0000 (11:21 -0700)
commit6fa9c3400dd4cbf30c597dbde5d6abbc12b9764d
tree1cbf564c7a00c82b62915b3341b83c59f950aa00
parenta6382a8c4d9287ddca721edf622100e33c4546b9
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