Merge "qcacld-3.0: Send RSO command (any type) only in connected state" into wlan-cld3.driver.lnx.2.0
diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c
index 9092ce6..602997f 100644
--- a/core/sme/src/csr/csr_api_roam.c
+++ b/core/sme/src/csr/csr_api_roam.c
@@ -19506,6 +19506,12 @@
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)) {