Browse Source

qcacmn: Improve accessibility of target_if_is_vdev_valid

Move  api target_if_is_vdev_valid() in order to improve
its accessibility.

Change-Id: Ia2085da6ab62144fb690b9474359caa31b415e74
CRs-Fixed: 3555929
Vijay Raj 2 years ago
parent
commit
de88d935fd
1 changed files with 11 additions and 0 deletions
  1. 11 0
      target_if/core/inc/target_if.h

+ 11 - 0
target_if/core/inc/target_if.h

@@ -599,6 +599,17 @@ bool target_is_tgt_type_qcn6432(uint32_t target_type);
  */
 bool target_is_tgt_type_qcn7605(uint32_t target_type);
 
+/**
+ * target_if_is_vdev_valid - vdev id is valid or not
+ * @vdev_id: vdev id
+ *
+ * Return: true or false
+ */
+static inline bool target_if_is_vdev_valid(uint8_t vdev_id)
+{
+	return (vdev_id < WLAN_UMAC_PSOC_MAX_VDEVS ? true : false);
+}
+
 /**
  * target_psoc_set_wlan_init_status() - set info wlan_init_status
  * @psoc_info:          pointer to structure target_psoc_info