]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: rt2800lib: use {tx,rx}_chain_num to avoid superfluous EEPROM access
authorGabor Juhos <juhosg@openwrt.org>
Mon, 14 Oct 2013 19:59:50 +0000 (21:59 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 18 Oct 2013 18:03:54 +0000 (14:03 -0400)
commit2b04e9a4c44e9b62cb58522481e3fc01962f92dd
tree7749ab034a96ed11afa41f0b353476ea3078c365
parentd3d0cd3aa550bb810eb42a5e97967fa5768c50e5
rt2x00: rt2800lib: use {tx,rx}_chain_num to avoid superfluous EEPROM access

The {rx,tx}_chain_num fields of rt2x00dev->default_ant
contains the number of RX and TX chains already when the
rt2800_probe_hw_mode() function runs. Use those values
instead of parsing the EEPROM configuration values again.

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