• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2022 Beken Corporation
2 //
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 
15 #pragma once
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 int bk_wlan_ps_disable_send_msg(void);
22 int bk_wlan_mcu_suppress_and_sleep(UINT32);
23 
24 uint8_t bk_wlan_has_role(uint8_t role);
25 int bk_wlan_dtim_rf_ps_mode_do_wakeup(void);
26 uint32_t bk_sta_cipher_is_open(void);
27 monitor_cb_t bk_wlan_get_bcn_cb(void);
28 int bk_wlan_is_monitor_mode(void);
29 uint32_t bk_wlan_get_INT_status(void);
30 void bk_wlan_enable_lsig(void);
31 void bk_wlan_disable_lsig(void);
32 int bk_sta_cipher_type(void);
33 uint32_t bk_wlan_ap_get_frequency(void);
34 uint8_t bk_wlan_ap_get_channel_config(void);
35 VOID bk_wlan_ap_set_channel_config(uint8_t channel);
36 monitor_cb_t bk_wlan_get_monitor_cb(void);
37 
38 void bk_wlan_register_mgnt_monitor_cb(monitor_cb_t fn);
39 monitor_cb_t bk_wlan_get_mgnt_monitor_cb(void);
40 
41 void bk_wlan_sta_init(network_InitTypeDef_st *inNetworkInitPara);
42 void bk_wlan_ap_init_adv(network_InitTypeDef_ap_st *inNetworkInitParaAP);
43 
44 int auto_check_dtim_rf_ps_mode(void);
45 void bk_wlan_dhcp_timeout(void);
46 int wlan_sta_ap_info(struct ApListStruct *ap);
47 int wlan_sta_scan_result(ScanResult_adv *results);
48 
49 void bk_wlan_reg_csa_cb_coexist_mode(void);
50 
51 #ifdef CONFIG_AOS_MESH
52 monitor_cb_t wlan_get_mesh_monitor_cb(void);
53 int wlan_is_mesh_monitor_mode(void);
54 #endif
55 
56 #ifdef __cplusplus
57 }
58 #endif
59