Home
last modified time | relevance | path

Searched refs:NL80211Attr (Results 1 – 10 of 10) sorted by relevance

/system/connectivity/wificond/net/
Dnl80211_attribute.h65 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 …]
Dnl80211_attribute.cpp26 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 …]
Dnl80211_packet.h131 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()
Dnetlink_utils.cpp120 get_wiphy.AddAttribute(NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, ifindex)); in GetWiphyIndex()
170 NL80211Attr<uint32_t>(NL80211_ATTR_WIPHY, wiphy_index)); in GetInterfaces()
250 NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, interface_index)); in SetInterfaceMode()
252 NL80211Attr<uint32_t>(NL80211_ATTR_IFTYPE, set_to_mode)); in SetInterfaceMode()
291 get_wiphy.AddAttribute(NL80211Attr<uint32_t>(NL80211_ATTR_WIPHY, wiphy_index)); in GetWiphyInfo()
485 get_station.AddAttribute(NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, in GetStationInfo()
487 get_station.AddAttribute(NL80211Attr<array<uint8_t, ETH_ALEN>>( in GetStationInfo()
590 NL80211Attr<uint32_t>(NL80211_ATTR_WIPHY, wiphy_and_attributes.first)); in MergePacketsForSplitWiphyDump()
628 NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, interface_index)); in SendMgmtFrame()
631 NL80211Attr<vector<uint8_t>>(NL80211_ATTR_FRAME, frame)); in SendMgmtFrame()
Dnetlink_manager.cpp453 NL80211Attr<string> family_name(CTRL_ATTR_FAMILY_NAME, NL80211_GENL_NAME); in DiscoverFamilyId()
/system/connectivity/wificond/tests/
Dnl80211_attribute_unittest.cpp122 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 …]
Dnl80211_packet_unittest.cpp117 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 …]
Dnetlink_utils_unittest.cpp104 packet->AddAttribute(NL80211Attr<uint8_t>(NL80211_ATTR_MAX_NUM_SCAN_SSIDS, in AppendScanCapabilitiesAttributes()
106 packet->AddAttribute(NL80211Attr<uint8_t>( in AppendScanCapabilitiesAttributes()
109 packet->AddAttribute(NL80211Attr<uint8_t>(NL80211_ATTR_MAX_MATCH_SETS, in AppendScanCapabilitiesAttributes()
112 packet->AddAttribute(NL80211Attr<uint32_t>( in AppendScanCapabilitiesAttributes()
115 packet->AddAttribute(NL80211Attr<uint32_t>( in AppendScanCapabilitiesAttributes()
118 packet->AddAttribute(NL80211Attr<uint32_t>( in AppendScanCapabilitiesAttributes()
128 freq_2g_1.AddAttribute(NL80211Attr<uint32_t>(NL80211_FREQUENCY_ATTR_FREQ, in GenerateBandsAttributeFor2g()
130 freq_2g_2.AddAttribute(NL80211Attr<uint32_t>(NL80211_FREQUENCY_ATTR_FREQ, in GenerateBandsAttributeFor2g()
132 freq_2g_3.AddAttribute(NL80211Attr<uint32_t>(NL80211_FREQUENCY_ATTR_FREQ, in GenerateBandsAttributeFor2g()
153 freq_5g_1.AddAttribute(NL80211Attr<uint32_t>(NL80211_FREQUENCY_ATTR_FREQ, in GenerateBandsAttributeFor5gAndDfs()
[all …]
Dscan_utils_unittest.cpp382 NL80211Attr<uint64_t>(NL80211_BSS_LAST_SEEN_BOOTTIME, in TEST_F()
385 NL80211Attr<uint64_t>(NL80211_BSS_TSF, kBssTsfTimestampMicroSeconds)); in TEST_F()
396 NL80211Attr<uint64_t>(NL80211_BSS_TSF, kBssTsfTimestampMicroSeconds)); in TEST_F()
410 NL80211Attr<uint64_t>(NL80211_BSS_BEACON_TSF, in TEST_F()
413 NL80211Attr<uint64_t>(NL80211_BSS_TSF, kBssTsfTimestampMicroSeconds)); in TEST_F()
427 NL80211Attr<uint64_t>(NL80211_BSS_BEACON_TSF, in TEST_F()
430 NL80211Attr<uint64_t>(NL80211_BSS_TSF, kBssTsfTimestampMicroSeconds)); in TEST_F()
/system/connectivity/wificond/scanning/
Dscan_utils.cpp88 NL80211Attr<uint32_t> ifindex(NL80211_ATTR_IFINDEX, interface_index); in GetScanResult()
231 std::vector<NL80211Attr<int8_t>> radio_chain_infos_attrs; in ParseRadioChainInfos()
296 NL80211Attr<uint32_t> if_index_attr(NL80211_ATTR_IFINDEX, interface_index); in Scan()
300 ssids_attr.AddAttribute(NL80211Attr<vector<uint8_t>>(i, ssids[i])); in Scan()
304 freqs_attr.AddAttribute(NL80211Attr<uint32_t>(i, freqs[i])); in Scan()
336 NL80211Attr<uint32_t>(NL80211_ATTR_SCAN_FLAGS, in Scan()
364 NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, interface_index)); in StopScheduledScan()
394 NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, interface_index)); in AbortScan()
423 scan_ssids_attr.AddAttribute(NL80211Attr<vector<uint8_t>>(i, scan_ssids[i])); in StartScheduledScan()
427 freqs_attr.AddAttribute(NL80211Attr<uint32_t>(i, freqs[i])); in StartScheduledScan()
[all …]