WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hmac_wapi.c 文件参考
#include "hmac_wapi.h"
#include "oal_ext_if.h"
#include "oal_types.h"
#include "mac_frame.h"
#include "hmac_wapi_sms4.h"
#include "hmac_wapi_wpi.h"
#include "mac_data.h"
#include "hmac_feature_dft.h"
#include "hmac_tx_data.h"
#include "oam_struct.h"
#include "frw_util_notifier.h"
#include "hmac_feature_interface.h"
hmac_wapi.c 的引用(Include)关系图:

宏定义

#define THIS_FILE_ID   DIAG_FILE_ID_WIFI_HOST_HMAC_WAPI_C
 
#define THIS_MOD_ID   DIAG_MOD_ID_WIFI_HOST
 

函数

WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OAL_STATIC hmac_wapi_struhmac_wapi_get_user_info (osal_u16 user_id)
 
OAL_STATIC oal_bool_enum_uint8 hmac_wapi_is_qos_etc (const mac_ieee80211_frame_stru *pst_mac_hdr)
 
OAL_STATIC osal_u32 hmac_wapi_calc_mic_data_etc (mac_ieee80211_frame_stru *pst_mac_hdr, osal_u8 mac_hdr_len, osal_u8 keyidx, osal_u8 *payload, osal_u16 pdu_len, osal_u8 *mic, osal_u16 mic_len)
 
OAL_STATIC osal_u8hmac_wapi_mic_alloc_etc (osal_u8 is_qos, osal_u16 pdu_len, osal_u16 *pus_mic_len)
 
OAL_STATIC osal_u32 hmac_wapi_mic_free_etc (osal_u8 *mic)
 
OAL_STATIC osal_u8 hmac_wapi_is_keyidx_valid_etc (hmac_wapi_stru *wapi, osal_u8 keyidx_rx)
 
OAL_STATIC oal_bool_enum_uint8 hmac_wapi_is_pn_odd_ucast_etc (const osal_u8 *pn)
 
OAL_STATIC osal_u8 hmac_wapi_is_pn_odd_bcast_etc (const osal_u8 *pn)
 
OAL_STATIC osal_u8 hmac_wapi_pn_update_etc (osal_u8 *pn, osal_u8 inc)
 
OAL_STATIC oal_netbuf_struhmac_wapi_netbuff_tx_handle_etc (hmac_wapi_stru *wapi, oal_netbuf_stru *buf)
 
OAL_STATIC oal_netbuf_struhmac_wapi_netbuff_rx_handle_etc (hmac_wapi_stru *wapi, oal_netbuf_stru *buf)
 
OAL_STATIC osal_u32 hmac_wapi_add_key_etc (hmac_wapi_stru *wapi, osal_u8 key_index, osal_u8 *key)
 
OAL_STATIC osal_u8 hmac_wapi_is_wpihdr_valid_etc (hmac_wapi_stru *wapi, osal_u8 *wapi_hdr)
 
OAL_STATIC osal_u32 hmac_wapi_decrypt_etc (hmac_wapi_stru *wapi, oal_netbuf_stru *pst_netbuf)
 
OAL_STATIC osal_u32 hmac_wapi_encrypt_etc (hmac_wapi_stru *wapi, oal_netbuf_stru *netbuf)
 
OAL_STATIC osal_u32 hmac_wapi_reset_port_etc (hmac_wapi_stru *wapi)
 
OAL_STATIC osal_void hmac_wapi_deinit_etc (osal_u16 user_idx)
 
OAL_STATIC osal_bool hmac_wapi_del_user_exit (osal_void *notify_data)
 
OAL_STATIC osal_u32 hmac_wapi_init_etc (osal_u16 user_idx, osal_u8 pairwise)
 
WIFI_TCM_TEXT OAL_STATIC hmac_wapi_struhmac_user_get_wapi_ptr_etc (hmac_vap_stru *hmac_vap, oal_bool_enum_uint8 pairwise, osal_u16 pairwise_idx)
 
OAL_STATIC osal_bool hmac_wapi_add_user_init (osal_void *notify_data)
 
OAL_STATIC oal_netbuf_struhmac_wapi_rx_netbuf (hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, hmac_wapi_stru *wapi, hmac_user_stru *hmac_user, mac_rx_ctl_stru **rx_ctrl)
 
WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OAL_STATIC oal_netbuf_struhmac_rx_lan_frame_classify_wapi (hmac_vap_stru *hmac_vap, oal_netbuf_stru *netbuf, const mac_ieee80211_frame_stru *frame_hdr, hmac_user_stru *hmac_user, mac_rx_ctl_stru **rx_ctrl)
 
WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OAL_STATIC osal_u32 hmac_wapi_tx_classify_special (hmac_vap_stru *hmac_vap, osal_u16 type, mac_tx_ctl_stru *tx_ctl, osal_u8 *tid)
 
WIFI_TCM_TEXT OAL_STATIC osal_u32 hmac_tx_lan_to_wlan_wapi (hmac_vap_stru *hmac_vap, oal_netbuf_stru **netbuf)
 
OAL_STATIC osal_u32 hmac_config_wapi_add_key_etc (hmac_vap_stru *hmac_vap, mac_addkey_param_stru *payload_addkey_param)
 
OAL_STATIC osal_u32 hmac_wapi_add_key_and_sync_etc (hmac_vap_stru *hmac_vap, osal_u32 type, mac_addkey_param_stru *payload_addkey_param)
 
OAL_STATIC osal_u8 hmac_wapi_connected_etc (osal_u8 device_id)
 
OAL_STATIC osal_u32 hmac_11i_reset_wapi (hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user)
 
OAL_STATIC osal_void hmac_wapi_update_legcy_only (const mac_bss_dscr_stru *bss_dscr, oal_bool_enum_uint8 *legcy_only)
 
WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OAL_STATIC osal_bool hmac_wapi_ether_type_check (osal_u16 ether_type)
 
OAL_STATIC osal_bool hmac_wapi_disable (osal_u8 wapi)
 
WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OAL_STATIC osal_bool hmac_wapi_get_ether_type (osal_u16 ether_type)
 
OAL_STATIC osal_u32 hmac_wapi_connect_check_bss_dscr (mac_bss_dscr_stru *bss_dscr, hmac_vap_stru *hmac_vap, mac_conn_param_stru *connect_param)
 
OAL_STATIC osal_s32 hmac_wapi_update_roam (hmac_vap_stru *hmac_vap, osal_u8 *roming_now)
 
OAL_STATIC osal_u32 hmac_wapi_user_add_check (osal_u8 device_id)
 
OAL_STATIC osal_u8 hmac_wapi_update_connect_param (osal_u32 wpa_versions)
 
osal_u32 hmac_wapi_init (osal_void)
 
osal_void hmac_wapi_deinit (osal_void)
 

变量

OAL_CONST osal_u8 g_auc_wapi_oui_etc [3] = {0x00, 0x14, 0x72}
 
OAL_STATIC hmac_wapi_strug_wapi_userinfo [WLAN_USER_MAX_USER_LIMIT]
 

宏定义说明

◆ THIS_FILE_ID

#define THIS_FILE_ID   DIAG_FILE_ID_WIFI_HOST_HMAC_WAPI_C

◆ THIS_MOD_ID

#define THIS_MOD_ID   DIAG_MOD_ID_WIFI_HOST

函数说明

◆ hmac_11i_reset_wapi()

OAL_STATIC osal_u32 hmac_11i_reset_wapi ( hmac_vap_stru hmac_vap,
hmac_user_stru hmac_user 
)

◆ hmac_config_wapi_add_key_etc()

OAL_STATIC osal_u32 hmac_config_wapi_add_key_etc ( hmac_vap_stru hmac_vap,
mac_addkey_param_stru payload_addkey_param 
)

◆ hmac_rx_lan_frame_classify_wapi()

WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OAL_STATIC oal_netbuf_stru * hmac_rx_lan_frame_classify_wapi ( hmac_vap_stru hmac_vap,
oal_netbuf_stru netbuf,
const mac_ieee80211_frame_stru frame_hdr,
hmac_user_stru hmac_user,
mac_rx_ctl_stru **  rx_ctrl 
)

◆ hmac_tx_lan_to_wlan_wapi()

WIFI_TCM_TEXT OAL_STATIC osal_u32 hmac_tx_lan_to_wlan_wapi ( hmac_vap_stru hmac_vap,
oal_netbuf_stru **  netbuf 
)

◆ hmac_user_get_wapi_ptr_etc()

WIFI_TCM_TEXT OAL_STATIC hmac_wapi_stru * hmac_user_get_wapi_ptr_etc ( hmac_vap_stru hmac_vap,
oal_bool_enum_uint8  pairwise,
osal_u16  pairwise_idx 
)

◆ hmac_wapi_add_key_and_sync_etc()

OAL_STATIC osal_u32 hmac_wapi_add_key_and_sync_etc ( hmac_vap_stru hmac_vap,
osal_u32  type,
mac_addkey_param_stru payload_addkey_param 
)

◆ hmac_wapi_add_key_etc()

OAL_STATIC osal_u32 hmac_wapi_add_key_etc ( hmac_wapi_stru wapi,
osal_u8  key_index,
osal_u8 key 
)

◆ hmac_wapi_add_user_init()

OAL_STATIC osal_bool hmac_wapi_add_user_init ( osal_void notify_data)

◆ hmac_wapi_calc_mic_data_etc()

OAL_STATIC osal_u32 hmac_wapi_calc_mic_data_etc ( mac_ieee80211_frame_stru pst_mac_hdr,
osal_u8  mac_hdr_len,
osal_u8  keyidx,
osal_u8 payload,
osal_u16  pdu_len,
osal_u8 mic,
osal_u16  mic_len 
)

◆ hmac_wapi_connect_check_bss_dscr()

OAL_STATIC osal_u32 hmac_wapi_connect_check_bss_dscr ( mac_bss_dscr_stru bss_dscr,
hmac_vap_stru hmac_vap,
mac_conn_param_stru connect_param 
)

◆ hmac_wapi_connected_etc()

OAL_STATIC osal_u8 hmac_wapi_connected_etc ( osal_u8  device_id)

◆ hmac_wapi_decrypt_etc()

OAL_STATIC osal_u32 hmac_wapi_decrypt_etc ( hmac_wapi_stru wapi,
oal_netbuf_stru pst_netbuf 
)

◆ hmac_wapi_deinit()

osal_void hmac_wapi_deinit ( osal_void  )

◆ hmac_wapi_deinit_etc()

OAL_STATIC osal_void hmac_wapi_deinit_etc ( osal_u16  user_idx)

◆ hmac_wapi_del_user_exit()

OAL_STATIC osal_bool hmac_wapi_del_user_exit ( osal_void notify_data)

◆ hmac_wapi_disable()

OAL_STATIC osal_bool hmac_wapi_disable ( osal_u8  wapi)

◆ hmac_wapi_encrypt_etc()

OAL_STATIC osal_u32 hmac_wapi_encrypt_etc ( hmac_wapi_stru wapi,
oal_netbuf_stru netbuf 
)

◆ hmac_wapi_ether_type_check()

WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OAL_STATIC osal_bool hmac_wapi_ether_type_check ( osal_u16  ether_type)

◆ hmac_wapi_get_ether_type()

WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OAL_STATIC osal_bool hmac_wapi_get_ether_type ( osal_u16  ether_type)

◆ hmac_wapi_get_user_info()

WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OAL_STATIC hmac_wapi_stru * hmac_wapi_get_user_info ( osal_u16  user_id)

◆ hmac_wapi_init()

osal_u32 hmac_wapi_init ( osal_void  )

◆ hmac_wapi_init_etc()

OAL_STATIC osal_u32 hmac_wapi_init_etc ( osal_u16  user_idx,
osal_u8  pairwise 
)

◆ hmac_wapi_is_keyidx_valid_etc()

OAL_STATIC osal_u8 hmac_wapi_is_keyidx_valid_etc ( hmac_wapi_stru wapi,
osal_u8  keyidx_rx 
)

◆ hmac_wapi_is_pn_odd_bcast_etc()

OAL_STATIC osal_u8 hmac_wapi_is_pn_odd_bcast_etc ( const osal_u8 pn)

◆ hmac_wapi_is_pn_odd_ucast_etc()

OAL_STATIC oal_bool_enum_uint8 hmac_wapi_is_pn_odd_ucast_etc ( const osal_u8 pn)

◆ hmac_wapi_is_qos_etc()

OAL_STATIC oal_bool_enum_uint8 hmac_wapi_is_qos_etc ( const mac_ieee80211_frame_stru pst_mac_hdr)

◆ hmac_wapi_is_wpihdr_valid_etc()

OAL_STATIC osal_u8 hmac_wapi_is_wpihdr_valid_etc ( hmac_wapi_stru wapi,
osal_u8 wapi_hdr 
)

◆ hmac_wapi_mic_alloc_etc()

OAL_STATIC osal_u8 * hmac_wapi_mic_alloc_etc ( osal_u8  is_qos,
osal_u16  pdu_len,
osal_u16 pus_mic_len 
)

◆ hmac_wapi_mic_free_etc()

OAL_STATIC osal_u32 hmac_wapi_mic_free_etc ( osal_u8 mic)

◆ hmac_wapi_netbuff_rx_handle_etc()

OAL_STATIC oal_netbuf_stru * hmac_wapi_netbuff_rx_handle_etc ( hmac_wapi_stru wapi,
oal_netbuf_stru buf 
)

◆ hmac_wapi_netbuff_tx_handle_etc()

OAL_STATIC oal_netbuf_stru * hmac_wapi_netbuff_tx_handle_etc ( hmac_wapi_stru wapi,
oal_netbuf_stru buf 
)

◆ hmac_wapi_pn_update_etc()

OAL_STATIC osal_u8 hmac_wapi_pn_update_etc ( osal_u8 pn,
osal_u8  inc 
)

◆ hmac_wapi_reset_port_etc()

OAL_STATIC osal_u32 hmac_wapi_reset_port_etc ( hmac_wapi_stru wapi)

◆ hmac_wapi_rx_netbuf()

OAL_STATIC oal_netbuf_stru * hmac_wapi_rx_netbuf ( hmac_vap_stru hmac_vap,
oal_netbuf_stru netbuf,
hmac_wapi_stru wapi,
hmac_user_stru hmac_user,
mac_rx_ctl_stru **  rx_ctrl 
)

◆ hmac_wapi_tx_classify_special()

WIFI_HMAC_TCM_TEXT WIFI_TCM_TEXT OAL_STATIC osal_u32 hmac_wapi_tx_classify_special ( hmac_vap_stru hmac_vap,
osal_u16  type,
mac_tx_ctl_stru tx_ctl,
osal_u8 tid 
)

◆ hmac_wapi_update_connect_param()

OAL_STATIC osal_u8 hmac_wapi_update_connect_param ( osal_u32  wpa_versions)

◆ hmac_wapi_update_legcy_only()

OAL_STATIC osal_void hmac_wapi_update_legcy_only ( const mac_bss_dscr_stru bss_dscr,
oal_bool_enum_uint8 legcy_only 
)

◆ hmac_wapi_update_roam()

OAL_STATIC osal_s32 hmac_wapi_update_roam ( hmac_vap_stru hmac_vap,
osal_u8 roming_now 
)

◆ hmac_wapi_user_add_check()

OAL_STATIC osal_u32 hmac_wapi_user_add_check ( osal_u8  device_id)

变量说明

◆ g_auc_wapi_oui_etc

OAL_CONST osal_u8 g_auc_wapi_oui_etc[3] = {0x00, 0x14, 0x72}

◆ g_wapi_userinfo