1 /* 2 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 9 #ifndef HDF_WLAN_UTILS_H 10 #define HDF_WLAN_UTILS_H 11 #include "hdf_wifi_product.h" 12 #include "wifi_mac80211_ops.h" 13 14 const char *GetPlatformDriverName(void); 15 16 struct HdfWifiNetDeviceData *GetPlatformData(const struct NetDevice *netDev); 17 18 struct HdfChipDriver *GetChipDriver(const struct NetDevice *netDev); 19 20 struct WlanChannel* WifiGetChannel(struct WlanHwCapability* capality, int32_t freq); 21 22 struct WlanHwCapability* GetHwCapability(struct NetDevice *netDev); 23 24 NetDevice *AllocPlatformNetDevice(struct HdfWlanDevice *device); 25 int32_t RenewNetDevice(NetDevice **netDev); 26 int32_t ReleasePlatformNetDevice(struct NetDevice *netDev); 27 28 int32_t GetPlatformIfName(uint8_t id, char *ifName, uint32_t ifNameSize); 29 char* HdfWlanGetIfNames(const uint8_t chipId, uint8_t *ifNameCount); 30 31 #endif