qcacld-3.0: Add support for TWT Get_traffic_stats
Add support for TWT Get_traffic_stats command in TWT component. Change-Id: I927ce90e1dd6b5cc047d99fcd7b54a16a34ca4ed CRs-Fixed: 3085887
This commit is contained in:

committed by
Madan Koyyalamudi

父節點
22c05ef081
當前提交
7ea8a92863
@@ -1046,17 +1046,6 @@ err:
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wlan_twt_is_command_in_progress() - Check if given command is in progress
|
||||
* @psoc: Pointer to psoc object
|
||||
* @peer_mac: Pointer to peer mac address
|
||||
* @dialog_id: Dialog id
|
||||
* @cmd: TWT command
|
||||
* @active_cmd: Fill the active command in this output parameter
|
||||
*
|
||||
* Return: True if given command is in progress.
|
||||
*/
|
||||
static
|
||||
bool wlan_twt_is_command_in_progress(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *peer_mac,
|
||||
uint8_t dialog_id,
|
||||
|
@@ -261,3 +261,19 @@ bool wlan_twt_is_setup_done(struct wlan_objmgr_psoc *psoc,
|
||||
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);
|
||||
|
||||
/**
|
||||
* wlan_twt_is_command_in_progress() - Check if given command is in progress
|
||||
* @psoc: Pointer to psoc object
|
||||
* @peer_mac: Pointer to peer mac address
|
||||
* @dialog_id: Dialog id
|
||||
* @cmd: TWT command
|
||||
* @active_cmd: Fill the active command in this output parameter
|
||||
*
|
||||
* Return: True if given command is in progress.
|
||||
*/
|
||||
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);
|
||||
|
@@ -252,6 +252,13 @@ ucfg_twt_is_setup_done(struct wlan_objmgr_psoc *psoc,
|
||||
enum wlan_twt_session_state
|
||||
ucfg_twt_get_session_state(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *peer_mac, uint8_t dialog_id);
|
||||
|
||||
bool ucfg_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);
|
||||
|
||||
#else
|
||||
static inline
|
||||
QDF_STATUS ucfg_twt_psoc_open(struct wlan_objmgr_psoc *psoc)
|
||||
@@ -331,5 +338,15 @@ ucfg_twt_get_session_state(struct wlan_objmgr_psoc *psoc,
|
||||
{
|
||||
return WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
ucfg_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 false;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -183,3 +183,13 @@ ucfg_twt_get_session_state(struct wlan_objmgr_psoc *psoc,
|
||||
{
|
||||
return wlan_twt_get_session_state(psoc, peer_mac, dialog_id);
|
||||
}
|
||||
|
||||
bool ucfg_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 wlan_twt_is_command_in_progress(psoc, peer_mac, dialog_id, cmd,
|
||||
pactive_cmd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user