• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  */
18 
19 #ifndef __WAL_SCAN_H__
20 #define __WAL_SCAN_H__
21 
22 /* ****************************************************************************
23   1 其他头文件包含
24 **************************************************************************** */
25 #include "oal_ext_if.h"
26 #include "hmac_ext_if.h"
27 #include "wal_event.h"
28 
29 #ifdef __cplusplus
30 #if __cplusplus
31 extern "C" {
32 #endif
33 #endif
34 
35 /* ****************************************************************************
36   2 宏定义
37 **************************************************************************** */
38 /* ****************************************************************************
39   3 枚举定义
40 **************************************************************************** */
41 /* ****************************************************************************
42   4 全局变量声明
43 **************************************************************************** */
44 /* ****************************************************************************
45   5 消息头定义
46 **************************************************************************** */
47 /* ****************************************************************************
48   6 消息定义
49 **************************************************************************** */
50 /* ****************************************************************************
51   7 STRUCT定义
52 **************************************************************************** */
53 /* ****************************************************************************
54   8 UNION定义
55 **************************************************************************** */
56 /* ****************************************************************************
57   9 OTHERS定义
58 **************************************************************************** */
59 /* ****************************************************************************
60   10 函数声明
61 **************************************************************************** */
62 hi_void wal_inform_all_bss(const oal_net_device_stru *netdev, oal_wiphy_stru *wiphy, hmac_bss_mgmt_stru *bss_mgmt,
63     hi_u8 vap_id);
64 hi_u32 wal_start_scan_req(oal_net_device_stru *netdev, hmac_scan_stru *scan_mgmt);
65 hi_u32 wal_force_scan_complete(oal_net_device_stru *netdev);
66 hi_void wal_free_scan_mgmt_resource(hmac_scan_stru *scan_mgmt);
67 
68 #define is_p2p_scan_req(request)                                                                                      \
69     (((request)->n_ssids > 0) && (NULL != (request)->ssids) && ((request)->ssids[0].ssid_len == strlen("DIRECT-")) && \
70         (0 == memcmp((request)->ssids[0].ssid, "DIRECT-", strlen("DIRECT-"))))
71 
72 #ifdef __cplusplus
73 #if __cplusplus
74 }
75 #endif
76 #endif
77 
78 #endif /* end of wal_scan.h */
79