Browse Source

Merge "qcacld-3.0: Send RSO command (any type) only in connected state" into wlan-cld3.driver.lnx.2.0

CNSS_WLAN Service 5 years ago
parent
commit
5ad6e8532c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      core/sme/src/csr/csr_api_roam.c

+ 6 - 0
core/sme/src/csr/csr_api_roam.c

@@ -19506,6 +19506,12 @@ csr_roam_offload_scan(struct mac_context *mac_ctx, uint8_t session_id,
 		return QDF_STATUS_E_FAILURE;
 	}
 
+	if (!csr_is_conn_state_connected(mac_ctx, session_id) &&
+	    command == ROAM_SCAN_OFFLOAD_UPDATE_CFG) {
+		sme_debug("Session not in connected state, RSO not sent");
+		return QDF_STATUS_E_FAILURE;
+	}
+
 	temp_session_id = csr_get_roam_enabled_sta_sessionid(mac_ctx);
 	if ((temp_session_id != WLAN_UMAC_VDEV_ID_MAX) &&
 	    (session_id != temp_session_id)) {