Lines Matching refs:packet
167 for (auto& packet : response) { in GetWiphyIndex() local
168 if (packet->GetMessageType() == NLMSG_ERROR) { in GetWiphyIndex()
170 << strerror(packet->GetErrorCode()); in GetWiphyIndex()
173 if (packet->GetMessageType() != netlink_manager_->GetFamilyId()) { in GetWiphyIndex()
175 << packet->GetMessageType(); in GetWiphyIndex()
178 if (packet->GetCommand() != NL80211_CMD_NEW_WIPHY) { in GetWiphyIndex()
181 << static_cast<int>(packet->GetCommand()); in GetWiphyIndex()
184 if (!packet->GetAttributeValue(NL80211_ATTR_WIPHY, out_wiphy_index)) { in GetWiphyIndex()
216 for (auto& packet : response) { in GetInterfaces() local
217 if (packet->GetMessageType() == NLMSG_ERROR) { in GetInterfaces()
219 << strerror(packet->GetErrorCode()); in GetInterfaces()
222 if (packet->GetMessageType() != netlink_manager_->GetFamilyId()) { in GetInterfaces()
224 << packet->GetMessageType(); in GetInterfaces()
227 if (packet->GetCommand() != NL80211_CMD_NEW_INTERFACE) { in GetInterfaces()
230 << static_cast<int>(packet->GetCommand()); in GetInterfaces()
239 if (!packet->GetAttributeValue(NL80211_ATTR_IFINDEX, &if_index)) { in GetInterfaces()
250 if (!packet->GetAttributeValue(NL80211_ATTR_IFNAME, &if_name)) { in GetInterfaces()
256 if (!packet->GetAttributeValue(NL80211_ATTR_MAC, &if_mac_addr)) { in GetInterfaces()
352 for (auto& packet : response) { in GetWiphyInfo() local
353 packet_per_wiphy.push_back(std::move(*(packet.release()))); in GetWiphyInfo()
357 for (const auto& packet : packet_per_wiphy) { in GetWiphyInfo() local
359 if (!packet.GetAttributeValue(NL80211_ATTR_WIPHY, ¤t_wiphy_index) || in GetWiphyInfo()
364 if (ParseWiphyInfoFromPacket(packet, out_band_info, in GetWiphyInfo()
376 const NL80211Packet& packet, in ParseWiphyInfoFromPacket() argument
380 if (packet.GetCommand() != NL80211_CMD_NEW_WIPHY) { in ParseWiphyInfoFromPacket()
382 << static_cast<int>(packet.GetCommand()); in ParseWiphyInfoFromPacket()
385 if (!ParseBandInfo(&packet, out_band_info) || in ParseWiphyInfoFromPacket()
386 !ParseScanCapabilities(&packet, out_scan_capabilities)) { in ParseWiphyInfoFromPacket()
390 if (!packet.GetAttributeValue(NL80211_ATTR_FEATURE_FLAGS, in ParseWiphyInfoFromPacket()
396 if (!packet.GetAttributeValue(NL80211_ATTR_EXT_FEATURES, in ParseWiphyInfoFromPacket()
406 const NL80211Packet* const packet, in ParseScanCapabilities() argument
409 if (!packet->GetAttributeValue(NL80211_ATTR_MAX_NUM_SCAN_SSIDS, in ParseScanCapabilities()
416 if (!packet->GetAttributeValue(NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS, in ParseScanCapabilities()
425 packet->GetAttributeValue(NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS, in ParseScanCapabilities()
428 packet->GetAttributeValue(NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL, in ParseScanCapabilities()
431 packet->GetAttributeValue(NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS, in ParseScanCapabilities()
435 if (!packet->GetAttributeValue(NL80211_ATTR_MAX_MATCH_SETS, in ParseScanCapabilities()
450 bool NetlinkUtils::ParseBandInfo(const NL80211Packet* const packet, in ParseBandInfo() argument
454 if (!packet->GetAttribute(NL80211_ATTR_WIPHY_BANDS, &bands_attr)) { in ParseBandInfo()
810 for (const auto& packet : split_dump_info) { in MergePacketsForSplitWiphyDump() local
812 if (!packet->GetAttributeValue(NL80211_ATTR_WIPHY, &wiphy_index)) { in MergePacketsForSplitWiphyDump()
817 if (!packet->GetAllAttributes(&attributes)) { in MergePacketsForSplitWiphyDump()