rt2x00: rt2800lib: autodetect 5GHz band support
authorGabor Juhos <juhosg@openwrt.org>
Mon, 14 Oct 2013 19:59:52 +0000 (21:59 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 18 Oct 2013 18:03:54 +0000 (14:03 -0400)
commit53c5a099b8fd45632f4021f0a908b43aabe883fc
tree44f34f9b4467f91f75f9000428757ffbfd273882
parent4a32c36daa37963cab9140fe9da9c62187931e3c
rt2x00: rt2800lib: autodetect 5GHz band support

If the RF chip supports more than 14 channels that
indirectly means that it supports the 5GHz band.
Use this fact to enable 5GHz band support instead
of setting SUPPORT_BAND_5GHZ separately for each
RF chip.

Also move the setup code of the 2GHz band to the
same place.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c