Browse Source

qcacmn: Fix bit value to stop target_if timer

Fix bit value to stop target_if timer when
start is attempted for same which is already
in execution.

Change-Id: I0d299719d865d92cd5515de4d0441dd215f0aecf
CRs-Fixed: 2494428
Naga 5 years ago
parent
commit
8d8b66b40d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      target_if/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.c

+ 3 - 1
target_if/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.c

@@ -117,7 +117,7 @@ static QDF_STATUS target_if_vdev_mgr_rsp_timer_start(
 							       rsp_pos);
 				target_if_vdev_mgr_rsp_timer_stop(vdev,
 								  vdev_rsp,
-								  set_bit);
+								  rsp_pos);
 			}
 		}
 	}
@@ -129,6 +129,8 @@ static QDF_STATUS target_if_vdev_mgr_rsp_timer_start(
 		target_if_vdev_mgr_assert_mgmt(vdev, vdev_rsp,
 					       set_bit);
 		target_if_vdev_mgr_rsp_timer_stop(vdev, vdev_rsp, set_bit);
+
+		qdf_atomic_set_bit(set_bit, &vdev_rsp->rsp_status);
 	}
 
 	/* reference taken for timer start, will be released with stop */