0056-wifi-ath11k-Disable-Spectral-scan-upon-removing-inte.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 5c690db63b45c6c4c4932b13173af71df369dba5 Mon Sep 17 00:00:00 2001
  2. From: Tamizh Chelvam Raja <quic_tamizhr@quicinc.com>
  3. Date: Tue, 28 Mar 2023 12:41:50 +0530
  4. Subject: [PATCH] wifi: ath11k: Disable Spectral scan upon removing interface
  5. Host might receive spectral events during interface
  6. down sequence and this might create below errors.
  7. failed to handle dma buf release event -22
  8. failed to handle dma buf release event -22
  9. Fix this by disabling spectral config during remove interface.
  10. Tested-on: IPQ5018 hw1.0 AHB WLAN.HK.2.6.0.1-00861-QCAHKSWPL_SILICONZ-1
  11. Signed-off-by: Tamizh Chelvam Raja <quic_tamizhr@quicinc.com>
  12. Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
  13. Link: https://lore.kernel.org/r/20230328071150.29645-1-quic_tamizhr@quicinc.com
  14. ---
  15. drivers/net/wireless/ath/ath11k/mac.c | 5 +++++
  16. 1 file changed, 5 insertions(+)
  17. --- a/drivers/net/wireless/ath/ath11k/mac.c
  18. +++ b/drivers/net/wireless/ath/ath11k/mac.c
  19. @@ -6685,6 +6685,11 @@ static void ath11k_mac_op_remove_interfa
  20. ath11k_dbg(ab, ATH11K_DBG_MAC, "mac remove interface (vdev %d)\n",
  21. arvif->vdev_id);
  22. + ret = ath11k_spectral_vif_stop(arvif);
  23. + if (ret)
  24. + ath11k_warn(ab, "failed to stop spectral for vdev %i: %d\n",
  25. + arvif->vdev_id, ret);
  26. +
  27. if (arvif->vdev_type == WMI_VDEV_TYPE_STA)
  28. ath11k_mac_11d_scan_stop(ar);