Lines Matching refs:ifName
58 if (memcpy_s(networkList->ifName, IFNAME_MAX_LEN, networkInfo.infos[i].name,
116 int32_t HalCmdGetDevMacAddr(const char *ifName, int32_t type, unsigned char *mac, uint8_t len)
120 ret = GetDevMacAddr(ifName, type, (uint8_t *)mac, len);
127 int32_t HalCmdSetMacAddr(const char *ifName, unsigned char *mac, uint8_t len)
131 ret = SetMacAddr(ifName, mac, len);
138 int32_t HalCmdGetValidFreqWithBand(const char *ifName, int32_t band, int32_t *freqs,
158 ret = GetValidFreqByBand(ifName, band, &result, size);
176 int32_t HalCmdSetTxPower(const char *ifName, int32_t power)
179 ret = SetTxPower(ifName, power);
186 int32_t HalCmdGetAssociatedStas(const char *ifName, struct StaInfo *staInfo, uint32_t count, uint32_t *num)
195 ret = GetAssociatedStas(ifName, &result);
209 int32_t HalCmdSetCountryCode(const char *ifName, const char *code, uint32_t len)
212 ret = WifiSetCountryCode(ifName, code, len);
219 int32_t HalCmdSetScanningMacAddress(const char *ifName, unsigned char *scanMac, uint8_t len)
222 ret = SetScanMacAddr(ifName, scanMac, len);
229 int32_t HalCmdStartScanInner(const char *ifName, WifiScan *scan)
232 ret = WifiCmdScan(ifName, (WifiScan *)scan);
239 int32_t HalCmdGetChipId(const char *ifName, uint8_t *chipId)
242 ret = AcquireChipId(ifName, chipId);
259 int32_t HalCmdStartPnoScan(const char *ifName, const WifiPnoSettings *pnoSettings)
261 HDF_LOGI("hal enter %{public}s ifName:%{public}s", __FUNCTION__, ifName);
263 ret = WifiStartPnoScan(ifName, pnoSettings);
271 int32_t HalCmdStopPnoScan(const char *ifName)
273 HDF_LOGI("hal enter %{public}s ifName:%{public}s", __FUNCTION__, ifName);
275 ret = WifiStopPnoScan(ifName);
283 int32_t HalCmdGetSignalPollInfo(const char *ifName, struct SignalResult *signalResult)
286 ret = WifiGetSignalPollInfo(ifName, signalResult);
293 int32_t HalCmdSetResetDriver(const uint8_t chipId, const char *ifName)
296 ret = SetResetDriver(chipId, ifName);
303 int32_t HalCmdGetFeatureByIfName(const char *ifName, struct IWiFiBaseFeature **ifeature)
308 if (ifName == NULL || ifeature == NULL) {
317 if (strcmp(networkNode->ifName, ifName) == HDF_SUCCESS) {
322 HDF_LOGE("%s: cannot find feature by ifName, line: %d", __FUNCTION__, __LINE__);
326 int32_t HalCmdGetApBandwidth(const char *ifName, uint8_t *bandwidth)
328 int32_t ret = ClientGetApBandwidth(ifName, bandwidth);
335 int32_t HalCmdResetToFactoryMacAddress(const char *ifName)
339 ret = HalCmdGetFeatureByIfName(ifName, &ifeature);
346 ret = HalCmdGetDevMacAddr(ifName, ifeature->type, mac, ETH_ADDR_LEN);
352 ret = HalCmdSetMacAddr(ifName, mac, ETH_ADDR_LEN);