WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hmac_twt.c 文件参考
#include "hmac_twt.h"
#include "oal_util.h"
#include "hmac_ext_if.h"
#include "hmac_resource.h"
#include "hmac_device.h"
#include "hmac_vap.h"
#include "hmac_mgmt_bss_comm.h"
#include "hmac_tx_mgmt.h"
#include "hmac_psm_ap.h"
#include "hmac_feature_dft.h"
#include "hal_device.h"
#include "mac_frame.h"
#include "hmac_user.h"
#include "hmac_mgmt_ap.h"
#include "hmac_config.h"
#include "msg_twt_rom.h"
#include "hmac_ccpriv.h"
#include "frw_util_notifier.h"
#include "hmac_feature_interface.h"
#include "hmac_hook.h"
#include "oal_netbuf_data.h"
#include "wal_utils.h"
hmac_twt.c 的引用(Include)关系图:

宏定义

#define THIS_FILE_ID   DIAG_FILE_ID_WIFI_HOST_HMAC_TWT_C
 
#define THIS_MOD_ID   DIAG_MOD_ID_WIFI_HOST
 

函数

WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OSAL_STATIC sta_twt_para_struhmac_get_sta_twt_info (osal_u8 vap_id)
 
WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OSAL_STATIC osal_u8 hmac_device_twt_custom_is_open (osal_u8 vap_id)
 
OSAL_STATIC osal_void hmac_twt_set_resp_bit (osal_u8 vap_id, osal_u8 value)
 
OSAL_STATIC osal_void hmac_twt_set_req_bit (osal_u8 vap_id, osal_u8 value)
 
OSAL_STATIC osal_u8 hmac_twt_get_req_bit (osal_u8 vap_id)
 
OSAL_STATIC osal_void hmac_twt_handle_ps (hmac_vap_stru *hmac_vap, osal_u8 pause)
 
OSAL_STATIC osal_void hmac_twt_status_d2h_sync (hmac_vap_stru *hmac_vap, mac_d2hd_twt_cfg_stru *twt_cfg)
 
OSAL_STATIC osal_s32 hmac_twt_update_d2h_sync (hmac_vap_stru *hmac_vap, mac_d2hd_twt_sync_info_stru *twt_cfg)
 
WIFI_TCM_TEXT OSAL_STATIC osal_u8 hmac_twt_is_ps_pause (const hmac_vap_stru *hmac_vap)
 
OSAL_STATIC osal_u32 hmac_mgmt_tx_twt_setup_req (hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user, const hmac_ctx_action_event_stru *ctx_action_event, oal_netbuf_stru *netbuf)
 
OSAL_STATIC osal_u32 hmac_mgmt_tx_twt_information_req (hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user, const hmac_ctx_action_event_stru *ctx_action_event, oal_netbuf_stru *netbuf)
 
OSAL_STATIC osal_u32 hmac_mgmt_tx_twt_teardown_req (hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user, const hmac_ctx_action_event_stru *ctx_action_event, oal_netbuf_stru *netbuf)
 
OSAL_STATIC osal_u32 hmac_sta_twt_update_event_etc (hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, mac_twt_update_source_enum_uint8 twt_update_source)
 
OSAL_STATIC osal_u32 hmac_twt_fill_ctx_and_cb (hmac_vap_stru *hmac_vap, oal_netbuf_stru *twt_frame, osal_u16 length, osal_u32 sub_type, osal_u32 action_sub_type)
 
OSAL_STATIC osal_u32 hmac_mgmt_encap_twt_teardown_req (hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, osal_u8 *data, osal_u8 flow_id, osal_u16 *frame_len)
 
OSAL_STATIC osal_u32 hmac_mgmt_tx_twt_teardown (hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, osal_u8 flow_id)
 
OSAL_STATIC osal_u32 mac_device_find_up_sta_wlan_etc (hmac_device_stru *hmac_device, hmac_vap_stru **hmac_vap)
 
OSAL_STATIC osal_void hmac_sta_twt_save_parameters (hmac_vap_stru *hmac_vap, mac_twt_ie_individual_stru *twt_element)
 
OSAL_STATIC osal_u32 hmac_sta_rx_twt_negotiate (hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, mac_twt_ie_individual_stru *twt_element, mac_twt_update_source_enum_uint8 twt_update_source)
 
OSAL_STATIC osal_void hmac_sta_rx_twt_association_frame_etc (hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, osal_u8 *payload)
 
OSAL_STATIC osal_u32 hmac_sta_rx_twt_para_verify_etc (hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, mac_individual_twt_setup_frame_stru *setup_frame)
 
OSAL_STATIC osal_u32 hmac_sta_rx_twt_setup_frame (hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, mac_individual_twt_setup_frame_stru *setup_frame)
 
OSAL_STATIC osal_u32 hmac_sta_rx_twt_teardown_frame (hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, osal_u8 *payload)
 
OSAL_STATIC osal_u64 hmac_get_next_twt (hmac_vap_stru *hmac_vap, osal_u8 *payload, osal_u8 next_twt_subfd_size)
 
OSAL_STATIC osal_u32 hmac_sta_rx_twt_information_frame (hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, osal_u8 *payload_len)
 
OSAL_STATIC osal_bool hmac_twt_deinit (osal_void *notify_data)
 
WIFI_TCM_TEXT OSAL_STATIC osal_u8 hmac_twt_is_session_enable (const hmac_vap_stru *hmac_vap)
 
WIFI_TCM_TEXT OSAL_STATIC osal_bool hmac_is_twt_processed_not_need_buff (const hmac_vap_stru *hmac_vap)
 
WIFI_TCM_TEXT OSAL_STATIC osal_bool hmac_is_twt_need_buff (hmac_vap_stru *hmac_vap)
 
OSAL_STATIC osal_u32 hmac_twt_tx_action (hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user, const hmac_ctx_action_event_stru *ctx_action_event, oal_netbuf_stru *netbuf, mac_tx_ctl_stru *tx_ctl)
 
OSAL_STATIC osal_u32 hmac_p2p_teardown_twt_session (hmac_device_stru *hmac_device)
 
OSAL_STATIC osal_void hmac_process_update_twt (hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, osal_u8 *payload, osal_u16 msg_len)
 
OSAL_STATIC osal_u32 hmac_sta_up_rx_action_s1g (oal_netbuf_stru **netbuf, hmac_vap_stru *hmac_vap)
 
OSAL_STATIC osal_s32 hmac_config_twt_status_sync (hmac_vap_stru *hmac_vap, frw_msg *msg)
 
OSAL_STATIC osal_void hmac_set_ext_cap_twt_req (hmac_vap_stru *hmac_vap, mac_ext_cap_ie_stru *ext_cap_ie, osal_u8 *ie_len)
 
OSAL_STATIC osal_bool hmac_twt_sta_vap_add (osal_void *notify_data)
 
OSAL_STATIC osal_bool hmac_twt_sta_vap_del (osal_void *notify_data)
 
osal_u32 hmac_twt_sta_init (osal_void)
 
osal_void hmac_twt_sta_deinit (osal_void)
 

变量

sta_twt_para_strug_sta_twt_info [WLAN_VAP_MAX_NUM_PER_DEVICE_LIMIT] = {OSAL_NULL, OSAL_NULL, OSAL_NULL, OSAL_NULL}
 
hmac_netbuf_hook_stru twt_netbuf_hook
 

宏定义说明

◆ THIS_FILE_ID

#define THIS_FILE_ID   DIAG_FILE_ID_WIFI_HOST_HMAC_TWT_C

◆ THIS_MOD_ID

#define THIS_MOD_ID   DIAG_MOD_ID_WIFI_HOST

函数说明

◆ hmac_config_twt_status_sync()

OSAL_STATIC osal_s32 hmac_config_twt_status_sync ( hmac_vap_stru hmac_vap,
frw_msg msg 
)

◆ hmac_device_twt_custom_is_open()

WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OSAL_STATIC osal_u8 hmac_device_twt_custom_is_open ( osal_u8  vap_id)

◆ hmac_get_next_twt()

OSAL_STATIC osal_u64 hmac_get_next_twt ( hmac_vap_stru hmac_vap,
osal_u8 payload,
osal_u8  next_twt_subfd_size 
)

◆ hmac_get_sta_twt_info()

◆ hmac_is_twt_need_buff()

WIFI_TCM_TEXT OSAL_STATIC osal_bool hmac_is_twt_need_buff ( hmac_vap_stru hmac_vap)

◆ hmac_is_twt_processed_not_need_buff()

WIFI_TCM_TEXT OSAL_STATIC osal_bool hmac_is_twt_processed_not_need_buff ( const hmac_vap_stru hmac_vap)

◆ hmac_mgmt_encap_twt_teardown_req()

OSAL_STATIC osal_u32 hmac_mgmt_encap_twt_teardown_req ( hmac_vap_stru hmac_vap,
hmac_user_stru hmac_user,
osal_u8 data,
osal_u8  flow_id,
osal_u16 frame_len 
)

◆ hmac_mgmt_tx_twt_information_req()

OSAL_STATIC osal_u32 hmac_mgmt_tx_twt_information_req ( hmac_vap_stru hmac_vap,
const hmac_user_stru hmac_user,
const hmac_ctx_action_event_stru ctx_action_event,
oal_netbuf_stru netbuf 
)

◆ hmac_mgmt_tx_twt_setup_req()

OSAL_STATIC osal_u32 hmac_mgmt_tx_twt_setup_req ( hmac_vap_stru hmac_vap,
const hmac_user_stru hmac_user,
const hmac_ctx_action_event_stru ctx_action_event,
oal_netbuf_stru netbuf 
)

◆ hmac_mgmt_tx_twt_teardown()

OSAL_STATIC osal_u32 hmac_mgmt_tx_twt_teardown ( hmac_vap_stru hmac_vap,
hmac_user_stru hmac_user,
osal_u8  flow_id 
)

◆ hmac_mgmt_tx_twt_teardown_req()

OSAL_STATIC osal_u32 hmac_mgmt_tx_twt_teardown_req ( hmac_vap_stru hmac_vap,
const hmac_user_stru hmac_user,
const hmac_ctx_action_event_stru ctx_action_event,
oal_netbuf_stru netbuf 
)

◆ hmac_p2p_teardown_twt_session()

OSAL_STATIC osal_u32 hmac_p2p_teardown_twt_session ( hmac_device_stru hmac_device)

◆ hmac_process_update_twt()

OSAL_STATIC osal_void hmac_process_update_twt ( hmac_vap_stru hmac_vap,
hmac_user_stru hmac_user,
osal_u8 payload,
osal_u16  msg_len 
)

◆ hmac_set_ext_cap_twt_req()

OSAL_STATIC osal_void hmac_set_ext_cap_twt_req ( hmac_vap_stru hmac_vap,
mac_ext_cap_ie_stru ext_cap_ie,
osal_u8 ie_len 
)

◆ hmac_sta_rx_twt_association_frame_etc()

OSAL_STATIC osal_void hmac_sta_rx_twt_association_frame_etc ( hmac_vap_stru hmac_vap,
hmac_user_stru hmac_user,
osal_u8 payload 
)

◆ hmac_sta_rx_twt_information_frame()

OSAL_STATIC osal_u32 hmac_sta_rx_twt_information_frame ( hmac_vap_stru hmac_vap,
hmac_user_stru hmac_user,
osal_u8 payload_len 
)

◆ hmac_sta_rx_twt_negotiate()

OSAL_STATIC osal_u32 hmac_sta_rx_twt_negotiate ( hmac_vap_stru hmac_vap,
hmac_user_stru hmac_user,
mac_twt_ie_individual_stru twt_element,
mac_twt_update_source_enum_uint8  twt_update_source 
)

◆ hmac_sta_rx_twt_para_verify_etc()

OSAL_STATIC osal_u32 hmac_sta_rx_twt_para_verify_etc ( hmac_vap_stru hmac_vap,
hmac_user_stru hmac_user,
mac_individual_twt_setup_frame_stru setup_frame 
)

◆ hmac_sta_rx_twt_setup_frame()

OSAL_STATIC osal_u32 hmac_sta_rx_twt_setup_frame ( hmac_vap_stru hmac_vap,
hmac_user_stru hmac_user,
mac_individual_twt_setup_frame_stru setup_frame 
)

◆ hmac_sta_rx_twt_teardown_frame()

OSAL_STATIC osal_u32 hmac_sta_rx_twt_teardown_frame ( hmac_vap_stru hmac_vap,
hmac_user_stru hmac_user,
osal_u8 payload 
)

◆ hmac_sta_twt_save_parameters()

OSAL_STATIC osal_void hmac_sta_twt_save_parameters ( hmac_vap_stru hmac_vap,
mac_twt_ie_individual_stru twt_element 
)

◆ hmac_sta_twt_update_event_etc()

OSAL_STATIC osal_u32 hmac_sta_twt_update_event_etc ( hmac_vap_stru hmac_vap,
hmac_user_stru hmac_user,
mac_twt_update_source_enum_uint8  twt_update_source 
)

◆ hmac_sta_up_rx_action_s1g()

OSAL_STATIC osal_u32 hmac_sta_up_rx_action_s1g ( oal_netbuf_stru **  netbuf,
hmac_vap_stru hmac_vap 
)

◆ hmac_twt_deinit()

OSAL_STATIC osal_bool hmac_twt_deinit ( osal_void notify_data)

◆ hmac_twt_fill_ctx_and_cb()

OSAL_STATIC osal_u32 hmac_twt_fill_ctx_and_cb ( hmac_vap_stru hmac_vap,
oal_netbuf_stru twt_frame,
osal_u16  length,
osal_u32  sub_type,
osal_u32  action_sub_type 
)

◆ hmac_twt_get_req_bit()

OSAL_STATIC osal_u8 hmac_twt_get_req_bit ( osal_u8  vap_id)

◆ hmac_twt_handle_ps()

OSAL_STATIC osal_void hmac_twt_handle_ps ( hmac_vap_stru hmac_vap,
osal_u8  pause 
)

◆ hmac_twt_is_ps_pause()

WIFI_TCM_TEXT OSAL_STATIC osal_u8 hmac_twt_is_ps_pause ( const hmac_vap_stru hmac_vap)

◆ hmac_twt_is_session_enable()

WIFI_TCM_TEXT OSAL_STATIC osal_u8 hmac_twt_is_session_enable ( const hmac_vap_stru hmac_vap)

◆ hmac_twt_set_req_bit()

OSAL_STATIC osal_void hmac_twt_set_req_bit ( osal_u8  vap_id,
osal_u8  value 
)

◆ hmac_twt_set_resp_bit()

OSAL_STATIC osal_void hmac_twt_set_resp_bit ( osal_u8  vap_id,
osal_u8  value 
)

◆ hmac_twt_sta_deinit()

osal_void hmac_twt_sta_deinit ( osal_void  )

◆ hmac_twt_sta_init()

osal_u32 hmac_twt_sta_init ( osal_void  )

◆ hmac_twt_sta_vap_add()

OSAL_STATIC osal_bool hmac_twt_sta_vap_add ( osal_void notify_data)

◆ hmac_twt_sta_vap_del()

OSAL_STATIC osal_bool hmac_twt_sta_vap_del ( osal_void notify_data)

◆ hmac_twt_status_d2h_sync()

OSAL_STATIC osal_void hmac_twt_status_d2h_sync ( hmac_vap_stru hmac_vap,
mac_d2hd_twt_cfg_stru twt_cfg 
)

◆ hmac_twt_tx_action()

OSAL_STATIC osal_u32 hmac_twt_tx_action ( hmac_vap_stru hmac_vap,
const hmac_user_stru hmac_user,
const hmac_ctx_action_event_stru ctx_action_event,
oal_netbuf_stru netbuf,
mac_tx_ctl_stru tx_ctl 
)

◆ hmac_twt_update_d2h_sync()

OSAL_STATIC osal_s32 hmac_twt_update_d2h_sync ( hmac_vap_stru hmac_vap,
mac_d2hd_twt_sync_info_stru twt_cfg 
)

◆ mac_device_find_up_sta_wlan_etc()

OSAL_STATIC osal_u32 mac_device_find_up_sta_wlan_etc ( hmac_device_stru hmac_device,
hmac_vap_stru **  hmac_vap 
)

变量说明

◆ g_sta_twt_info

◆ twt_netbuf_hook

hmac_netbuf_hook_stru twt_netbuf_hook
初始值:
= {
.priority = HMAC_HOOK_PRI_LOW,
}
@ HMAC_HOOK_PRI_LOW
Definition hmac_hook.h:41
@ HMAC_FRAME_MGMT_RX_EVENT_FEATURE
Definition hmac_hook.h:29
OSAL_STATIC osal_u32 hmac_sta_up_rx_action_s1g(oal_netbuf_stru **netbuf, hmac_vap_stru *hmac_vap)
Definition hmac_twt.c:1797