• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * hdf_wl_interface.h
3  *
4  * ap6275s driver header
5  *
6  * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
7  *
8  * This software is licensed under the terms of the GNU General Public
9  * License version 2, as published by the Free Software Foundation, and
10  * may be copied, distributed, and modified under those terms.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  */
18 #ifndef HDF_WL_INTERFACE_H
19 #define HDF_WL_INTERFACE_H
20 #include <net/cfg80211.h>
21 #include <linux/netdevice.h>
22 #include "net_device.h"
23 
24 enum hdf_inf_type {
25     HDF_INF_WLAN0 = 0,
26     HDF_INF_P2P0,
27     HDF_INF_P2P1,
28     HDF_INF_AP0,
29     HDF_INF_MAX
30 };
31 
32 struct hdf_eapol_event_s {
33     struct work_struct eapol_report;
34     NetBufQueue eapolQueue;
35     int32_t idx;
36 };
37 
38 struct hdf_inf_map {
39     struct NetDevice  *hnetdev;
40     struct net_device *netdev;
41     struct wireless_dev *wdev;
42     u8 macaddr[ETH_ALEN];
43     struct hdf_eapol_event_s eapolEvent;
44 };
45 
46 void eapol_report_handler(struct work_struct *work_data);
47 #endif
48