Lines Matching defs:scan
664 HILOG_ERROR(LOG_CORE, "%s: nlsock add membership for scan event failed.", __FUNCTION__);
1604 static int32_t CmdScanPutSsidsMsg(struct nl_msg *msg, const WifiScan *scan, const WiphyInfo *wiphyInfo)
1609 if (scan->ssids) {
1616 /*add an empty ssid for a wildcard scan*/
1621 for (i = 0; i < scan->numSsids; i++) {
1623 HILOG_INFO(LOG_CORE, "%s: Skip the excess hidden ssids for scan,current:%{public}d,max:%{public}d",
1627 if (strlen((const char *)scan->ssids[i].ssid) == 0 || scan->ssids[i].ssidLen == 0) {
1632 if (nla_put(msg, attrtype, scan->ssids[i].ssidLen, scan->ssids[i].ssid) != RET_CODE_SUCCESS) {
1643 static int32_t CmdScanPutFreqsMsg(struct nl_msg *msg, const WifiScan *scan)
1648 if (scan->freqs) {
1654 for (i = 0; i < scan->numFreqs; i++) {
1655 nla_put_u32(msg, i + 1, scan->freqs[i]);
1662 static int32_t CmdScanPutMsg(const char *ifName, struct nl_msg *msg, const WifiScan *scan)
1680 if (CmdScanPutSsidsMsg(msg, scan, &wiphyInfo) != RET_CODE_SUCCESS) {
1684 if (CmdScanPutFreqsMsg(msg, scan) != RET_CODE_SUCCESS) {
1688 if (scan->extraIes) {
1689 if (nla_put(msg, NL80211_ATTR_IE, scan->extraIesLen, scan->extraIes) != RET_CODE_SUCCESS) {
1695 if (scan->bssid) {
1696 if (nla_put(msg, NL80211_ATTR_MAC, ETH_ADDR_LEN, scan->bssid) != RET_CODE_SUCCESS) {
1705 int32_t WifiCmdScan(const char *ifName, WifiScan *scan)
1725 ret = CmdScanPutMsg(ifName, msg, scan);