Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/libwifi_system_iface/
Dinterface_tool.cpp141 struct ethtool_perm_addr *epaddr; in GetFactoryMacAddress() local
154 epaddr = (ethtool_perm_addr*) malloc(sizeof(struct ethtool_perm_addr) + ETH_ALEN); in GetFactoryMacAddress()
155 if (!epaddr) { in GetFactoryMacAddress()
161 epaddr->cmd = ETHTOOL_GPERMADDR; in GetFactoryMacAddress()
162 epaddr->size = ETH_ALEN; in GetFactoryMacAddress()
163 ifr.ifr_data = epaddr; in GetFactoryMacAddress()
168 } else if (epaddr->size == ETH_ALEN) { in GetFactoryMacAddress()
169 memcpy(paddr.data(), epaddr->data, ETH_ALEN); in GetFactoryMacAddress()