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)
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>

No differences found