]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: rt2800lib: add rt2800_txpower_to_dev helper
authorGabor Juhos <juhosg@openwrt.org>
Mon, 8 Jul 2013 14:08:23 +0000 (16:08 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Jul 2013 20:54:31 +0000 (16:54 -0400)
commit350d467024880c6ac6a494769aac05a5fac4c7cd
tree2d7471e22eb79fa2e04849c909480746e7511ae7
parent3b4b5fd6d55aeedcda80d32258e7d635e68cb40d
rt2x00: rt2800lib: add rt2800_txpower_to_dev helper

Introduce a new helper function for converting
the default TX power values from EEPROM into
mac80211 values.

The change improves the readability and it makes
it easier to add support for other chipsets.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800.h
drivers/net/wireless/rt2x00/rt2800lib.c