Browse Source

qcacmn: Add change to restart target if timer

Add code to restart timer for a new vdev command being sent to FW,
while we are awaiting for a response from FW for a previous command.

Change-Id: I1847968831cca6b0ee1e49d32b83196061341702
CRs-Fixed: 2450682
Akshay Kosigi 5 years ago
parent
commit
2a2a8afda4
1 changed files with 23 additions and 2 deletions
  1. 23 2
      target_if/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.c

+ 23 - 2
target_if/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.c

@@ -86,6 +86,25 @@ static QDF_STATUS target_if_vdev_mgr_rsp_timer_stop(
 	return QDF_STATUS_E_FAILURE;
 }
 
+#ifdef VDEV_ASSERT_MANAGEMENT
+static void target_if_vdev_mgr_assert_mgmt(
+					struct wlan_objmgr_vdev *vdev,
+					struct vdev_response_timer *vdev_rsp,
+					uint8_t set_bit)
+{
+	target_if_vdev_mgr_rsp_timer_stop(vdev, vdev_rsp,
+					  set_bit);
+}
+#else
+static void target_if_vdev_mgr_assert_mgmt(
+					struct wlan_objmgr_vdev *vdev,
+					struct vdev_response_timer *vdev_rsp,
+					uint8_t set_bit)
+{
+	QDF_ASSERT(0);
+}
+#endif
+
 static QDF_STATUS target_if_vdev_mgr_rsp_timer_start(
 					struct wlan_objmgr_vdev *vdev,
 					struct vdev_response_timer *vdev_rsp,
@@ -111,7 +130,8 @@ static QDF_STATUS target_if_vdev_mgr_rsp_timer_start(
 				mlme_err("PSOC_%d VDEV_%d: Response bit is set %d",
 					 wlan_psoc_get_id(psoc),
 					 vdev_id, vdev_rsp->rsp_status);
-				QDF_ASSERT(0);
+				target_if_vdev_mgr_assert_mgmt(vdev, vdev_rsp,
+							       rsp_pos);
 			}
 		}
 	}
@@ -120,7 +140,8 @@ static QDF_STATUS target_if_vdev_mgr_rsp_timer_start(
 		mlme_err("PSOC_%d VDEV_%d: Response bit is set %d",
 			 wlan_psoc_get_id(psoc),
 			 vdev_id, vdev_rsp->rsp_status);
-		QDF_ASSERT(0);
+		target_if_vdev_mgr_assert_mgmt(vdev, vdev_rsp,
+					       set_bit);
 	}
 
 	/* reference taken for timer start, will be released with stop */