提交 9aaff386 编写于 作者: W Wenli Looi 提交者: Kalle Valo

ath9k: fix ar9003_get_eepmisc

The current implementation is reading the wrong eeprom type.

Fixes: d8ec2e2a ("ath9k: Add an eeprom_ops callback for retrieving the eepmisc value")
Signed-off-by: NWenli Looi <wlooi@ucalgary.ca>
Acked-by: NToke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: NKalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220320233010.123106-5-wlooi@ucalgary.ca
上级 3096a4d9
...@@ -5615,7 +5615,7 @@ unsigned int ar9003_get_paprd_scale_factor(struct ath_hw *ah, ...@@ -5615,7 +5615,7 @@ unsigned int ar9003_get_paprd_scale_factor(struct ath_hw *ah,
static u8 ar9003_get_eepmisc(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 = { const struct eeprom_ops eep_ar9300_ops = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册