1 /* 2 * net_bdh_adpater.h 3 * 4 * ap6275s driver header 5 * 6 * Copyright (c) 2020-2021 Huawei Device 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 NET_BDH_ADAPTER_H 19 #define NET_BDH_ADAPTER_H 20 21 #include <linux/netdevice.h> 22 #include "wifi_mac80211_ops.h" 23 #include "net_device.h" 24 25 26 #ifdef __cplusplus 27 #if __cplusplus 28 extern "C" { 29 #endif 30 #endif 31 32 void set_krn_netdev(struct NetDevice *hnetdev, struct net_device *netdev, int ifidx); 33 struct wiphy *get_krn_wiphy(void); 34 int P2pInitNetdev(struct NetDevice *netDevice, WifiIfAdd *ifAdd, int private_data_size, int ifidx); 35 36 int32_t hdf_bdh6_netdev_init(struct NetDevice *netDev); 37 int32_t hdf_bdh6_netdev_open(struct NetDevice *netDev); 38 int32_t hdf_bdh6_netdev_stop(struct NetDevice *netDev); 39 40 #ifdef __cplusplus 41 #if __cplusplus 42 } 43 #endif 44 #endif 45 46 #endif 47