WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hmac_device.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2015-2023. All rights reserved.
3 * 文 件 名 : hmac_device.h
4 * 生成日期 : 2015年1月31日
5 * 功能描述 : hmac_device.c 的头文件,包括hmac device结构的定义
6 */
7
8#ifndef __HMAC_DEVICE_H__
9#define __HMAC_DEVICE_H__
10
11/*****************************************************************************
12 1 其他头文件包含
13*****************************************************************************/
14#include "wlan_spec.h"
15#include "dmac_ext_if_hcm.h"
16#include "mac_vap_ext.h"
17#ifdef _PRE_WLAN_TCP_OPT
18#include "hmac_tcp_opt_struc.h"
19#include "hcc_host_if.h"
20#endif
21
22#ifdef __cplusplus
23#if __cplusplus
24extern "C" {
25#endif
26#endif
27
28#undef THIS_FILE_ID
29#define THIS_FILE_ID OAM_FILE_ID_HMAC_DEVICE_H
30/*****************************************************************************
31 2 宏定义
32*****************************************************************************/
33#define MAX_MAC_ERR_IN_TBTT 5 /* 每一个tbtt间隙允许出现的最大错误数 */
34
35// 新用户关联rssi门限为a,已关联用户被剔除rssi门限为b,a = b+HMAC_RSSI_LIMIT_DELTA; 配置命令传进来的为b, delta默认为5,可修改
36#define HMAC_RSSI_LIMIT_DELTA 5
37
38#ifdef _PRE_WLAN_TCP_OPT
39#define HCC_TRANS_THREAD_POLICY SCHED_FIFO
40#define HCC_TRANS_THERAD_PRIORITY (10)
41#define HCC_TRANS_THERAD_NICE (-10)
42#endif
43
44#define is_equal_rates(rate1, rate2) (((rate1) & 0x7f) == ((rate2) & 0x7f))
45
46typedef enum {
47 HMAC_ACS_TYPE_INIT = 0, /* 初始自动信道选择 */
48 HMAC_ACS_TYPE_CMD = 1, /* 命令触发的自动信道选择 */
49 HMAC_ACS_TYPE_FREE = 2, /* 空闲的自动信道选择 */
52/*****************************************************************************
53 4 全局变量声明
54*****************************************************************************/
55
56
57/*****************************************************************************
58 5 消息头定义
59*****************************************************************************/
60
61
62/*****************************************************************************
63 6 消息定义
64*****************************************************************************/
65
66
67/*****************************************************************************
68 7 STRUCT定义
69*****************************************************************************/
70
71/* 存储每个扫描到的bss信息 */
72typedef struct {
73 struct osal_list_head dlist_head; /* 链表指针 */
74 mac_bss_dscr_stru bss_dscr_info; /* bss描述信息,包括上报的管理帧 */
76
77/*****************************************************************************
78 8 UNION定义
79*****************************************************************************/
80
81
82/*****************************************************************************
83 9 OTHERS定义
84*****************************************************************************/
86
88
89static INLINE__ mac_fcs_mgr_stru *hmac_fcs_get_mgr_stru(hmac_device_stru *hmac_device)
90{
91 return &hmac_device->fcs_mgr;
92}
93
94/*****************************************************************************
95 10.1 公共结构体初始化、删除
96*****************************************************************************/
99/*****************************************************************************
100 10.2 公共成员访问部分
101*****************************************************************************/
103 const hal_to_dmac_device_stru *ori_hal_dev);
106#ifdef __cplusplus
107#if __cplusplus
108}
109#endif
110#endif
111
112#endif /* end of mac_device.h */
hmac_acs_type_enum
Definition hmac_device.h:46
@ HMAC_ACS_TYPE_FREE
Definition hmac_device.h:49
@ HMAC_ACS_TYPE_CMD
Definition hmac_device.h:48
@ HMAC_ACS_TYPE_INIT
Definition hmac_device.h:47
osal_s32 hmac_config_reset_mac_phy(hmac_vap_stru *hmac_vap, frw_msg *msg)
osal_u32 hmac_board_init_etc(mac_board_stru *board)
hal_to_dmac_device_stru * hmac_device_get_another_h2d_dev(const hmac_device_stru *hmac_device, const hal_to_dmac_device_stru *ori_hal_dev)
osal_u32 hmac_board_init(osal_void)
osal_u32 hmac_board_exit_etc(mac_board_stru *board)
osal_u8 hmac_acs_type_enum_uint8
Definition hmac_device.h:51
osal_void hmac_board_exit(osal_void)
osal_u8 hmac_device_check_fake_queues_empty(osal_void)
#define INLINE__
Definition osal_list.h:25
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_device_ext.h:856
mac_fcs_mgr_stru fcs_mgr
Definition mac_device_ext.h:954
Definition hmac_device.h:72
mac_bss_dscr_stru bss_dscr_info
Definition hmac_device.h:74
Definition mac_vap_ext.h:2019
Definition mac_device_ext.h:330
Definition mac_device_ext.h:596
Definition osal_list.h:39
Definition hal_ops_common_rom.h:529
Definition wlan_resource_common_rom.h:277