OSDN Git Service

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)
commit97aa03f15e83174df74aa468eea127c5cee480f0
tree2d7471e22eb79fa2e04849c909480746e7511ae7
parent5cddb3c2d5102d9a6b1b809e1518da54c8be8296
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