cfg80211: fix interface combinations check
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 Jun 2012 10:16:50 +0000 (12:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Jun 2012 18:27:30 +0000 (14:27 -0400)
commit463454b5dbd8dbab6e2fc6c557329e5b811b9c32
treedd1ada2ac52ffe607a599b3b01854b5869ec6dca
parent0e1fa7ef25004b9c1a14147bce61c15c2f1c6744
cfg80211: fix interface combinations check

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.

Cc: stable@kernel.org
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>
net/wireless/util.c