Home
last modified time | relevance | path

Searched refs:ETH_ALEN (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/net/wifi/libwifi_system_iface/
Dinterface_tool.cpp110 const std::array<uint8_t, ETH_ALEN>& new_address) { in SetMacAddress()
112 static_assert(ETH_ALEN <= sizeof(ifr.ifr_hwaddr.sa_data), in SetMacAddress()
138 std::array<uint8_t, ETH_ALEN> InterfaceTool::GetFactoryMacAddress(const char* if_name) { in GetFactoryMacAddress()
139 std::array<uint8_t, ETH_ALEN> paddr = {}; in GetFactoryMacAddress()
154 epaddr = (ethtool_perm_addr*) malloc(sizeof(struct ethtool_perm_addr) + ETH_ALEN); in GetFactoryMacAddress()
162 epaddr->size = ETH_ALEN; in GetFactoryMacAddress()
168 } else if (epaddr->size == ETH_ALEN) { in GetFactoryMacAddress()
169 memcpy(paddr.data(), epaddr->data, ETH_ALEN); in GetFactoryMacAddress()
/frameworks/opt/net/wifi/libwifi_system_iface/include/wifi_system/
Dinterface_tool.h48 const std::array<uint8_t, ETH_ALEN>& address);
51 virtual std::array<uint8_t, ETH_ALEN> GetFactoryMacAddress(const char* if_name);
/frameworks/opt/net/wifi/libwifi_system_iface/testlib/include/wifi_system_test/
Dmock_interface_tool.h34 const std::array<uint8_t, ETH_ALEN>& address));
35 MOCK_METHOD1(GetFactoryMacAddress, std::array<uint8_t, ETH_ALEN>(const char* if_name));
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java423 final int ETH_ALEN = 6; in initRndisAddress() local
424 int address[] = new int[ETH_ALEN]; in initRndisAddress()
432 address[i % (ETH_ALEN - 1) + 1] ^= (int) serial.charAt(i); in initRndisAddress()