]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath9k_hw: fix parsing of HT40 5 GHz CTLs
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 30 Aug 2010 23:26:33 +0000 (19:26 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:07:41 +0000 (18:07 -0500)
commit5ba16d7c0e8cc1e32b00c05d08725252f33a1415
tree782ccb3cc774a6dc4d1d51fc4885e6506370914d
parentd12738a6a29d69f00840113a93c5c55be8c6af97
ath9k_hw: fix parsing of HT40 5 GHz CTLs

commit 904879748d7439a6dabdc6be9aad983e216b027d upstream.

The 5 GHz CTL indexes were not being read for all hardware
devices due to the masking out through the CTL_MODE_M mask
being one bit too short. Without this the calibrated regulatory
maximum values were not being picked up when devices operate
on 5 GHz in HT40 mode. The final output power used for Atheros
devices is the minimum between the calibrated CTL values and
what CRDA provides.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/net/wireless/ath/ath9k/eeprom.h
drivers/net/wireless/ath/regd.h