Parcourir la source

qcacld-3.0: Add dummy function for wma_set_ibss_pwrsave_params

In the legacy code, "wma_set_ibss_pwrsave_params" was called from
code protected under "QCA_IBSS_SUPPORT". Refactor ap vdev start
change call this function, hence dummy definition for
"wma_set_ibss_pwrsave_params" is added.

Inline dummy function "wma_set_ibss_pwrsave_params" is added to
overcome compilation errors if QCA_IBSS_SUPPORT is disabled.

Change-Id: Idff86469480d607c9ce1cc4f65fcd65b01a83308
CRs-Fixed: 2535135
Abhishek Ambure il y a 5 ans
Parent
commit
27f9830104
1 fichiers modifiés avec 15 ajouts et 0 suppressions
  1. 15 0
      core/wma/inc/wma_internal.h

+ 15 - 0
core/wma/inc/wma_internal.h

@@ -640,6 +640,21 @@ wma_ibss_peer_info_event_handler(void *handle, uint8_t *data,
 {
 	return 0;
 }
+
+/**
+ * wma_set_ibss_pwrsave_params() - set ibss power save parameter to fw
+ * @wma: wma handle
+ * @vdev_id: vdev id
+ *
+ * This function is dummy
+ *
+ * Return: 0 for success or error code.
+ */
+static inline QDF_STATUS
+wma_set_ibss_pwrsave_params(tp_wma_handle wma, uint8_t vdev_id)
+{
+	return QDF_STATUS_SUCCESS;
+}
 #endif /* QCA_IBSS_SUPPORT */
 
 /**