]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: refactor __ieee80211_get_channel_mode
authorJohannes Berg <johannes.berg@intel.com>
Mon, 9 Jan 2012 12:57:36 +0000 (13:57 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:08:39 +0000 (14:08 -0500)
commit3993751e34ed19c79dd20b44f6dc316115c559a7
treed117e03b078a089a6554ebe8c28f1e4c545102f8
parente3ec13d833dfc2ac41ccb0279d0e192bc1f49a30
mac80211: refactor __ieee80211_get_channel_mode

Use a switch statement instead of a list of if
statements. Also include AP_VLAN in the list
and skip them since the AP interface will also
be looked at.

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