/system/connectivity/wificond/net/ |
D | nl80211_attribute.h | 60 class NL80211Attr : public BaseNL80211Attr { 62 NL80211Attr(int id, T value) { in NL80211Attr() function 75 explicit NL80211Attr(const std::vector<uint8_t>& data) { in NL80211Attr() function 79 ~NL80211Attr() override = default; 103 class NL80211Attr<std::vector<uint8_t>> : public BaseNL80211Attr { 105 NL80211Attr(int id, const std::vector<uint8_t>& raw_buffer); 106 explicit NL80211Attr(const std::vector<uint8_t>& data); 107 ~NL80211Attr() override = default; 112 class NL80211Attr<std::string> : public BaseNL80211Attr { 114 NL80211Attr(int id, const std::string& str); [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 87 NL80211Attr<vector<uint8_t>>::NL80211Attr(int id, in NL80211Attr() function in android::wificond::NL80211Attr 94 NL80211Attr<vector<uint8_t>>::NL80211Attr( in NL80211Attr() function in android::wificond::NL80211Attr 99 vector<uint8_t> NL80211Attr<vector<uint8_t>>::GetValue() const { in GetValue() 107 NL80211Attr<string>::NL80211Attr(int id, const string& str) { in NL80211Attr() function in android::wificond::NL80211Attr [all …]
|
D | nl80211_packet.h | 123 NL80211Attr<T> attribute(empty_vec); in GetAttributeValue() 132 bool GetAttribute(int id, NL80211Attr<T>* attribute) const { in GetAttribute() 143 *attribute = NL80211Attr<T>(std::vector<uint8_t>(start, end)); in GetAttribute()
|
D | netlink_utils.cpp | 103 NL80211Attr<uint32_t>(NL80211_ATTR_WIPHY, wiphy_index)); in GetInterfaces() 183 NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, interface_index)); in SetInterfaceMode() 185 NL80211Attr<uint32_t>(NL80211_ATTR_IFTYPE, set_to_mode)); in SetInterfaceMode() 205 get_wiphy.AddAttribute(NL80211Attr<uint32_t>(NL80211_ATTR_WIPHY, wiphy_index)); in GetWiphyInfo() 332 get_station.AddAttribute(NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, in GetStationInfo() 334 get_station.AddAttribute(NL80211Attr<vector<uint8_t>>(NL80211_ATTR_MAC, in GetStationInfo()
|
D | netlink_manager.cpp | 430 NL80211Attr<string> family_name(CTRL_ATTR_FAMILY_NAME, NL80211_GENL_NAME); in DiscoverFamilyId()
|
/system/connectivity/wificond/tests/ |
D | nl80211_attribute_unittest.cpp | 123 NL80211Attr<uint8_t> u8_attr(1, kU8Value1); in TEST() 128 NL80211Attr<uint16_t> u16_attr(1, kU16Value1); in TEST() 133 NL80211Attr<uint32_t> u32_attr(1, kU32Value1); in TEST() 138 NL80211Attr<std::string> str_attr(1, kIFName); in TEST() 146 NL80211Attr<std::vector<uint8_t>> byte_vector_attr(1, mac_address); in TEST() 152 NL80211Attr<uint32_t> u32_attr_1(1, kU32Value1); in TEST() 153 NL80211Attr<uint32_t> u32_attr_2(2, kU32Value2); in TEST() 171 NL80211Attr<uint32_t> u32_attr_1(3, kU32Value1); in TEST() 181 NL80211Attr<uint32_t> u32_attr_1(1, kU32Value1); in TEST() 192 NL80211Attr<uint32_t> u32_attr_1(1, kU32Value1); in TEST() [all …]
|
D | netlink_utils_unittest.cpp | 117 NL80211Attr<uint32_t> wiphy_index_attr(NL80211_ATTR_WIPHY, kFakeWiphyIndex); in TEST_F() 170 NL80211Attr<string> if_name_attr(NL80211_ATTR_IFNAME, string(kFakeInterfaceName)); in TEST_F() 173 NL80211Attr<uint32_t> if_index_attr(NL80211_ATTR_IFINDEX, kFakeInterfaceIndex); in TEST_F() 180 NL80211Attr<vector<uint8_t>> if_mac_attr(NL80211_ATTR_MAC, if_mac_addr); in TEST_F() 205 psuedo_interface.AddAttribute(NL80211Attr<uint64_t>( in TEST_F() 214 expected_interface.AddAttribute(NL80211Attr<string>( in TEST_F() 216 expected_interface.AddAttribute(NL80211Attr<uint32_t>( in TEST_F() 223 NL80211Attr<vector<uint8_t>>(NL80211_ATTR_MAC, if_mac_addr)); in TEST_F() 246 NL80211Attr<string> if_name_attr(NL80211_ATTR_IFNAME, string(kFakeInterfaceName)); in TEST_F() 250 NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, kFakeInterfaceIndex)); in TEST_F() [all …]
|
D | nl80211_packet_unittest.cpp | 118 NL80211Attr<uint8_t> u8_attr(1, kU8Value1); in TEST() 132 NL80211Attr<uint8_t> u8_attr(1, kU8Value1); in TEST() 133 NL80211Attr<uint32_t> u32_attr(2, kU32Value1); in TEST() 134 NL80211Attr<uint16_t> u16_attr(3, kU16Value1); in TEST() 159 NL80211Attr<uint16_t> u16_attr(2, kU16Value1); in TEST() 160 NL80211Attr<uint32_t> u32_attr_1(3, kU32Value1); in TEST() 161 NL80211Attr<uint32_t> u32_attr_2(4, kU32Value2); in TEST() 179 NL80211Attr<uint8_t> u8_attr(1, kU8Value1); in TEST()
|
/system/connectivity/wificond/scanning/ |
D | scan_utils.cpp | 81 NL80211Attr<uint32_t> ifindex(NL80211_ATTR_IFINDEX, interface_index); in GetScanResult() 236 NL80211Attr<uint32_t> if_index_attr(NL80211_ATTR_IFINDEX, interface_index); in Scan() 240 ssids_attr.AddAttribute(NL80211Attr<vector<uint8_t>>(i, ssids[i])); in Scan() 244 freqs_attr.AddAttribute(NL80211Attr<uint32_t>(i, freqs[i])); in Scan() 257 NL80211Attr<uint32_t>(NL80211_ATTR_SCAN_FLAGS, in Scan() 280 NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, interface_index)); in StopScheduledScan() 310 NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, interface_index)); in AbortScan() 337 scan_ssids_attr.AddAttribute(NL80211Attr<vector<uint8_t>>(i, scan_ssids[i])); in StartScheduledScan() 341 freqs_attr.AddAttribute(NL80211Attr<uint32_t>(i, freqs[i])); in StartScheduledScan() 352 NL80211Attr<vector<uint8_t>>(NL80211_SCHED_SCAN_MATCH_ATTR_SSID, match_ssids[i])); in StartScheduledScan() [all …]
|