|
@@ -32,8 +32,6 @@
|
|
|
#include "sme_nan_datapath.h"
|
|
|
|
|
|
#if defined(WLAN_FEATURE_NAN_DATAPATH) && !defined(WLAN_FEATURE_NAN_CONVERGENCE)
|
|
|
-#define WMA_IS_VDEV_IN_NDI_MODE(intf, vdev_id) \
|
|
|
- (WMI_VDEV_TYPE_NDI == intf[vdev_id].type)
|
|
|
QDF_STATUS wma_handle_ndp_responder_req(tp_wma_handle wma_handle,
|
|
|
struct ndp_responder_req *req_params);
|
|
|
|
|
@@ -42,22 +40,16 @@ void wma_ndp_unregister_all_event_handlers(tp_wma_handle wma_handle);
|
|
|
void wma_ndp_wow_event_callback(void *handle, void *event,
|
|
|
uint32_t len, uint32_t event_id);
|
|
|
|
|
|
-void wma_add_sta_ndi_mode(tp_wma_handle wma, tpAddStaParams add_sta);
|
|
|
QDF_STATUS wma_handle_ndp_initiator_req(tp_wma_handle wma_handle, void *req);
|
|
|
QDF_STATUS wma_handle_ndp_end_req(tp_wma_handle wma_handle, void *req);
|
|
|
-void wma_delete_sta_req_ndi_mode(tp_wma_handle wma,
|
|
|
- tpDeleteStaParams del_sta);
|
|
|
uint32_t wma_ndp_get_eventid_from_tlvtag(uint32_t tag);
|
|
|
#else
|
|
|
-#define WMA_IS_VDEV_IN_NDI_MODE(intf, vdev_id) (false)
|
|
|
static inline void wma_ndp_register_all_event_handlers(
|
|
|
tp_wma_handle wma_handle) {}
|
|
|
static inline void wma_ndp_unregister_all_event_handlers(
|
|
|
tp_wma_handle wma_handle) {}
|
|
|
static inline void wma_ndp_wow_event_callback(void *handle, void *event,
|
|
|
uint32_t len, uint32_t event_id) {}
|
|
|
-static inline void wma_add_sta_ndi_mode(tp_wma_handle wma,
|
|
|
- tpAddStaParams add_sta) {}
|
|
|
static inline QDF_STATUS wma_handle_ndp_initiator_req(tp_wma_handle wma_handle,
|
|
|
void *req)
|
|
|
{
|
|
@@ -74,10 +66,6 @@ static inline QDF_STATUS wma_handle_ndp_end_req(tp_wma_handle wma_handle,
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
-static inline void wma_delete_sta_req_ndi_mode(tp_wma_handle wma,
|
|
|
- tpDeleteStaParams del_sta)
|
|
|
-{
|
|
|
-}
|
|
|
|
|
|
static inline uint32_t wma_ndp_get_eventid_from_tlvtag(uint32_t tag)
|
|
|
{
|
|
@@ -86,6 +74,11 @@ static inline uint32_t wma_ndp_get_eventid_from_tlvtag(uint32_t tag)
|
|
|
#endif /* WLAN_FEATURE_NAN_DATAPATH !WLAN_FEATURE_NAN_CONVERGENCE */
|
|
|
|
|
|
#ifdef WLAN_FEATURE_NAN_DATAPATH
|
|
|
+#define WMA_IS_VDEV_IN_NDI_MODE(intf, vdev_id) \
|
|
|
+ (WMI_VDEV_TYPE_NDI == intf[vdev_id].type)
|
|
|
+
|
|
|
+void wma_add_sta_ndi_mode(tp_wma_handle wma, tpAddStaParams add_sta);
|
|
|
+
|
|
|
/**
|
|
|
* wma_update_hdd_cfg_ndp() - Update target device NAN datapath capability
|
|
|
* @wma_handle: pointer to WMA context
|
|
@@ -100,7 +93,12 @@ static inline void wma_update_hdd_cfg_ndp(tp_wma_handle wma_handle,
|
|
|
}
|
|
|
|
|
|
void wma_add_bss_ndi_mode(tp_wma_handle wma, tpAddBssParams add_bss);
|
|
|
+
|
|
|
+void wma_delete_sta_req_ndi_mode(tp_wma_handle wma,
|
|
|
+ tpDeleteStaParams del_sta);
|
|
|
+
|
|
|
#else
|
|
|
+#define WMA_IS_VDEV_IN_NDI_MODE(intf, vdev_id) (false)
|
|
|
static inline void wma_update_hdd_cfg_ndp(tp_wma_handle wma_handle,
|
|
|
struct wma_tgt_cfg *tgt_cfg)
|
|
|
{
|
|
@@ -113,6 +111,12 @@ static inline void wma_add_bss_ndi_mode(tp_wma_handle wma,
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+static inline void wma_delete_sta_req_ndi_mode(tp_wma_handle wma,
|
|
|
+ tpDeleteStaParams del_sta)
|
|
|
+{
|
|
|
+}
|
|
|
+static inline void wma_add_sta_ndi_mode(tp_wma_handle wma,
|
|
|
+ tpAddStaParams add_sta) {}
|
|
|
#endif /* WLAN_FEATURE_NAN_DATAPATH */
|
|
|
|
|
|
#endif /* __WMA_NAN_DATAPATH_H */
|