1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * 文 件 名 : hmac_roam_if.h 15 * 生成日期 : 2023年2月22日 16 * 功能描述 : 漫游特性对外接口声明头文件 17 */ 18 19 #ifndef __HMAC_ROAM_IF_H__ 20 #define __HMAC_ROAM_IF_H__ 21 22 #include "hmac_roam_connect.h" 23 #include "hmac_roam_alg.h" 24 #include "hmac_roam_main.h" 25 26 #ifdef __cplusplus 27 #if __cplusplus 28 extern "C" { 29 #endif 30 #endif 31 32 typedef osal_u32 (*hmac_roam_start_etc_cb)(hmac_vap_stru *hmac_vap, roam_channel_org_enum scan_type, 33 oal_bool_enum_uint8 cur_bss_ignore, roam_trigger_enum_uint8 roam_trigger); 34 typedef hmac_roam_info_stru *(*hmac_get_roam_info_cb)(osal_u8 vap_id); 35 typedef osal_u32 (*hmac_roam_proc_connect_cmd_cb)(hmac_vap_stru *hmac_vap, mac_conn_param_stru *connect_param); 36 typedef osal_u32 (*hmac_roam_check_bkscan_result_etc_cb)(hmac_vap_stru *hmac_vap, 37 hmac_scan_record_stru *scan_record); 38 typedef osal_void (*hmac_roam_add_key_done_etc_cb)(hmac_vap_stru *hmac_vap, oal_bool_enum_uint8 pairwise); 39 typedef osal_void (*hmac_sta_roam_update_pmf_etc_cb)(hmac_vap_stru *hmac_vap, mac_bss_dscr_stru *mac_bss_dscr); 40 typedef osal_void (*hmac_sta_roam_trigger_event_send_cb)(hmac_vap_stru *hmac_vap); 41 typedef osal_void (*hmac_roam_change_app_ie_cb)(hmac_vap_stru *hmac_vap, 42 app_ie_type_uint8 *app_ie_type, const osal_u8 *curr_bssid); 43 typedef osal_void (*hmac_roam_update_user_mac_cb)(hmac_vap_stru *hmac_vap, 44 hmac_ctx_join_req_set_reg_stru *reg_params); 45 typedef osal_void (*hmac_roam_set_linkloss_done_cb)(osal_u8 vap_id, osal_u8 val); 46 47 static osal_u32 hmac_roam_sta_init_weakref(osal_void) __attribute__ ((weakref("hmac_roam_sta_init"), used)); 48 static osal_void hmac_roam_sta_deinit_weakref(osal_void) 49 __attribute__ ((weakref("hmac_roam_sta_deinit"), used)); 50 51 #ifdef __cplusplus 52 #if __cplusplus 53 } 54 #endif 55 #endif 56 57 #endif 58