Home
last modified time | relevance | path

Searched refs:scan (Results 1 - 13 of 13) sorted by relevance

/drivers/peripheral/wlan/hal/src/
H A Dwifi_hal_sta_feature.c46 static int32_t StartScanInner(const char *ifName, WifiScan *scan) in StartScanInner() argument
48 if (ifName == NULL || scan == NULL) { in StartScanInner()
52 return HalCmdStartScanInner(ifName, scan); in StartScanInner()
55 static int32_t StartScan(const char *ifName, WifiScan *scan) in StartScan() argument
58 int32_t ret = StartScanInner(ifName, scan); in StartScan()
H A Dwifi_hal_cmd.c229 int32_t HalCmdStartScanInner(const char *ifName, WifiScan *scan) in HalCmdStartScanInner() argument
232 ret = WifiCmdScan(ifName, (WifiScan *)scan); in HalCmdStartScanInner()
/drivers/peripheral/wlan/hdi_service/service_common/
H A Dwlan_common_cmd.c1165 static int32_t WLanFillSsid(WifiScan *wifiScan, const struct HdfWifiScan *scan) in WLanFillSsid() argument
1169 for (loop = 0; loop < scan->ssidsLen; loop++) { in WLanFillSsid()
1170 if (scan->ssids[loop].ssidLen > MAX_SSID_LEN) { in WLanFillSsid()
1172 scan->ssids[loop].ssidLen = MAX_SSID_LEN - 1; in WLanFillSsid()
1174 if (memcpy_s(wifiScan->ssids[loop].ssid, scan->ssids[loop].ssidLen, scan->ssids[loop].ssid, in WLanFillSsid()
1175 scan->ssids[loop].ssidLen) != EOK) { in WLanFillSsid()
1179 wifiScan->ssids[loop].ssidLen = (uint32_t)(scan->ssids[loop].ssidLen); in WLanFillSsid()
1184 static int32_t WLanFillScanData(WifiScan *wifiScan, const struct HdfWifiScan *scan) in WLanFillScanData() argument
1186 if ((scan in WLanFillScanData()
1265 WlanInterfaceStartScan(struct IWlanInterface *self, const struct HdfFeatureInfo *ifeature, const struct HdfWifiScan *scan) WlanInterfaceStartScan() argument
[all...]
H A Dwlan_common_cmd.h55 const struct HdfWifiScan *scan);
/drivers/peripheral/wlan/interfaces/include/
H A Dwifi_hal_sta_feature.h65 * @param scanMac Indicates the pointer to the MAC address to scan for.
76 * @brief wlan hal start scan.
79 * @param scan start scan with param.
81 * @return Returns <b>0</b> if start scan is successfully; returns a negative value otherwise.
86 int32_t (*startScan)(const char *ifName, WifiScan *scan);
89 * @brief wlan hal start pno scan.
92 * @param pnoSettings pno scan parameters.
94 * @return Returns <b>0</b> if starting pno scan is successfully; returns a negative value otherwise.
102 * @brief wlan hal start pno scan
[all...]
/drivers/peripheral/wlan/test/hdi_service/
H A Dwlan_hdi_hal_services_c_test.cpp436 * @tc.desc: Wifi hdi start scan function test
445 struct HdfWifiScan scan = {0}; in HWTEST_F() local
449 rc = g_wlanObj->StartScan(g_wlanObj, nullptr, &scan); in HWTEST_F()
453 rc = g_wlanObj->StartScan(g_wlanObj, &ifeature, &scan); in HWTEST_F()
1153 * @tc.desc: Wifi hdi start pno scan
1206 * @tc.desc: Wifi hdi stop pno scan
1230 * @tc.desc: Wifi hdi start scan function test
1240 struct HdfWifiScan scan; in HWTEST_F() local
1242 (void)memset_s(&scan, sizeof(struct HdfWifiScan), 0, sizeof(struct HdfWifiScan)); in HWTEST_F()
1243 scan in HWTEST_F()
[all...]
H A Dwlan_hdi_direct_test.cpp393 * @tc.desc: Wifi hdi start scan function test
400 struct HdfWifiScan scan = {0}; in HWTEST_F() local
404 int32_t rc = g_wlanObj->StartScan(g_wlanObj, nullptr, &scan); in HWTEST_F()
407 rc = g_wlanObj->StartScan(g_wlanObj, &ifeature, &scan); in HWTEST_F()
412 rc = g_wlanObj->StartScan(g_wlanObj, &ifeature, &scan); in HWTEST_F()
/drivers/peripheral/wlan/client/src/sbuf/
H A Dsbuf_cmd_adapter.c546 HDF_LOGE("%s: write scan mac failed", __FUNCTION__); in SetScanMacAddr()
560 HDF_LOGE("%s: not support to set scan mac addr", __FUNCTION__); in SetScanMacAddr()
812 int32_t WifiCmdScan(const char *ifName, WifiScan *scan) in WifiCmdScan() argument
817 if (ifName == NULL || scan == NULL) { in WifiCmdScan()
828 if (scan->bssid == NULL) { in WifiCmdScan()
829 isSerializeFailed = isSerializeFailed || !HdfSbufWriteBuffer(data, scan->bssid, 0); in WifiCmdScan()
831 isSerializeFailed = isSerializeFailed || !HdfSbufWriteBuffer(data, scan->bssid, ETH_ADDR_LEN); in WifiCmdScan()
834 isSerializeFailed || !HdfSbufWriteBuffer(data, scan->ssids, sizeof(scan->ssids[0]) * scan in WifiCmdScan()
[all...]
/drivers/peripheral/wlan/test/fuzztest/sta_fuzzer/
H A Dsta_fuzzer.cpp27 struct HdfWifiScan scan = {0}; in FuzzStartScan() local
32 interface->StartScan(interface, &feature, &scan); in FuzzStartScan()
/drivers/peripheral/wlan/hal/include/
H A Dwifi_hal_cmd.h43 int32_t HalCmdStartScanInner(const char *ifName, WifiScan *scan);
/drivers/peripheral/wlan/client/src/netlink/
H A Dnetlink_cmd_adapter.c664 HILOG_ERROR(LOG_CORE, "%s: nlsock add membership for scan event failed.", __FUNCTION__); in ConnectEventSocket()
1604 static int32_t CmdScanPutSsidsMsg(struct nl_msg *msg, const WifiScan *scan, const WiphyInfo *wiphyInfo) in CmdScanPutSsidsMsg() argument
1609 if (scan->ssids) { in CmdScanPutSsidsMsg()
1616 /*add an empty ssid for a wildcard scan*/ in CmdScanPutSsidsMsg()
1621 for (i = 0; i < scan->numSsids; i++) { in CmdScanPutSsidsMsg()
1623 HILOG_INFO(LOG_CORE, "%s: Skip the excess hidden ssids for scan,current:%{public}d,max:%{public}d", in CmdScanPutSsidsMsg()
1627 if (strlen((const char *)scan->ssids[i].ssid) == 0 || scan->ssids[i].ssidLen == 0) { in CmdScanPutSsidsMsg()
1632 if (nla_put(msg, attrtype, scan->ssids[i].ssidLen, scan in CmdScanPutSsidsMsg()
1643 CmdScanPutFreqsMsg(struct nl_msg *msg, const WifiScan *scan) CmdScanPutFreqsMsg() argument
1662 CmdScanPutMsg(const char *ifName, struct nl_msg *msg, const WifiScan *scan) CmdScanPutMsg() argument
1705 WifiCmdScan(const char *ifName, WifiScan *scan) WifiCmdScan() argument
[all...]
/drivers/peripheral/wlan/client/include/
H A Dwifi_driver_client.h581 int32_t WifiCmdScan(const char *ifName, WifiScan *scan);
/drivers/peripheral/wlan/test/unittest/hal/
H A Dwifi_hal_test.cpp124 printf("Receive %u scan results\n", scanResults->num); in ParseScanResults()
876 WifiScan scan = {0};
883 ret = staFeature->startScan(nullptr, &scan);
887 ret = staFeature->startScan(ifNameInvalid, &scan);
889 ret = staFeature->startScan(ifName, &scan);
2188 * @tc.desc: Wifi hal stop pno scan

Completed in 15 milliseconds