]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix incorrect wlan_mac_base in qca6174_regs
authorRyan Hsu <ryanhsu@qca.qualcomm.com>
Mon, 13 Mar 2017 22:49:03 +0000 (15:49 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 20 Mar 2017 15:11:31 +0000 (17:11 +0200)
commiteb3a9e4e1305cc505d224183a49128cd24b962fb
treeb4f98b37d8c8871064d7803dd2fcea4206c63d93
parent99b6a2555bec15d4b25d249391087f6038e6e723
ath10k: fix incorrect wlan_mac_base in qca6174_regs

In the 'commit ab12711bf2b8 ("ath10k: allow setting coverage class")',
it inherits the design and the address offset from ath9k, but the address
is not applicable to QCA6174, which leads to a random crash while doing the
resume() operation, since the set_coverage_class.ops will be called from
ieee80211_reconfig() when resume() (if the wow is not configured).

Fix the incorrect address offset here to avoid the random crash.

Verified on QCA6174/hw3.0 with firmware WLAN.RM.4.4-00022-QCARMSWPZ-2.

kvalo: this also seems to fix a regression with firmware restart.

Fixes: ab12711bf2b8 ("ath10k: allow setting coverage class")
Cc: <stable@vger.kernel.org> # v4.10
Signed-off-by: Ryan Hsu <ryanhsu@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/hw.c