cfg80211: fix interface combinations check
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 Jun 2012 10:16:50 +0000 (12:16 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Jun 2012 22:18:14 +0000 (23:18 +0100)
commit37a63c5c91599cc41c9e739696f5391e927ad178
treecf2a976912065736d6853d6565cb088dd677a84d
parentec2f2d36fb217a8750e4c82f91406f265174462f
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: Ben Hutchings <ben@decadent.org.uk>
net/wireless/util.c