/drivers/peripheral/wlan/interfaces/include/ |
H A D | wifi_hal_base_feature.h | 100 struct IWiFiBaseFeature { struct 107 * @param baseFeature Indicates the pointer to the basic feature, as described in {@link IWiFiBaseFeature}. 115 const char *(*getNetworkIfaceName)(const struct IWiFiBaseFeature *baseFeature); 120 * @param baseFeature Indicates the pointer to the basic feature, as described in {@link IWiFiBaseFeature}. 127 int32_t (*getFeatureType)(const struct IWiFiBaseFeature *baseFeature); 132 * @param baseFeature Indicates the pointer to the basic feature, as described in {@link IWiFiBaseFeature}. 141 int32_t (*setMacAddress)(const struct IWiFiBaseFeature *baseFeature, unsigned char *mac, uint8_t len); 146 * @param baseFeature Indicates the pointer to the basic feature, as described in {@link IWiFiBaseFeature}. 155 int32_t (*getDeviceMacAddress)(const struct IWiFiBaseFeature *baseFeature, unsigned char *mac, uint8_t len); 160 * @param baseFeature Indicates the pointer to the basic feature, as described in {@link IWiFiBaseFeature} [all...] |
H A D | wifi_hal.h | 143 * @brief Creates an {@link IWiFiBaseFeature} object of a specified type. 146 * @param ifeature Indicates the double pointer to the {@link IWiFiBaseFeature} object. 148 * @return Returns <b>0</b> if the {@link IWiFiBaseFeature} object is created; returns a negative value otherwise. 153 int32_t (*createFeature)(int32_t type, struct IWiFiBaseFeature **ifeature); 156 * @brief Obtains an {@link IWiFiBaseFeature} object based on a specified network interface name. 159 * @param ifeature Indicates the double pointer to the {@link IWiFiBaseFeature} object. 161 * @return Returns <b>0</b> if the {@link IWiFiBaseFeature} object is obtained; returns a negative value otherwise. 166 int32_t (*getFeatureByIfName)(const char *ifName, struct IWiFiBaseFeature **ifeature); 195 * @brief Destroys a specified {@link IWiFiBaseFeature} object. 197 * @param ifeature Indicates the pointer to the {@link IWiFiBaseFeature} objec [all...] |
H A D | wifi_hal_p2p_feature.h | 51 * @brief Inherits the basic features of {@link IWiFiBaseFeature} and additionally provides the feature of setting 58 struct IWiFiBaseFeature baseFeature; /**< Basic features of {@link IWiFiBaseFeature} */
|
H A D | wifi_hal_ap_feature.h | 61 * @brief Inherits the basic features of {@link IWiFiBaseFeature} and additionally provides the features of 68 struct IWiFiBaseFeature baseFeature; /**< Basic features of {@link IWiFiBaseFeature} */
|
H A D | wifi_hal_sta_feature.h | 52 * @brief Inherits the basic features of {@link IWiFiBaseFeature} and additionally provides the feature of setting 59 struct IWiFiBaseFeature baseFeature; /**< Basic features of {@link IWiFiBaseFeature} */
|
/drivers/peripheral/wlan/hal/src/ |
H A D | wifi_hal_base_feature.c | 29 static const char *GetNetworkIfaceNameInner(const struct IWiFiBaseFeature *baseFeature) in GetNetworkIfaceNameInner() 38 static int32_t GetFeatureTypeInner(const struct IWiFiBaseFeature *baseFeature) in GetFeatureTypeInner() 47 static int32_t SetMacAddressInner(const struct IWiFiBaseFeature *baseFeature, unsigned char *mac, uint8_t len) in SetMacAddressInner() 56 static int32_t GetDeviceMacAddressInner(const struct IWiFiBaseFeature *baseFeature, unsigned char *mac, uint8_t len) in GetDeviceMacAddressInner() 65 static int32_t GetValidFreqsWithBandInner(const struct IWiFiBaseFeature *baseFeature, in GetValidFreqsWithBandInner() 75 static int32_t SetTxPowerInner(const struct IWiFiBaseFeature *baseFeature, int32_t power) in SetTxPowerInner() 84 static int32_t GetChipIdInner(const struct IWiFiBaseFeature *baseFeature, uint8_t *chipId) in GetChipIdInner() 102 static const char *GetNetworkIfaceName(const struct IWiFiBaseFeature *baseFeature) in GetNetworkIfaceName() 110 static int32_t GetFeatureType(const struct IWiFiBaseFeature *baseFeature) in GetFeatureType() 118 static int32_t SetMacAddress(const struct IWiFiBaseFeature *baseFeatur [all...] |
H A D | wifi_hal_p2p_feature.c | 32 if (InitBaseFeature((struct IWiFiBaseFeature **)fe) != HDF_SUCCESS) { in InitP2pFeature()
|
H A D | wifi_hal.c | 99 static int32_t InitFeatureByType(int32_t type, struct IWiFiBaseFeature **ifeature) in InitFeatureByType() 105 *ifeature = (struct IWiFiBaseFeature *)malloc(sizeof(struct IWiFiAp)); in InitFeatureByType() 114 *ifeature = (struct IWiFiBaseFeature *)malloc(sizeof(struct IWiFiSta)); in InitFeatureByType() 123 *ifeature = (struct IWiFiBaseFeature *)malloc(sizeof(struct IWiFiP2p)); in InitFeatureByType() 142 static int32_t FindValidNetwork(int32_t type, struct IWiFiBaseFeature **feature) in FindValidNetwork() 175 static int32_t CreateFeatureInner(int32_t type, struct IWiFiBaseFeature **ifeature) in CreateFeatureInner() 201 static int32_t DestroyFeatureInner(struct IWiFiBaseFeature *ifeature) in DestroyFeatureInner() 447 static int32_t CreateFeature(int32_t type, struct IWiFiBaseFeature **ifeature) in CreateFeature() 457 static int32_t GetFeatureByIfName(const char *ifName, struct IWiFiBaseFeature **ifeature) in GetFeatureByIfName() 467 static int32_t DestroyFeature(struct IWiFiBaseFeature *ifeatur [all...] |
H A D | wifi_hal_ap_feature.c | 79 if (InitBaseFeature((struct IWiFiBaseFeature **)fe) != HDF_SUCCESS) { in InitApFeature()
|
H A D | wifi_hal_sta_feature.c | 120 if (InitBaseFeature((struct IWiFiBaseFeature **)fe) != HDF_SUCCESS) { in InitStaFeature()
|
H A D | wifi_hal_cmd.c | 303 int32_t HalCmdGetFeatureByIfName(const char *ifName, struct IWiFiBaseFeature **ifeature) in HalCmdGetFeatureByIfName() 338 struct IWiFiBaseFeature *ifeature = NULL; in HalCmdResetToFactoryMacAddress()
|
/drivers/peripheral/wlan/test/unittest/hal/ |
H A D | wifi_hal_test.cpp | 148 ret = g_wifi->createFeature(PROTOCOL_80211_IFTYPE_AP, (struct IWiFiBaseFeature **)&apFeature); in HWTEST_F() 153 ret = g_wifi->destroyFeature((struct IWiFiBaseFeature *)apFeature); in HWTEST_F() 169 ret = g_wifi->createFeature(PROTOCOL_80211_IFTYPE_STATION, (struct IWiFiBaseFeature **)&staFeature); in HWTEST_F() 174 ret = g_wifi->destroyFeature((struct IWiFiBaseFeature *)staFeature); in HWTEST_F() 192 ret = g_wifi->createFeature(PROTOCOL_80211_IFTYPE_AP, (struct IWiFiBaseFeature **)&apFeature); in HWTEST_F() 195 ret = g_wifi->getFeatureByIfName(nullptr, (struct IWiFiBaseFeature **)&apFeatureGet); in HWTEST_F() 197 ret = g_wifi->getFeatureByIfName(ifName0, (struct IWiFiBaseFeature **)&apFeatureGet); in HWTEST_F() 199 ret = g_wifi->getFeatureByIfName(apFeature->baseFeature.ifName, (struct IWiFiBaseFeature **)&apFeatureGet); in HWTEST_F() 202 ret = g_wifi->destroyFeature((struct IWiFiBaseFeature *)apFeature); in HWTEST_F() 269 ret = g_wifi->createFeature(PROTOCOL_80211_IFTYPE_AP, (struct IWiFiBaseFeature **) in HWTEST_F() [all...] |
/drivers/peripheral/wlan/test/performance/common/ |
H A D | hdf_wlan_performance_test.cpp | 173 ret = g_wifi->createFeature(PROTOCOL_80211_IFTYPE_AP, (struct IWiFiBaseFeature **)&apFeature);
in HWTEST_F() 176 ret = apFeature->baseFeature.getDeviceMacAddress((struct IWiFiBaseFeature *)apFeature, nullptr, 0);
in HWTEST_F() 178 ret = apFeature->baseFeature.getDeviceMacAddress((struct IWiFiBaseFeature *)apFeature, mac, ETH_ADDR_LEN - 1);
in HWTEST_F() 181 ret = apFeature->baseFeature.getDeviceMacAddress((struct IWiFiBaseFeature *)apFeature, mac, ETH_ADDR_LEN);
in HWTEST_F() 188 ret = g_wifi->destroyFeature((struct IWiFiBaseFeature *)apFeature);
in HWTEST_F() 208 ret = g_wifi->createFeature(PROTOCOL_80211_IFTYPE_STATION, (struct IWiFiBaseFeature **)&staFeature);
in HWTEST_F() 211 ret = staFeature->baseFeature.getDeviceMacAddress((struct IWiFiBaseFeature *)staFeature, nullptr, 0);
in HWTEST_F() 213 ret = staFeature->baseFeature.getDeviceMacAddress((struct IWiFiBaseFeature *)staFeature, mac, ETH_ADDR_LEN - 1);
in HWTEST_F() 216 ret = staFeature->baseFeature.getDeviceMacAddress((struct IWiFiBaseFeature *)staFeature, mac, ETH_ADDR_LEN);
in HWTEST_F() 223 ret = g_wifi->destroyFeature((struct IWiFiBaseFeature *)staFeatur in HWTEST_F() [all...] |
/drivers/peripheral/wlan/hal/include/ |
H A D | wifi_hal_common.h | 32 struct IWiFiBaseFeature *ifeature;
|
H A D | wifi_hal_cmd.h | 47 int32_t HalCmdGetFeatureByIfName(const char *ifName, struct IWiFiBaseFeature **ifeature);
|
/drivers/peripheral/wlan/hdi_service/service_common/ |
H A D | wlan_common_cmd.c | 29 struct IWiFiBaseFeature *g_baseFeature = NULL;
101 ret = g_wifi->createFeature(type, (struct IWiFiBaseFeature **)&g_apFeature);
in WlanInterfaceCreateFeature() 112 ret = g_wifi->createFeature(type, (struct IWiFiBaseFeature **)&g_staFeature);
in WlanInterfaceCreateFeature() 123 ret = g_wifi->createFeature(type, (struct IWiFiBaseFeature **)&g_p2pFeature);
in WlanInterfaceCreateFeature() 260 static int32_t GetBasefeature(const struct HdfFeatureInfo *ifeature, struct IWiFiBaseFeature **baseFeature)
in GetBasefeature() 290 struct IWiFiBaseFeature *baseFeature = NULL;
in WlanInterfaceGetChipId() 315 struct IWiFiBaseFeature *baseFeature = NULL;
in WlanInterfaceGetDeviceMacAddress() 341 struct IWiFiBaseFeature *baseFeature = NULL;
in WlanInterfaceGetFeatureByIfName() 352 ret = g_wifi->getFeatureByIfName(ifName, (struct IWiFiBaseFeature **)&baseFeature);
in WlanInterfaceGetFeatureByIfName() 377 struct IWiFiBaseFeature *baseFeatur in WlanInterfaceGetFeatureType() [all...] |