]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: Fix regression of register offset for AR9003 chips
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Thu, 20 Oct 2011 08:52:43 +0000 (14:22 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 2 Nov 2011 19:23:11 +0000 (15:23 -0400)
commitb53fa6f4697fd6ea65b7c2f8ee8c7de3efaf25de
treed6cf57db1c25067213cc835bd66ff55d622d4711
parent9935c38c6ac23d5ee5324fd64e0cb7d2a66f00cb
ath9k_hw: Fix regression of register offset for AR9003 chips

My recent commits (c9a5cc826752960) introduced regression
for register offset selection that based on the macversion.
Not using parentheses in proper manner for ternary operator
leads to select wrong offset for the registers.

This issue was observed with AR9462 chip that immediate disconnect
after the association with the following message

ieee80211 phy3: wlan0: Failed to send nullfunc to AP 00:23:69:12:ea:47
after 500ms, disconnecting.

Cc: stable@kernel.org
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_phy.h