diff options
author | Wenli Looi <wlooi@ucalgary.ca> | 2022-03-20 17:30:08 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-14 16:59:19 +0200 |
commit | ff77404b9a4dd03b59aa8942fc33554bef9a6b2b (patch) | |
tree | 31d5f368b229123700f94d9a907bb26f3a2d51a2 /drivers/net/wireless | |
parent | faa6c1146b3f78aaae9eb37b53db4c4e7dccb81d (diff) | |
download | linux-stable-ff77404b9a4dd03b59aa8942fc33554bef9a6b2b.tar.gz linux-stable-ff77404b9a4dd03b59aa8942fc33554bef9a6b2b.tar.bz2 linux-stable-ff77404b9a4dd03b59aa8942fc33554bef9a6b2b.zip |
ath9k: fix ar9003_get_eepmisc
[ Upstream commit 9aaff3864b603408c02c629957ae8d8ff5d5a4f2 ]
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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 2 |
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 4d45d5a8ad2e..db583a6aeb0c 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 = { |