nl80211: refactor common code in scan flags checks
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 May 2018 13:47:37 +0000 (15:47 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Fri, 15 Jun 2018 11:34:16 +0000 (13:34 +0200)
commitdb0a4ad80d3aee6f6e96eddc7ef6a88f4e38d357
tree6a3a92019013d3b7f12b9318db18b29379ed7b51
parent1d211d43167690f94f1bcadf44395799382d85d0
nl80211: refactor common code in scan flags checks

There's a very common pattern to check for a scan flag and
then reject it if an extended feature flag isn't set, factor
this out into a helper function.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
net/wireless/nl80211.c