qcacld-3.0: Add support for TWT get_status
In TWT component, add support for TWT get_status command i.e when host wants to query current status of TWT sessions. Change-Id: Ib43009e5f6a90c589db25f78e1ca43563f2950fe CRs-Fixed: 3085483
这个提交包含在:
@@ -226,6 +226,32 @@ ucfg_twt_set_osif_cb(osif_twt_get_global_ops_cb osif_twt_ops);
|
||||
* Return: QDF_STATUS_SUCCESS
|
||||
*/
|
||||
QDF_STATUS ucfg_twt_update_beacon_template(void);
|
||||
|
||||
/**
|
||||
* ucfg_twt_is_setup_done() - check if TWT setup is done or not
|
||||
* for given dialog id
|
||||
* @psoc: Pointer to global psoc object
|
||||
* @peer_mac: Global peer mac address
|
||||
* @dialog_id: Dialog ID
|
||||
*
|
||||
* Return: True if Setup is done, false otherwise
|
||||
*/
|
||||
bool
|
||||
ucfg_twt_is_setup_done(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *peer_mac,
|
||||
uint8_t dialog_id);
|
||||
|
||||
/**
|
||||
* ucfg_twt_get_session_state() - get TWT session state for a given dialog id
|
||||
* @psoc: Pointer to global psoc object
|
||||
* @peer_mac: Global peer mac address
|
||||
* @dialog_id: Dialog ID
|
||||
*
|
||||
* Return: TWT session state
|
||||
*/
|
||||
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);
|
||||
#else
|
||||
static inline
|
||||
QDF_STATUS ucfg_twt_psoc_open(struct wlan_objmgr_psoc *psoc)
|
||||
@@ -290,6 +316,20 @@ ucfg_twt_set_osif_cb(osif_twt_get_global_ops_cb osif_twt_ops)
|
||||
{
|
||||
return QDF_STATUS_E_NOSUPPORT;
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline bool
|
||||
ucfg_twt_is_setup_done(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *peer_mac,
|
||||
uint8_t dialog_id)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline 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)
|
||||
{
|
||||
return WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -170,3 +170,16 @@ QDF_STATUS ucfg_twt_update_beacon_template(void)
|
||||
return wlan_twt_update_beacon_template();
|
||||
}
|
||||
|
||||
bool
|
||||
ucfg_twt_is_setup_done(struct wlan_objmgr_psoc *psoc,
|
||||
struct qdf_mac_addr *peer_mac, uint8_t dialog_id)
|
||||
{
|
||||
return wlan_twt_is_setup_done(psoc, peer_mac, dialog_id);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
return wlan_twt_get_session_state(psoc, peer_mac, dialog_id);
|
||||
}
|
||||
|
在新工单中引用
屏蔽一个用户