WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hmac_wow.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2023. All rights reserved.
3 * Description: WOW hmac function.
4 * Create: 2021-04-15
5 */
6
7#ifndef __HMAC_WOW_H__
8#define __HMAC_WOW_H__
9
10/*****************************************************************************
11 1 其他头文件包含
12*****************************************************************************/
13#include "oal_types.h"
14#include "wlan_types_common.h"
15#include "mac_vap_ext.h"
16#include "frw_hmac.h"
17#ifdef _PRE_WLAN_FEATURE_DYNAMIC_OFFLOAD
18#include "hmac_arp_offload.h"
19#include "hmac_dhcp_offload.h"
20#include "hmac_rekey_offload.h"
21#endif
22#include "msg_wow_rom.h"
23
24#ifdef __cplusplus
25#if __cplusplus
26extern "C" {
27#endif
28#endif
29
30#undef THIS_FILE_ID
31#define THIS_FILE_ID OAM_FILE_ID_HMAC_WOW_H
32/*****************************************************************************
33 2 宏定义
34*****************************************************************************/
35#define WOW_MAX_SIZE (32 * 1024)
36#define WOW_MAX_BLOCK_NUM 32
37#define WOW_BLOCK_SIZE 1024
38#define WOW_SEND_RETRY 3
39
40/*****************************************************************************
41 3 枚举定义
42*****************************************************************************/
50
57
64
65/*****************************************************************************
66 7 STRUCT定义
67*****************************************************************************/
74
81
82typedef void (*pm_wow_wkup_cb)(void);
83
84/*****************************************************************************
85 10 函数声明
86*****************************************************************************/
87
88static osal_u32 hmac_wow_init_weakref(osal_void) __attribute__ ((weakref("hmac_wow_init"), used));
89static osal_void hmac_wow_deinit_weakref(osal_void) __attribute__ ((weakref("hmac_wow_deinit"), used));
90#ifdef _PRE_WLAN_FEATURE_DYNAMIC_OFFLOAD
92#endif
94#ifdef __cplusplus
95#if __cplusplus
96}
97#endif
98#endif
99
100#endif /* __HMAC_WOW_H__ */
mac_wow_pattern_param_option_enum
Definition hmac_wow.h:51
@ MAC_WOW_PATTERN_PARAM_OPTION_ADD
Definition hmac_wow.h:52
@ MAC_WOW_PATTERN_PARAM_OPTION_CLR
Definition hmac_wow.h:54
@ MAC_WOW_PATTERN_PARAM_OPTION_BUTT
Definition hmac_wow.h:55
@ MAC_WOW_PATTERN_PARAM_OPTION_DEL
Definition hmac_wow.h:53
void(* pm_wow_wkup_cb)(void)
Definition hmac_wow.h:82
osal_u8 hmac_host_sleep_state_enum_uint8
Definition hmac_wow.h:49
mac_wow_autoload_msg_enum
Definition hmac_wow.h:58
@ MAC_WOW_NOTIFY_MEM_RSV
Definition hmac_wow.h:59
@ MAC_WOW_NOTIFY_MEM_RESTORE
Definition hmac_wow.h:60
@ MAC_WOW_NOTIFY_LOAD
Definition hmac_wow.h:61
@ MAC_WOW_NOTIFY_BUTT
Definition hmac_wow.h:62
static osal_u32 used
Definition hmac_wow.h:88
hmac_host_sleep_state_enum
Definition hmac_wow.h:43
@ HMAC_HOST_STATE_WAKEUP
Definition hmac_wow.h:45
@ HMAC_HOST_STATE_SLEPT
Definition hmac_wow.h:46
@ HMAC_HOST_STATE_BUTT
Definition hmac_wow.h:47
@ HMAC_HOST_STATE_INVALID
Definition hmac_wow.h:44
osal_s32 hmac_config_wow_activate_switch(hmac_vap_stru *hmac_vap, osal_u32 wow_en)
osal_void pm_wifi_wkup_cb_host_register(pm_wow_wkup_cb cb)
#define WOW_NETPATTERN_MAX_LEN
Definition msg_wow_rom.h:19
int osal_s32
Definition osal_types.h:19
unsigned char osal_u8
Definition osal_types.h:11
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 hmac_wow.h:68
osal_u16 pattern_option
Definition hmac_wow.h:69
osal_u16 pattern_index
Definition hmac_wow.h:70
osal_u32 pattern_len
Definition hmac_wow.h:71
Definition mac_vap_ext.h:2019
Definition hmac_wow.h:75
osal_u8 wakeup_reason
Definition hmac_wow.h:77
hmac_host_sleep_state_enum_uint8 host_sleep_state
Definition hmac_wow.h:76
mac_wow_cfg_stu wow_cfg
Definition hmac_wow.h:79
Definition msg_wow_rom.h:55