ath10k: Skip handling del_server during driver exit
authorRakesh Pillai <pillair@codeaurora.org>
Fri, 8 May 2020 02:55:07 +0000 (05:55 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 11 May 2020 12:30:37 +0000 (15:30 +0300)
commit7c6d67b136ceb0aebc7a3153b300e925ed915daf
tree0bb4c07a204897fa83c9f2c131e89bad6704e5b5
parent32a2be499c01ee523b28018d451b39ded4297b11
ath10k: Skip handling del_server during driver exit

The qmi infrastructure sends the client a del_server
event when the client releases its qmi handle. This
is not the msg indicating the actual qmi server exiting.
In such cases the del_server msg should not be processed,
since the wifi firmware does not reset its qmi state.

Hence skip the processing of del_server event when the
driver is unloading.

Tested HW: WCN3990
Tested FW: WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1

Fixes: ba94c753ccb4 ("ath10k: add QMI message handshake for wcn3990 client")
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1588663061-12138-1-git-send-email-pillair@codeaurora.org
drivers/net/wireless/ath/ath10k/qmi.c
drivers/net/wireless/ath/ath10k/qmi.h