qcacld-3.0: Add static inline headers for twt
Implement static inline function when TWT is not enabled. Change-Id: I671495be9e5b0828b154826757382806eb500310 CRs-Fixed: 3285179
Šī revīzija ir iekļauta:

revīziju iesūtīja
Madan Koyyalamudi

vecāks
d5f6682047
revīzija
10141185b3
@@ -16,6 +16,8 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#if defined(WLAN_SUPPORT_TWT)
|
||||
|
||||
/**
|
||||
* wlan_twt_is_max_sessions_reached() - Check if the maximum number of
|
||||
* TWT sessions reached or not excluding the given dialog_id
|
||||
@@ -314,3 +316,180 @@ void wlan_twt_set_work_params(
|
||||
void wlan_twt_get_work_params(struct wlan_objmgr_vdev *vdev,
|
||||
struct twt_work_params *params,
|
||||
uint32_t *next_action);
|
||||
#else
|
||||
|
||||
static inline bool
|
||||
wlan_twt_is_max_sessions_reached(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *peer_mac,
|
||||
uint8_t dialog_id)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_set_command_in_progress(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *peer_mac,
|
||||
uint8_t dialog_id,
|
||||
enum wlan_twt_commands cmd)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_setup_req(struct wlan_objmgr_psoc *psoc,
|
||||
struct twt_add_dialog_param *req,
|
||||
void *context)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_teardown_req(struct wlan_objmgr_psoc *psoc,
|
||||
struct twt_del_dialog_param *req,
|
||||
void *context)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_pause_req(struct wlan_objmgr_psoc *psoc,
|
||||
struct twt_pause_dialog_cmd_param *req,
|
||||
void *context)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_resume_req(struct wlan_objmgr_psoc *psoc,
|
||||
struct twt_resume_dialog_cmd_param *req,
|
||||
void *context)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_nudge_req(struct wlan_objmgr_psoc *psoc,
|
||||
struct twt_nudge_dialog_cmd_param *req,
|
||||
void *context)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_ac_pdev_param_send(struct wlan_objmgr_psoc *psoc,
|
||||
enum twt_traffic_ac twt_ac)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
wlan_twt_is_setup_in_progress(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *peer_mac,
|
||||
uint8_t dialog_id)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_setup_complete_event_handler(struct wlan_objmgr_psoc *psoc,
|
||||
struct twt_add_dialog_complete_event *event)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_ack_event_handler(struct wlan_objmgr_psoc *psoc,
|
||||
struct twt_ack_complete_event_param *event)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_teardown_complete_event_handler(struct wlan_objmgr_psoc *psoc,
|
||||
struct twt_del_dialog_complete_event_param *event)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_pause_complete_event_handler(struct wlan_objmgr_psoc *psoc,
|
||||
struct twt_pause_dialog_complete_event_param *event)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_resume_complete_event_handler(struct wlan_objmgr_psoc *psoc,
|
||||
struct twt_resume_dialog_complete_event_param *event)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_nudge_complete_event_handler(struct wlan_objmgr_psoc *psoc,
|
||||
struct twt_nudge_dialog_complete_event_param *event)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_notify_event_handler(struct wlan_objmgr_psoc *psoc,
|
||||
struct twt_notify_event_param *event)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_twt_init_context(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *peer_mac,
|
||||
uint8_t dialog_id)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline
|
||||
QDF_STATUS wlan_twt_update_beacon_template(void)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline
|
||||
bool wlan_twt_is_setup_done(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *peer_mac, uint8_t dialog_id)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline
|
||||
enum wlan_twt_session_state
|
||||
wlan_twt_get_session_state(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *peer_mac, uint8_t dialog_id)
|
||||
{
|
||||
return WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED;
|
||||
}
|
||||
|
||||
static inline
|
||||
bool wlan_twt_is_command_in_progress(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *peer_mac,
|
||||
uint8_t dialog_id,
|
||||
enum wlan_twt_commands cmd,
|
||||
enum wlan_twt_commands *pactive_cmd)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline
|
||||
void wlan_twt_set_work_params(
|
||||
struct wlan_objmgr_vdev *vdev,
|
||||
struct twt_add_dialog_complete_event_param *params,
|
||||
uint32_t twt_next_action)
|
||||
{
|
||||
}
|
||||
|
||||
static inline
|
||||
void wlan_twt_get_work_params(struct wlan_objmgr_vdev *vdev,
|
||||
struct twt_work_params *params,
|
||||
uint32_t *next_action)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user