summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWenli Looi <wlooi@ucalgary.ca>2022-03-21 02:30:08 +0300
committerKalle Valo <quic_kvalo@quicinc.com>2022-03-25 13:33:07 +0300
commit9aaff3864b603408c02c629957ae8d8ff5d5a4f2 (patch)
treedcd63e474ae2a392bd8c8da79694ee791f0edb72
parent3096a4d9eb9bf8a0975c222bd7013d2db323d749 (diff)
downloadlinux-9aaff3864b603408c02c629957ae8d8ff5d5a4f2.tar.xz
ath9k: fix ar9003_get_eepmisc
The current implementation is reading the wrong eeprom type. Fixes: d8ec2e2a63e8 ("ath9k: Add an eeprom_ops callback for retrieving the eepmisc value") Signed-off-by: Wenli Looi <wlooi@ucalgary.ca> Acked-by: Toke Høiland-Jørgensen <toke@toke.dk> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20220320233010.123106-5-wlooi@ucalgary.ca
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
index 669b49b560a1..a109a44a1999 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
@@ -5615,7 +5615,7 @@ unsigned int ar9003_get_paprd_scale_factor(struct ath_hw *ah,
static u8 ar9003_get_eepmisc(struct ath_hw *ah)
{
- return ah->eeprom.map4k.baseEepHeader.eepMisc;
+ return ah->eeprom.ar9300_eep.baseEepHeader.opCapFlags.eepMisc;
}
const struct eeprom_ops eep_ar9300_ops = {