Explorar el Código

qcacld-3.0: Allow RSO update cmds on RSO_STARTED state

Firmware operates on RSO update params only if state is RSO_STARTED.

Hence allow RSO update commands only in RSO_STARTED state.

Change-Id: Ic9d0d6df0608bfc4b4273f7c42c893dd52739d78
CRs-Fixed: 2605298
Srinivas Dasari hace 5 años
padre
commit
c5b2de38a6
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      core/sme/src/csr/csr_api_roam.c

+ 2 - 2
core/sme/src/csr/csr_api_roam.c

@@ -21606,8 +21606,8 @@ csr_send_roam_offload_init_msg(struct mac_context *mac, uint32_t vdev_id,
 QDF_STATUS
 csr_roam_update_cfg(struct mac_context *mac, uint8_t vdev_id, uint8_t reason)
 {
-	if (!MLME_IS_ROAM_INITIALIZED(mac->psoc, vdev_id)) {
-		sme_err("Update cfg received in roam uninitialized state");
+	if (!MLME_IS_ROAM_STATE_RSO_STARTED(mac->psoc, vdev_id)) {
+		sme_err("Update cfg received while ROAM RSO not started");
 		return QDF_STATUS_E_INVAL;
 	}