WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hmac_beacon.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2020-2020. All rights reserved.
3 * Description: hmac_beacon_rom.c 的头文件
4 * Date: 2020-07-07
5 */
6
7#ifndef HMAC_BEACON_H
8#define HMAC_BEACON_H
9
10/*****************************************************************************
11 1 其他头文件包含
12*****************************************************************************/
13#include "hmac_vap.h"
14#include "mac_resource_ext.h"
15#include "mac_vap_ext.h"
16
17#ifdef __cplusplus
18#if __cplusplus
19extern "C" {
20#endif
21#endif
22
23/*****************************************************************************
24 2 宏定义
25*****************************************************************************/
26#define HMAC_WMM_QOS_PARAMS_HDR_LEN 8
27#define HMAC_MAX_WAIT_BEACON_TIMES 5
28
29#define WLAN_PROTECTION_NON_ERP_AGING_THRESHOLD (60) /* ERP 老化计数最大值 */
30#define WLAN_PROTECTION_NON_HT_AGING_THRESHOLD (60) /* HT 老化计数最大值 */
31
32/* 接收或者发送成功门限增值 */
33#define LINKLOSS_THRESHOLD_INCR 1
34/* 用于计算linkloss门限的最大beacon周期 */
35#define LINKLOSS_THRESHOLD_BEACON_MAX_INTVAL 400
36
37#define LINKLOSS_PROBE_REQ_MIN_CNT 10 /* linkloss发送probe req最小阈值 */
38#define LINKLOSS_PORBE_REQ_MAX_CNT 60 /* linkloss发送probe req最大阈值 */
39#define LINKLOSS_PROBE_REQ_MIN_MOD 3 /* 每3次tbtt中断发送一次probe req */
40#define LINKLOSS_PROBE_REQ_MAX_MOD 10 /* 每10次tbtt中断发送一次probe req */
41
42#define RX_DATA_RATE (50000) /* 50M */
43#define STA_TBTT_INTERVAL_TH 5 // STA tbtt执行间隔阈值
44/*****************************************************************************
45 4 全局变量声明
46*****************************************************************************/
47
48/*****************************************************************************
49 7 STRUCT定义
50*****************************************************************************/
51/* beacon帧需要更新的信息元素偏移量 */
65
66/*****************************************************************************
67 10 函数声明
68*****************************************************************************/
87 oal_netbuf_stru *netbuf);
94#ifdef __cplusplus
95#if __cplusplus
96}
97#endif
98#endif
99
100#endif /* end of hmac_beacon.h */
osal_void hmac_ap_up_rx_obss_beacon(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf)
osal_void hmac_sta_post_bw_verify_switch(const hmac_vap_stru *hmac_vap, hmac_sta_bw_switch_type_enum_enum_uint8 verify_reslt)
osal_s32 hmac_config_set_linkloss_params(hmac_vap_stru *hmac_vap, frw_msg *msg)
osal_u32 hmac_beacon_free(hmac_vap_stru *hmac_vap)
osal_void hmac_vap_linkloss_init(hmac_vap_stru *hmac_vap)
osal_s32 hmac_tbtt_event_handler(hmac_vap_stru *hmac_vap, frw_msg *msg)
osal_u32 hmac_protection_update_mib_ap(hmac_vap_stru *hmac_vap)
osal_void hmac_sta_stop_tbtt_timer(hmac_vap_stru *hmac_vap)
osal_void hmac_vap_linkloss_channel_clean(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf)
osal_u32 hmac_set_protection_mode(hmac_vap_stru *hmac_vap, const hmac_user_stru *hmac_user, wlan_prot_mode_enum_uint8 prot_mode)
osal_void hmac_vap_linkloss_clean(hmac_vap_stru *hmac_vap)
osal_void hmac_protection_stop_timer(hmac_vap_stru *hmac_vap)
osal_void hmac_sta_beacon_offload_test(hmac_vap_stru *hmac_vap, osal_u8 *host_sleep)
osal_void hmac_sta_align_tbtt_timer(hmac_vap_stru *hmac_vap, oal_bool_enum_uint8 need_addition)
osal_u32 hmac_sta_set_bandwith_handler(hmac_vap_stru *hmac_vap, wlan_channel_bandwidth_enum_uint8 sta_new_bandwidth)
osal_void hmac_ap_wait_start_rx_obss_beacon(hmac_device_stru *hmac_device, const hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf)
osal_u32 hmac_beacon_alloc(hmac_vap_stru *hmac_vap)
osal_u32 hmac_sta_up_rx_beacon_check(hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, osal_u8 *go_on)
osal_u32 hmac_protection_del_user(hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user)
osal_u32 hmac_tbtt_event_sta(osal_void *arg)
osal_u32 hmac_irq_tbtt_ap_isr(osal_u8 mac_vap_id)
osal_u16 hmac_encap_beacon(hmac_vap_stru *hmac_vap, osal_u8 *beacon_buffer)
osal_u8 hmac_sta_bw_switch_type_enum_enum_uint8
Definition hmac_vap.h:209
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
unsigned short osal_u16
Definition osal_types.h:12
Definition frw_msg_rom.h:74
Definition hmac_beacon.h:52
osal_u16 bss_load_offset
Definition hmac_beacon.h:54
osal_u16 wmm_offset
Definition hmac_beacon.h:55
osal_u16 cap_offset
Definition hmac_beacon.h:53
osal_u16 ht_cap_offset
Definition hmac_beacon.h:56
osal_u16 ht_operation_offset
Definition hmac_beacon.h:57
osal_u16 tim_offset
Definition hmac_beacon.h:61
osal_u16 pwr_constrain_offset
Definition hmac_beacon.h:59
osal_u8 wmm_update_flag
Definition hmac_beacon.h:62
osal_u16 tpc_report_offset
Definition hmac_beacon.h:60
osal_u16 erp_offset
Definition hmac_beacon.h:58
Definition mac_device_ext.h:856
Definition mac_user_ext.h:519
Definition mac_vap_ext.h:2019
Definition oal_skbuff.h:82
osal_u8 wlan_channel_bandwidth_enum_uint8
Definition wlan_types_base_rom.h:237
osal_u8 wlan_prot_mode_enum_uint8
Definition wlan_types_common.h:47