|
@@ -26,7 +26,9 @@
|
|
|
#include <wlan_objmgr_global_obj.h>
|
|
|
#include <wlan_cmn.h>
|
|
|
#include "wlan_fw_offload_main.h"
|
|
|
+#include "wlan_fwol_public_structs.h"
|
|
|
|
|
|
+#ifdef WLAN_FW_OFFLOAD
|
|
|
/**
|
|
|
* ucfg_fwol_psoc_open() - FWOL component Open
|
|
|
* @psoc: pointer to psoc object
|
|
@@ -523,4 +525,321 @@ ucfg_fwol_set_adaptive_dwelltime_config(
|
|
|
{
|
|
|
return fwol_set_adaptive_dwelltime_config(dwelltime_params);
|
|
|
}
|
|
|
+
|
|
|
+#ifdef WLAN_FEATURE_ELNA
|
|
|
+/**
|
|
|
+ * ucfg_fwol_set_elna_bypass() - send set eLNA bypass request
|
|
|
+ * @vdev: vdev handle
|
|
|
+ * @req: set eLNA bypass request
|
|
|
+ *
|
|
|
+ * Return: QDF_STATUS_SUCCESS on success
|
|
|
+ */
|
|
|
+QDF_STATUS ucfg_fwol_set_elna_bypass(struct wlan_objmgr_vdev *vdev,
|
|
|
+ struct set_elna_bypass_request *req);
|
|
|
+
|
|
|
+/**
|
|
|
+ * ucfg_fwol_get_elna_bypass() - send get eLNA bypass request
|
|
|
+ * @vdev: vdev handle
|
|
|
+ * @req: get eLNA bypass request
|
|
|
+ * @callback: get eLNA bypass response callback
|
|
|
+ * @context: request manager context
|
|
|
+ *
|
|
|
+ * Return: QDF_STATUS_SUCCESS on success
|
|
|
+ */
|
|
|
+QDF_STATUS ucfg_fwol_get_elna_bypass(struct wlan_objmgr_vdev *vdev,
|
|
|
+ struct get_elna_bypass_request *req,
|
|
|
+ void (*callback)(void *context,
|
|
|
+ struct get_elna_bypass_response *response),
|
|
|
+ void *context);
|
|
|
+#endif /* WLAN_FEATURE_ELNA */
|
|
|
+#else
|
|
|
+static inline QDF_STATUS ucfg_fwol_psoc_open(struct wlan_objmgr_psoc *psoc)
|
|
|
+{
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
+}
|
|
|
+
|
|
|
+static inline void ucfg_fwol_psoc_close(struct wlan_objmgr_psoc *psoc)
|
|
|
+{
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS ucfg_fwol_init(void)
|
|
|
+{
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
+}
|
|
|
+
|
|
|
+static inline void ucfg_fwol_deinit(void)
|
|
|
+{
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_coex_config_params(struct wlan_objmgr_psoc *psoc,
|
|
|
+ struct wlan_fwol_coex_config *coex_config)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_thermal_temp(struct wlan_objmgr_psoc *psoc,
|
|
|
+ struct wlan_fwol_thermal_temp *thermal_temp)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_neighbor_report_cfg(struct wlan_objmgr_psoc *psoc,
|
|
|
+ struct wlan_fwol_neighbor_report_cfg
|
|
|
+ *fwol_neighbor_report_cfg)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_is_neighbor_report_req_supported(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool *neighbor_report_req)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_ie_whitelist(struct wlan_objmgr_psoc *psoc, bool *ie_whitelist)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_set_ie_whitelist(struct wlan_objmgr_psoc *psoc, bool ie_whitelist)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_all_whitelist_params(struct wlan_objmgr_psoc *psoc,
|
|
|
+ struct wlan_fwol_ie_whitelist *whitelist)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_ani_enabled(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool *ani_enabled)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_get_enable_rts_sifsbursting(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool *enable_rts_sifsbursting)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_get_max_mpdus_inampdu(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint8_t *max_mpdus_inampdu)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_get_arp_ac_category(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint32_t *arp_ac_category)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_get_enable_phy_reg_retention(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint8_t *enable_phy_reg_retention)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_get_upper_brssi_thresh(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint16_t *upper_brssi_thresh)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_get_lower_brssi_thresh(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint16_t *lower_brssi_thresh)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_get_enable_dtim_1chrx(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool *enable_dtim_1chrx)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_get_alternative_chainmask_enabled(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool *alternative_chainmask_enabled)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_get_smart_chainmask_enabled(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool *smart_chainmask_enabled)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_rts_profile(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint16_t *get_rts_profile)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_enable_fw_log_level(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint16_t *enable_fw_log_level)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_enable_fw_log_type(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint16_t *enable_fw_log_type)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_enable_fw_module_log_level(
|
|
|
+ struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint8_t **enable_fw_module_log_level,
|
|
|
+ uint8_t *enable_fw_module_log_level_num)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_tsf_gpio_pin(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint32_t *tsf_gpio_pin)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_tsf_ptp_options(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint32_t *tsf_ptp_options)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_lprx_enable(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool *lprx_enable)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline bool ucfg_fwol_get_sae_enable(struct wlan_objmgr_psoc *psoc)
|
|
|
+{
|
|
|
+ return false;
|
|
|
+}
|
|
|
+
|
|
|
+static inline bool ucfg_fwol_get_gcmp_enable(struct wlan_objmgr_psoc *psoc)
|
|
|
+{
|
|
|
+ return false;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_enable_tx_sch_delay(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint8_t *enable_tx_sch_delay)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_enable_secondary_rate(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint32_t *enable_secondary_rate)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_all_adaptive_dwelltime_params(
|
|
|
+ struct wlan_objmgr_psoc *psoc,
|
|
|
+ struct adaptive_dwelltime_params *dwelltime_params)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_adaptive_dwell_mode_enabled(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool *adaptive_dwell_mode_enabled)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_global_adapt_dwelltime_mode(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint8_t *global_adapt_dwelltime_mode)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_adapt_dwell_lpf_weight(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint8_t *adapt_dwell_lpf_weight)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_adapt_dwell_passive_mon_intval(
|
|
|
+ struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint8_t *adapt_dwell_passive_mon_intval)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_adapt_dwell_wifi_act_threshold(
|
|
|
+ struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint8_t *adapt_dwell_wifi_act_threshold)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_init_adapt_dwelltime_in_cfg(
|
|
|
+ struct wlan_objmgr_psoc *psoc,
|
|
|
+ struct adaptive_dwelltime_params *dwelltime_params)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_set_adaptive_dwelltime_config(
|
|
|
+ struct adaptive_dwelltime_params *dwelltime_params)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+#ifdef FEATURE_WLAN_RA_FILTERING
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_set_is_rate_limit_enabled(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool is_rate_limit_enabled)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_fwol_get_is_rate_limit_enabled(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool *is_rate_limit_enabled)
|
|
|
+{
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+#endif /* FEATURE_WLAN_RA_FILTERING */
|
|
|
+
|
|
|
+#endif /* WLAN_FW_OFFLOAD */
|
|
|
+
|
|
|
#endif /* _WLAN_FWOL_UCFG_API_H_ */
|