/system/connectivity/wificond/net/ |
D | nl80211_attribute.h | 65 class NL80211Attr : public BaseNL80211Attr { 67 NL80211Attr(int id, T value) { in NL80211Attr() function 80 explicit NL80211Attr(const std::vector<uint8_t>& data) { in NL80211Attr() function 84 ~NL80211Attr() override = default; 108 class NL80211Attr<std::vector<uint8_t>> : public BaseNL80211Attr { 110 NL80211Attr(int id, const std::vector<uint8_t>& raw_buffer); 111 explicit NL80211Attr(const std::vector<uint8_t>& data); 112 ~NL80211Attr() override = default; 117 class NL80211Attr<std::array<uint8_t, N>> : public BaseNL80211Attr { 119 NL80211Attr(int id, const std::array<uint8_t, N>& raw_buffer) in NL80211Attr() function [all …]
|
D | nl80211_attribute.cpp | 26 template class NL80211Attr<uint8_t>; variable 27 template class NL80211Attr<uint16_t>; variable 28 template class NL80211Attr<uint32_t>; variable 29 template class NL80211Attr<uint64_t>; variable 30 template class NL80211Attr<vector<uint8_t>>; variable 31 template class NL80211Attr<string>; variable 128 NL80211Attr<vector<uint8_t>>::NL80211Attr(int id, in NL80211Attr() function in android::wificond::NL80211Attr 132 NL80211Attr<vector<uint8_t>>::NL80211Attr( in NL80211Attr() function in android::wificond::NL80211Attr 137 vector<uint8_t> NL80211Attr<vector<uint8_t>>::GetValue() const { in GetValue() 145 NL80211Attr<string>::NL80211Attr(int id, const string& str) { in NL80211Attr() function in android::wificond::NL80211Attr [all …]
|
D | nl80211_packet.h | 131 NL80211Attr<T> attribute(empty_vec); in GetAttributeValue() 140 bool GetAttribute(int id, NL80211Attr<T>* attribute) const { in GetAttribute() 151 *attribute = NL80211Attr<T>(std::vector<uint8_t>(start, end)); in GetAttribute()
|
D | netlink_utils.cpp | 141 get_wiphy.AddAttribute(NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, ifindex)); in GetWiphyIndex() 191 NL80211Attr<uint32_t>(NL80211_ATTR_WIPHY, wiphy_index)); in GetInterfaces() 271 NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, interface_index)); in SetInterfaceMode() 273 NL80211Attr<uint32_t>(NL80211_ATTR_IFTYPE, set_to_mode)); in SetInterfaceMode() 312 get_wiphy.AddAttribute(NL80211Attr<uint32_t>(NL80211_ATTR_WIPHY, wiphy_index)); in GetWiphyInfo() 690 get_station.AddAttribute(NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, in GetStationInfo() 692 get_station.AddAttribute(NL80211Attr<array<uint8_t, ETH_ALEN>>( in GetStationInfo() 795 NL80211Attr<uint32_t>(NL80211_ATTR_WIPHY, wiphy_and_attributes.first)); in MergePacketsForSplitWiphyDump() 833 NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, interface_index)); in SendMgmtFrame() 836 NL80211Attr<vector<uint8_t>>(NL80211_ATTR_FRAME, frame)); in SendMgmtFrame()
|
D | netlink_manager.cpp | 453 NL80211Attr<string> family_name(CTRL_ATTR_FAMILY_NAME, NL80211_GENL_NAME); in DiscoverFamilyId()
|
/system/connectivity/wificond/tests/ |
D | nl80211_attribute_unittest.cpp | 122 NL80211Attr<uint8_t> u8_attr(1, kU8Value1); in TEST() 127 NL80211Attr<uint16_t> u16_attr(1, kU16Value1); in TEST() 132 NL80211Attr<uint32_t> u32_attr(1, kU32Value1); in TEST() 137 NL80211Attr<std::string> str_attr(1, kIFName); in TEST() 145 NL80211Attr<std::vector<uint8_t>> byte_vector_attr(1, mac_address); in TEST() 151 NL80211Attr<uint32_t> u32_attr_1(1, kU32Value1); in TEST() 152 NL80211Attr<uint32_t> u32_attr_2(2, kU32Value2); in TEST() 170 NL80211Attr<uint32_t> u32_attr_1(3, kU32Value1); in TEST() 180 NL80211Attr<uint32_t> u32_attr_1(1, kU32Value1); in TEST() 191 NL80211Attr<uint32_t> u32_attr_1(1, kU32Value1); in TEST() [all …]
|
D | nl80211_packet_unittest.cpp | 117 NL80211Attr<uint8_t> u8_attr(1, kU8Value1); in TEST() 131 NL80211Attr<uint8_t> u8_attr(1, kU8Value1); in TEST() 132 NL80211Attr<uint32_t> u32_attr(2, kU32Value1); in TEST() 133 NL80211Attr<uint16_t> u16_attr(3, kU16Value1); in TEST() 158 NL80211Attr<uint16_t> u16_attr(2, kU16Value1); in TEST() 159 NL80211Attr<uint32_t> u32_attr_1(3, kU32Value1); in TEST() 160 NL80211Attr<uint32_t> u32_attr_2(4, kU32Value2); in TEST() 178 NL80211Attr<uint8_t> u8_attr(1, kU8Value1); in TEST() 191 NL80211Attr<uint8_t> u8_attr(1, kU8Value1); in TEST() 192 NL80211Attr<uint32_t> u32_attr_1(2, kU32Value1); in TEST() [all …]
|
D | netlink_utils_unittest.cpp | 116 packet->AddAttribute(NL80211Attr<uint8_t>(NL80211_ATTR_MAX_NUM_SCAN_SSIDS, in AppendScanCapabilitiesAttributes() 118 packet->AddAttribute(NL80211Attr<uint8_t>( in AppendScanCapabilitiesAttributes() 121 packet->AddAttribute(NL80211Attr<uint8_t>(NL80211_ATTR_MAX_MATCH_SETS, in AppendScanCapabilitiesAttributes() 124 packet->AddAttribute(NL80211Attr<uint32_t>( in AppendScanCapabilitiesAttributes() 127 packet->AddAttribute(NL80211Attr<uint32_t>( in AppendScanCapabilitiesAttributes() 130 packet->AddAttribute(NL80211Attr<uint32_t>( in AppendScanCapabilitiesAttributes() 137 NL80211Attr<std::vector<uint8_t>> GenerateBandsAttributeForHtCapa() { in GenerateBandsAttributeForHtCapa() 139 return NL80211Attr<std::vector<uint8_t>>(NL80211_BAND_ATTR_HT_CAPA, in GenerateBandsAttributeForHtCapa() 144 NL80211Attr<std::vector<uint8_t>> GenerateBandsAttributeForVhtCapa() { in GenerateBandsAttributeForVhtCapa() 146 return NL80211Attr<std::vector<uint8_t>>(NL80211_BAND_ATTR_VHT_CAPA, in GenerateBandsAttributeForVhtCapa() [all …]
|
D | scan_utils_unittest.cpp | 385 NL80211Attr<uint64_t>(NL80211_BSS_LAST_SEEN_BOOTTIME, in TEST_F() 388 NL80211Attr<uint64_t>(NL80211_BSS_TSF, kBssTsfTimestampMicroSeconds)); in TEST_F() 399 NL80211Attr<uint64_t>(NL80211_BSS_TSF, kBssTsfTimestampMicroSeconds)); in TEST_F() 413 NL80211Attr<uint64_t>(NL80211_BSS_BEACON_TSF, in TEST_F() 416 NL80211Attr<uint64_t>(NL80211_BSS_TSF, kBssTsfTimestampMicroSeconds)); in TEST_F() 430 NL80211Attr<uint64_t>(NL80211_BSS_BEACON_TSF, in TEST_F() 433 NL80211Attr<uint64_t>(NL80211_BSS_TSF, kBssTsfTimestampMicroSeconds)); in TEST_F()
|
/system/connectivity/wificond/scanning/ |
D | scan_utils.cpp | 88 NL80211Attr<uint32_t> ifindex(NL80211_ATTR_IFINDEX, interface_index); in GetScanResult() 231 std::vector<NL80211Attr<int8_t>> radio_chain_infos_attrs; in ParseRadioChainInfos() 297 NL80211Attr<uint32_t> if_index_attr(NL80211_ATTR_IFINDEX, interface_index); in Scan() 301 ssids_attr.AddAttribute(NL80211Attr<vector<uint8_t>>(i, ssids[i])); in Scan() 305 freqs_attr.AddAttribute(NL80211Attr<uint32_t>(i, freqs[i])); in Scan() 340 NL80211Attr<uint32_t>(NL80211_ATTR_SCAN_FLAGS, in Scan() 369 NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, interface_index)); in StopScheduledScan() 399 NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, interface_index)); in AbortScan() 429 scan_ssids_attr.AddAttribute(NL80211Attr<vector<uint8_t>>(i, scan_ssids[i])); in StartScheduledScan() 433 freqs_attr.AddAttribute(NL80211Attr<uint32_t>(i, freqs[i])); in StartScheduledScan() [all …]
|