]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: fix endian issues with CTLs on AR9003
authorFelix Fietkau <nbd@openwrt.org>
Wed, 1 Dec 2010 18:07:46 +0000 (19:07 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 2 Dec 2010 19:10:33 +0000 (14:10 -0500)
commit21c2b8e5313a5aa70f6e6b5025309480974756b6
tree52fd746e1824862d47aae14077cea506ec6678a3
parentd6e729084b183902a22f38dd79439fc122445683
ath9k_hw: fix endian issues with CTLs on AR9003

Parsing data using bitfields is messy, because it makes endian handling
much harder. AR9002 and earlier got it right, AR9003 got it wrong.
This might lead to either using too high or too low tx power values,
depending on frequency and eeprom settings.
Fix it by getting rid of the CTL related bitfields entirely and use
masks instead.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
drivers/net/wireless/ath/ath9k/ar9003_eeprom.h
drivers/net/wireless/ath/ath9k/eeprom.c
drivers/net/wireless/ath/ath9k/eeprom.h