Home
last modified time | relevance | path

Searched refs:freqs (Results 1 - 21 of 21) sorted by relevance

/drivers/peripheral/wlan/hal/src/
H A Dwifi_hal_base_feature.c66 int32_t band, int32_t *freqs, uint32_t size, uint32_t *num) in GetValidFreqsWithBandInner()
68 if (baseFeature == NULL || freqs == NULL || size < MAX_CHANNEL_NUM || num == NULL || band < 0) { in GetValidFreqsWithBandInner()
72 return HalCmdGetValidFreqWithBand(baseFeature->ifName, band, freqs, size, num); in GetValidFreqsWithBandInner()
135 int32_t band, int32_t *freqs, uint32_t size, uint32_t *num) in GetValidFreqsWithBand()
138 int32_t ret = GetValidFreqsWithBandInner(baseFeature, band, freqs, size, num); in GetValidFreqsWithBand()
65 GetValidFreqsWithBandInner(const struct IWiFiBaseFeature *baseFeature, int32_t band, int32_t *freqs, uint32_t size, uint32_t *num) GetValidFreqsWithBandInner() argument
134 GetValidFreqsWithBand(const struct IWiFiBaseFeature *baseFeature, int32_t band, int32_t *freqs, uint32_t size, uint32_t *num) GetValidFreqsWithBand() argument
H A Dwifi_hal_cmd.c138 int32_t HalCmdGetValidFreqWithBand(const char *ifName, int32_t band, int32_t *freqs, in HalCmdGetValidFreqWithBand() argument
144 result.freqs = OsalMemCalloc(size * sizeof(uint32_t)); in HalCmdGetValidFreqWithBand()
145 if (result.freqs == NULL) { in HalCmdGetValidFreqWithBand()
153 OsalMemFree(result.freqs); in HalCmdGetValidFreqWithBand()
163 if (memcpy_s(freqs, size * sizeof(uint32_t), result.freqs, result.nums * sizeof(uint32_t)) != EOK) { in HalCmdGetValidFreqWithBand()
172 OsalMemFree(result.freqs); in HalCmdGetValidFreqWithBand()
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/
H A Dwpa_hal_struct.h45 int *freqs; member
119 int *freqs; member
H A Dwpa_supplicant_hal.c911 res = snprintf_s(buff + pos, len - pos, len - pos - 1, "%d,", settings->freqs[i]); in ConcatScanSetting()
913 res = snprintf_s(buff + pos, len - pos, len - pos - 1, "%d;", settings->freqs[i]); in ConcatScanSetting()
/drivers/peripheral/wlan/test/unittest/chip/
H A Dwifi_ap_iface_test.cpp183 std::vector<uint32_t> freqs; in HWTEST_F() local
184 EXPECT_TRUE(apIface->GetSupportFreqs(0, freqs) == HDF_SUCCESS); in HWTEST_F()
H A Dwifi_sta_iface_test.cpp117 std::vector<uint32_t> freqs; in HWTEST_F() local
118 EXPECT_TRUE(staIface->GetSupportFreqs(0, freqs) == HDF_SUCCESS); in HWTEST_F()
H A Dwifi_hal_fn.cpp53 std::vector<uint32_t>& freqs) in VendorHalGetChannelsInBand()
52 VendorHalGetChannelsInBand(wifiInterfaceHandle handle, int band, std::vector<uint32_t>& freqs) VendorHalGetChannelsInBand() argument
/drivers/peripheral/wlan/interfaces/include/
H A Dwifi_hal_base_feature.h162 * @param freqs Indicates the pointer to the supported frequencies.
171 int32_t (*getValidFreqsWithBand)(const struct IWiFiBaseFeature *baseFeature, int32_t band, int32_t *freqs,
/drivers/peripheral/wlan/hdi_service/service_common/
H A Dwlan_common_cmd.c1198 if ((scan->freqs != NULL) && (scan->freqsLen != 0)) { in WLanFillScanData()
1199 wifiScan->freqs = (int32_t *)OsalMemCalloc(sizeof(int32_t) * scan->freqsLen); in WLanFillScanData()
1200 if (wifiScan->freqs != NULL) { in WLanFillScanData()
1201 if (memcpy_s(wifiScan->freqs, sizeof(int32_t) * (scan->freqsLen), scan->freqs, in WLanFillScanData()
1203 HDF_LOGE("%{public}s fail : memcpy_s freqs fail!", __func__); in WLanFillScanData()
1204 OsalMemFree(wifiScan->freqs); in WLanFillScanData()
1250 if (dataBlock->freqs != NULL) { in WifiScanFree()
1251 OsalMemFree(dataBlock->freqs); in WifiScanFree()
1252 dataBlock->freqs in WifiScanFree()
[all...]
/drivers/peripheral/wlan/hal/include/
H A Dwifi_hal_cmd.h39 int32_t HalCmdGetValidFreqWithBand(const char *ifName, int32_t band, int32_t *freqs, uint32_t size, uint32_t *num);
/drivers/hdf_core/framework/model/network/wifi/core/components/sta/
H A Dsta.c86 if (!HdfSbufReadBuffer(reqData, (const void **)&params->freqs, &dataSize)) { in WifiFillScanParam()
87 HDF_LOGE("%s: %s!ParamName=%s", __func__, ERROR_DESC_READ_REQ_FAILED, "freqs"); in WifiFillScanParam()
91 (dataSize / sizeof(params->freqs[0])) < MAX_FREQ_FTILTER_COUNT ? (dataSize / sizeof(params->freqs[0])) : 0; in WifiFillScanParam()
432 if (!HdfSbufReadBuffer(reqData, (const void **)&pnoSettings->pnoNetworks[i].freqs, &dataSize)) { in HdfCmdfillPnoSettings()
433 HDF_LOGE("%s: %s!ParamName=%s", __func__, ERROR_DESC_READ_REQ_FAILED, "freqs"); in HdfCmdfillPnoSettings()
436 pnoSettings->pnoNetworks[i].freqsLen = dataSize / sizeof(pnoSettings->pnoNetworks[i].freqs[0]); in HdfCmdfillPnoSettings()
/drivers/peripheral/wlan/chip/hdi_service/
H A Dwifi_vendor_hal.cpp219 std::vector<uint32_t> freqs; in GetValidFrequenciesForBand() local
222 GetIfaceHandle(ifaceName), band, freqs); in GetValidFrequenciesForBand()
223 return {status, std::move(freqs)}; in GetValidFrequenciesForBand()
/drivers/peripheral/wlan/client/include/
H A Dwifi_driver_client.h236 uint32_t *freqs; member
322 int32_t *freqs; member
477 int32_t *freqs; member
/drivers/hdf_core/framework/include/wifi/
H A Dwifi_mac80211_ops.h323 uint32_t *freqs; /**< An array of frequencies */ member
580 * @param freqs Indicates the pointer to the supported frequencies.
588 int32_t (*GetValidFreqsWithBand)(NetDevice *netDev, int32_t band, int32_t *freqs, uint32_t *num);
/drivers/hdf_core/framework/model/network/wifi/include/
H A Dhdf_wifi_cmd.h342 int32_t *freqs; member
478 int32_t *freqs; member
/drivers/peripheral/wlan/test/unittest/client/
H A Dhdf_client_test.cpp226 result.freqs = (uint32_t *)OsalMemCalloc(35 * sizeof(uint32_t));
227 if (result.freqs == NULL) {
235 OsalMemFree(result.freqs);
250 printf("%s: freq[%d] = %d\n", __func__, i, result.freqs[i]);
255 OsalMemFree(result.freqs);
/drivers/peripheral/wlan/test/unittest/hal/
H A Dwifi_hal_test.cpp1121 int32_t freqs[MAX_CHANNEL_NUM] = {0};
1128 ret = staFeature->baseFeature.getValidFreqsWithBand(nullptr, band, freqs, size, &num);
1134 band, freqs, 10, &num);
1137 band, freqs, size, nullptr);
1140 bandNotSupport, freqs, size, &num);
1143 band, freqs, size, &num);
1163 int32_t freqs[MAX_CHANNEL_NUM] = {0};
1170 ret = apFeature->baseFeature.getValidFreqsWithBand(nullptr, band, freqs, size, &num);
1175 ret = apFeature->baseFeature.getValidFreqsWithBand((struct IWiFiBaseFeature *)apFeature, band, freqs, 10, &num);
1178 band, freqs, siz
[all...]
/drivers/peripheral/wlan/test/hdi_service/
H A Dwlan_hdi_hal_services_c_test.cpp228 * @tc.desc: Wifi hdi get freqs function test on AP feature
1054 * @tc.desc: Wifi hdi get freqs function test on STA feature
1177 pnoSettings.pnoNetworks[0].freqs = (int32_t *)OsalMemCalloc(sizeof(int32_t) * 2); in HWTEST_F()
1178 pnoSettings.pnoNetworks[0].freqs[0] = 2412; in HWTEST_F()
1179 pnoSettings.pnoNetworks[0].freqs[1] = 2447; in HWTEST_F()
1200 OsalMemFree(pnoSettings.pnoNetworks[0].freqs); in HWTEST_F()
1248 scan.freqs = (int32_t *)OsalMemCalloc(sizeof(int32_t) * (scan.freqsLen)); in HWTEST_F()
1249 scan.freqs[0] = 2412; in HWTEST_F()
1250 scan.freqs[1] = 2447; in HWTEST_F()
1269 OsalMemFree(scan.freqs); in HWTEST_F()
[all...]
/drivers/peripheral/wlan/client/src/sbuf/
H A Dsbuf_cmd_adapter.c100 if (result == NULL || result->freqs == NULL || result->txPower == NULL) { in ParserFreqInfo()
114 HDF_LOGE("%s: read freqs failed", __FUNCTION__); in ParserFreqInfo()
117 if (memcpy_s(result->freqs, size * sizeof(uint32_t), replayData, replayDataSize) != EOK) { in ParserFreqInfo()
837 isSerializeFailed || !HdfSbufWriteBuffer(data, scan->freqs, sizeof(scan->freqs[0]) * scan->numFreqs); in WifiCmdScan()
1014 if (!HdfSbufWriteBuffer(req, pnoSettings->pnoNetworks[i].freqs, in SerializeSettingsToSbuf()
1016 HDF_LOGE("%{public}s: write freqs fail!", __FUNCTION__); in SerializeSettingsToSbuf()
/drivers/hdf_core/framework/model/network/wifi/core/module/
H A Dwifi_base.c624 static uint32_t GetValidFreqsWithBand(struct NetDevice *netdev, int32_t band, int32_t *freqs, uint32_t *num) in GetValidFreqsWithBand() argument
633 return chipDriver->ops->GetValidFreqsWithBand(netdev, band, freqs, num); in GetValidFreqsWithBand()
1013 int32_t freqs[WIFI_24G_CHANNEL_NUM] = {0}; in WifiCmdGetValidFreqsWithBand() local
1034 ret = GetValidFreqsWithBand(netdev, band, freqs, &num); in WifiCmdGetValidFreqsWithBand()
1036 HDF_LOGE("%s: fail to get valid freqs,%d", __func__, ret); in WifiCmdGetValidFreqsWithBand()
1043 if (!HdfSbufWriteBuffer(rspData, freqs, num * sizeof(int32_t))) { in WifiCmdGetValidFreqsWithBand()
/drivers/peripheral/wlan/client/src/netlink/
H A Dnetlink_cmd_adapter.c958 result->freqs[result->nums] = freq; in GetCenterFreq()
966 result->freqs[result->nums] = freq; in GetCenterFreq()
1286 if (result == NULL || result->freqs == NULL || result->txPower == NULL) { in GetValidFreqByBand()
1311 ret = memset_s(result->freqs, size * sizeof(uint32_t), 0, size * sizeof(uint32_t)); in GetValidFreqByBand()
1313 HILOG_ERROR(LOG_CORE, "%s: memset_s result->freqs failed", __FUNCTION__); in GetValidFreqByBand()
1648 if (scan->freqs) { in CmdScanPutFreqsMsg()
1655 nla_put_u32(msg, i + 1, scan->freqs[i]); in CmdScanPutFreqsMsg()
2842 if (InsertFreqToList(pnoSettings->pnoNetworks[i].freqs[j], &scanFreqs) != RET_CODE_SUCCESS) { in ProcessFreqToMsg()

Completed in 31 milliseconds