1 /* 2 * hdf_public_ap6275s.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 19 #ifndef _HDF_PUBLIC_AP6275S_H_ 20 #define _HDF_PUBLIC_AP6275S_H_ 21 #include "net_device.h" 22 23 void wl_cfg80211_abort_scan(struct wiphy *wiphy, struct wireless_dev *wdev); 24 struct net_device* GetLinuxInfByNetDevice(const struct NetDevice *netDevice); 25 struct NetDevice* GetHdfNetDeviceByLinuxInf(struct net_device *dev); 26 struct wiphy* get_linux_wiphy_ndev(struct net_device *ndev); 27 28 void dhd_get_mac_address(struct net_device *dev, unsigned char **addr); 29 int32_t wal_cfg80211_cancel_remain_on_channel(struct wiphy *wiphy, struct net_device *netDev); 30 int32_t wl_cfg80211_set_wps_p2p_ie_wrp(struct net_device *ndev, char *buf, int len, int8_t type); 31 int32_t wal_cfg80211_remain_on_channel(struct wiphy *wiphy, struct net_device *netDev, int32_t freq, 32 unsigned int duration); 33 void wl_cfg80211_add_virtual_iface_wrap(struct wiphy *wiphy, char *name, enum nl80211_iftype type, 34 struct vif_params *params); 35 int32_t wl_cfg80211_set_country_code(struct net_device *net, char *country_code, 36 bool notify, bool user_enforced, int revinfo); 37 int32_t HdfWifiEventInformBssFrame(const struct NetDevice *netDev, 38 const struct WlanChannel *channel, const struct ScannedBssInfo *bssInfo); 39 40 s32 wldev_ioctl_get(struct net_device *dev, u32 cmd, unsigned char *arg, u32 len); 41 #endif