ath9k: fix ar9003_get_eepmisc
authorWenli Looi <wlooi@ucalgary.ca>
Sun, 20 Mar 2022 23:30:08 +0000 (17:30 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:44 +0000 (10:22 +0200)
commit996409ee9716f1bfc8973930d1a3370804e5a855
treec68ec48fa54a35181880e8bea7d67d65d322a274
parentb0bc3af3f09d781dc621797ed36e3a8275406649
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>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c