Browse Source

qcacld-3.0: Fix 11ax SAP stop issue after radar received

For 11ax SAP, when received radar, sap_is_chan_change_needed for 11BE
return false sometimes, target freq and bw is same as current, after
CSA, vdev restart failed in lim_process_sme_channel_change_request,
vdev becomes hung in SUSPEND-SP-CSA_RESTART. After 1 min, Kernel trigger
disconnect.

To fix it, if SAP isn't 11BE mode, sap_is_chan_change_needed return
true directly as legacy code.

Change-Id: I6db94c3117890d0ee924975af8b3c9efd9fb08ba
CRs-Fixed: 3789066
Jianmin Zhu 1 year ago
parent
commit
318a43a7b3
1 changed files with 5 additions and 0 deletions
  1. 5 0
      core/sap/src/sap_fsm.c

+ 5 - 0
core/sap/src/sap_fsm.c

@@ -190,6 +190,11 @@ sap_is_chan_change_needed(struct sap_context *sap_ctx)
 	QDF_STATUS status;
 	struct mac_context *mac_ctx;
 
+	if (!sap_phymode_is_eht(sap_ctx->phyMode)) {
+		sap_debug("phy mode: 0x%x", sap_ctx->phyMode);
+		return true;
+	}
+
 	mac_ctx = sap_get_mac_context();
 	if (!mac_ctx) {
 		sap_err("Invalid MAC context");