Explorar o código

qcacmn: Fix subsequent wifi failuers after mode1 recovery

After mode1 recovery, because of short circuit operator "&&",
decrement of init count is not happening and causing failures
to read global shmem arena tlv, fix the issue by changing the order

Change-Id: Iae922f09c2a9c3690318e35657f92cc3bf1061e7
CRs-Fixed: 3497802
Surya Prakash Raajen %!s(int64=2) %!d(string=hai) anos
pai
achega
488ebc9cd9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      target_if/init_deinit/src/mlo_global_h_shmem_arena.c

+ 2 - 2
target_if/init_deinit/src/mlo_global_h_shmem_arena.c

@@ -925,8 +925,8 @@ QDF_STATUS mlo_glb_h_shmem_arena_ctx_deinit(uint8_t grp_id, uint8_t recovery)
 	}
 
        /* We need to de-initialize only for the last invocation */
-	if ((recovery != MLO_RECOVERY_MODE_1) &&
-	    qdf_atomic_dec_and_test(&shmem_arena_ctx->init_count))
+	if (qdf_atomic_dec_and_test(&shmem_arena_ctx->init_count) &&
+	    recovery != MLO_RECOVERY_MODE_1)
 		goto success;
 
 	free_mlo_glb_rx_reo_per_link_info(