WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hmac_smps.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2014-2023. All rights reserved.
3 * 文 件 名 : hmac_smps.h
4 * 生成日期 : 2014年4月17日
5 * 功能描述 : hmac_smps.c 的头文件
6 */
7
8#ifndef __HMAC_SMPS_H__
9#define __HMAC_SMPS_H__
10
11#ifdef _PRE_WLAN_FEATURE_SMPS
12
13/*****************************************************************************
14 1 其他头文件包含
15*****************************************************************************/
16#include "oal_ext_if.h"
17#include "hmac_main.h"
18#include "oam_ext_if.h"
19#include "mac_resource_ext.h"
20#include "dmac_ext_if_hcm.h"
21#include "mac_device_ext.h"
22#include "mac_vap_ext.h"
23#include "hmac_vap.h"
24#include "mac_user_ext.h"
25
26#ifdef __cplusplus
27#if __cplusplus
28extern "C" {
29#endif
30#endif
31
32#undef THIS_FILE_ID
33#define THIS_FILE_ID OAM_FILE_ID_HMAC_SMPS_H
34/*****************************************************************************
35 2 宏定义
36*****************************************************************************/
37
38
39/*****************************************************************************
40 3 枚举定义
41*****************************************************************************/
42
43
44/*****************************************************************************
45 4 全局变量声明
46*****************************************************************************/
47
48
49/*****************************************************************************
50 5 消息头定义
51*****************************************************************************/
52
53
54/*****************************************************************************
55 6 消息定义
56*****************************************************************************/
57
58
59/*****************************************************************************
60 7 STRUCT定义
61*****************************************************************************/
62
63
64/*****************************************************************************
65 8 UNION定义
66*****************************************************************************/
67
68
69/*****************************************************************************
70 9 OTHERS定义
71*****************************************************************************/
72
73
74/*****************************************************************************
75 10 函数声明
76*****************************************************************************/
77extern osal_u32 hmac_smps_update_user_status(hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user);
78
79osal_u8 hmac_smps_get_hal_mode(osal_u8 dev_smps_mode);
80
81osal_void hmac_smps_send_action(hmac_vap_stru *hmac_vap, wlan_mib_mimo_power_save_enum_uint8 smps_mode,
82 oal_bool_enum_uint8 bool_code);
83
84osal_u32 hmac_check_smps_field(hmac_vap_stru *hmac_vap, osal_u8 *payload, osal_u32 msg_len,
85 hmac_user_stru *hmac_user);
86
87osal_u32 hmac_mgmt_rx_smps_frame(hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, const osal_u8 *frame_payload);
88
89extern osal_s32 hmac_config_set_smps_mode(hmac_vap_stru *hmac_vap, frw_msg *msg);
90
91osal_u8 hmac_user_get_smps_mode(const hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user);
92
93/*****************************************************************************
94 功能描述 : 填写SM Power Save字段
95*****************************************************************************/
96static inline osal_u8 hmac_calc_smps_field(osal_u8 smps)
97{
100 } else if (smps == WLAN_MIB_MIMO_POWER_SAVE_STATIC) {
102 }
103
104 return MAC_SMPS_MIMO_MODE;
105}
106#ifdef __cplusplus
107#if __cplusplus
108}
109#endif
110#endif
111
112#endif /* end of _PRE_WLAN_FEATURE_SMPS */
113
114#endif /* end of hmac_smps.h */
@ MAC_SMPS_DYNAMIC_MODE
Definition mac_frame.h:539
@ MAC_SMPS_MIMO_MODE
Definition mac_frame.h:540
@ MAC_SMPS_STATIC_MODE
Definition mac_frame.h:538
osal_u8 oal_bool_enum_uint8
Definition oal_types_device_rom.h:45
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
Definition frw_msg_rom.h:74
Definition mac_user_ext.h:519
Definition mac_vap_ext.h:2019
osal_u8 wlan_mib_mimo_power_save_enum_uint8
Definition wlan_mib_type.h:248
@ WLAN_MIB_MIMO_POWER_SAVE_STATIC
Definition wlan_mib_type.h:242
@ WLAN_MIB_MIMO_POWER_SAVE_DYNAMIC
Definition wlan_mib_type.h:243