ath11k: Fix napi related hang
authorBen Greear <greearb@candelatech.com>
Thu, 3 Sep 2020 19:52:54 +0000 (12:52 -0700)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 22 Dec 2021 06:02:35 +0000 (08:02 +0200)
commitd943fdad7589653065be0e20aadc6dff37725ed4
tree30b5cd245f5842fd6674b7c3b1b9213e8d36d3cc
parent9d364b828ae5c51ef732fea2830d278849ca8a3a
ath11k: Fix napi related hang

Similar to the same bug in ath10k, a napi disable w/out it being enabled
will hang forever.  I believe I saw this while trying rmmod after driver
had some failure on startup.  Fix it by keeping state on whether napi is
enabled or not.

And, remove un-used napi pointer in ath11k driver base struct.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20200903195254.29379-1-greearb@candelatech.com
drivers/net/wireless/ath/ath11k/ahb.c
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/pci.c