nl80211: refactor valid channel type check
authorJohannes Berg <johannes.berg@intel.com>
Thu, 10 May 2012 19:27:18 +0000 (21:27 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 May 2012 17:08:16 +0000 (13:08 -0400)
commitcd6c65981e72aef9f5cc42ffe64404542162790a
treeb57dfa02a6bf1b01f0f19489f90da0a84e3879ba
parent294a20e039a5125b0e88b96e0ee47065ff4e07a5
nl80211: refactor valid channel type check

There are four instances in nl80211 of getting the
channel type from the attribute and validating it,
refactor those.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c