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)
commite9980e6d20a5c4d3f52359142ab3569171759a5b
treed117e03b078a089a6554ebe8c28f1e4c545102f8
parent75ac9a28a0c6b818ba1aba874b6b3ae17241552c
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