WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hmac_twt.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2012-2021. All rights reserved.
3 * Description: header file
4 * Create: 2012年11月8日
5 */
6
7#ifndef __HMAC_TWT_H__
8#define __HMAC_TWT_H__
9
10#include "dmac_ext_if_hcm.h"
11#include "hmac_fsm.h"
12#include "msg_twt_rom.h"
13
14#ifdef __cplusplus
15#if __cplusplus
16 extern "C" {
17#endif
18#endif
19
20#undef THIS_FILE_ID
21#define THIS_FILE_ID OAM_FILE_ID_HMAC_TWT_H
22
23/* 1 其他头文件包含 */
24/* 2 宏定义 */
25#define HMAC_TWT_P2P_RUNNING_VAP_NUM 3
26#define HMAC_TWT_CATEGORY 0
27#define HMAC_TWT_ACTION 1
28#define HMAC_TWT_FLOW_ID 2
29#define HMAC_TWT_BITS_OFFSET 32
30#define TWT_RX_PARA_NUM 11
31#define WAKE_DURATION_UNIT0 256
32#define WAKE_DURATION_UNIT1 1024
33#define MAC_XCAPS_EX_TWT_LEN 10
34
35/* 3 枚举定义 */
36/* 4 全局变量声明 */
37/* 5 消息头定义 */
38/* 6 消息定义 */
39/* 7 STRUCT定义 */
45
46typedef struct {
47 osal_u8 mac_addr[WLAN_MAC_ADDR_LEN]; /* 用户的MAC ADDR */
49 osal_u8 resv[1]; /* 1 byte保留字段 */
51
52typedef struct {
53 osal_u8 mac_addr[WLAN_MAC_ADDR_LEN]; /* 用户的MAC ADDR */
54 osal_u8 resv[2]; /* 2 byte保留字段 */
57
58typedef struct {
59 osal_u8 mac_addr[WLAN_MAC_ADDR_LEN]; /* 用户的MAC ADDR */
60 osal_u8 twt_flow_id; /* flow ID */
63
69
70/* 8 UNION定义 */
71
72/* 3 枚举定义 */
78
87
94
95/* need same as device define */
102
103/* 10 函数声明 */
104
108typedef osal_u32 (*hmac_twt_tx_action_cb)(hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user,
109 const hmac_ctx_action_event_stru *ctx_action_event, oal_netbuf_stru *netbuf, const mac_tx_ctl_stru *tx_ctl);
112 osal_u16 msg_len);
115 mac_ext_cap_ie_stru *ext_cap_ie, osal_u8 *ie_len);
116
117static osal_u32 hmac_twt_sta_init_weakref(osal_void) __attribute__ ((weakref("hmac_twt_sta_init"), used));
118static osal_void hmac_twt_sta_deinit_weakref(osal_void) __attribute__ ((weakref("hmac_twt_sta_deinit"), used));
119
120#ifdef __cplusplus
121#if __cplusplus
122 }
123#endif
124#endif
125
126#endif /* end of hmac_twt.h */
127
osal_u8(* hmac_twt_is_session_enable_cb)(const hmac_vap_stru *hmac_vap)
Definition hmac_twt.h:105
osal_u32(* hmac_p2p_teardown_twt_session_cb)(hmac_device_stru *hmac_device)
Definition hmac_twt.h:110
hmac_twt_status_enum
Definition hmac_twt.h:73
@ TWT_SESSION_ON
Definition hmac_twt.h:75
@ TWT_SESSION_SUSPEND
Definition hmac_twt.h:76
@ TWT_SESSION_OFF
Definition hmac_twt.h:74
osal_bool(* hmac_is_twt_processed_not_need_buff_cb)(const hmac_vap_stru *hmac_vap)
Definition hmac_twt.h:106
osal_u32 hmac_d2h_twt_sync_type_enum_u32
Definition hmac_twt.h:101
hmac_d2hd_twt_sync_type_enum
Definition hmac_twt.h:96
@ TWT_PS_HANDLE_CFG
Definition hmac_twt.h:99
@ TWT_UPDATE_SESSION_CFG
Definition hmac_twt.h:97
@ TWT_UPDATE_PS_PAUSE_CFG
Definition hmac_twt.h:98
osal_void(* hmac_process_update_twt_cb)(hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, osal_u8 *payload, osal_u16 msg_len)
Definition hmac_twt.h:111
hmac_next_twt_subfield_size_enum
Definition hmac_twt.h:79
@ HMAC_NEXT_TWT_SUBFIELD_SIZE_BITS_64
Definition hmac_twt.h:83
@ HMAC_NEXT_TWT_SUBFIELD_SIZE_BITS_32
Definition hmac_twt.h:81
@ HMAC_NEXT_TWT_SUBFIELD_SIZE_BITS_0
Definition hmac_twt.h:80
@ HMAC_NEXT_TWT_SUBFIELD_SIZE_BITS_48
Definition hmac_twt.h:82
@ HMAC_NEXT_TWT_SUBFIELD_SIZE_MAX
Definition hmac_twt.h:85
hmac_twt_event_type_enum
Definition hmac_twt.h:88
@ HMAC_TWT_START_EVENT
Definition hmac_twt.h:89
@ HMAC_TWT_END_EVENT
Definition hmac_twt.h:90
@ HMAC_TWT_EVENT_TYPE_MAX
Definition hmac_twt.h:92
static osal_u32 used
Definition hmac_twt.h:117
osal_u8(* hmac_twt_get_req_bit_cb)(osal_u8 vap_id)
Definition hmac_twt.h:113
osal_u32(* hmac_twt_tx_action_cb)(hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user, const hmac_ctx_action_event_stru *ctx_action_event, oal_netbuf_stru *netbuf, const mac_tx_ctl_stru *tx_ctl)
Definition hmac_twt.h:108
osal_bool(* hmac_is_twt_need_buff_cb)(hmac_vap_stru *hmac_vap)
Definition hmac_twt.h:107
osal_void(* hmac_set_ext_cap_twt_req_cb)(hmac_vap_stru *hmac_vap, mac_ext_cap_ie_stru *ext_cap_ie, osal_u8 *ie_len)
Definition hmac_twt.h:114
#define WLAN_MAC_ADDR_LEN
Definition mac_addr.c:28
osal_u32 ie_len
Definition oal_net.h:0
unsigned char osal_u8
Definition osal_types.h:11
osal_u8 osal_bool
Definition osal_types.h:27
void osal_void
Definition osal_types.h:29
unsigned int osal_u32
Definition osal_types.h:13
unsigned short osal_u16
Definition osal_types.h:12
Log message information header.
Definition log_oam_logger.h:564
Definition dmac_ext_if_hcm.h:431
Definition mac_device_ext.h:856
Definition mac_user_ext.h:519
Definition mac_vap_ext.h:2019
Definition wlan_resource_common_rom.h:147
mac_twt_information_field_stru twt_information_filed
Definition hmac_twt.h:48
Definition hmac_twt.h:52
mac_cfg_twt_basic_param_stru twt_basic_param
Definition hmac_twt.h:55
Definition wlan_resource_common_rom.h:166
Definition hmac_twt.h:58
osal_u8 twt_flow_id
Definition hmac_twt.h:60
osal_u8 resv
Definition hmac_twt.h:61
Definition hmac_twt.h:40
osal_u8 twt_requester_support
Definition hmac_twt.h:42
osal_u8 twt_responder_support
Definition hmac_twt.h:41
osal_u8 resv
Definition hmac_twt.h:43
Definition mac_frame_common_rom.h:661
Definition mac_frame_common_rom.h:776
Definition dmac_ext_if_device_rom.h:98
Definition oal_skbuff.h:82
Definition hmac_twt.h:64
mac_device_twt_custom_stru sta_twt_custom_para
Definition hmac_twt.h:66
mac_cfg_twt_stru sta_cfg_twt_para
Definition hmac_twt.h:65