Commit 88eb6ced authored by Dan Williams's avatar Dan Williams

core: consolidate and clean up MAC cloning code

- Just use a byte array to old MAC addresses so we don't need to
  use .ether_addr_octet everywhere
- Consolidate setting the current MAC address into one location
- Make sure that if the GPERMADDR call fails we use the current MAC
  (this wasn't done for wired devices)
- Make log messages consistent
parent 3beea85a
This diff is collapsed.
......@@ -63,9 +63,6 @@ NMDevice *nm_device_ethernet_new (const char *udi,
void nm_device_ethernet_get_address (NMDeviceEthernet *dev,
struct ether_addr *addr);
void nm_device_ethernet_get_permanent_address (NMDeviceEthernet *dev,
struct ether_addr *addr);
This diff is collapsed.
......@@ -88,8 +88,6 @@ NMDevice *nm_device_wifi_new (const char *udi,
void nm_device_wifi_get_address (NMDeviceWifi *dev, struct ether_addr *addr);
void nm_device_wifi_get_permanent_address (NMDeviceWifi *dev, struct ether_addr *addr);
void nm_device_wifi_get_bssid (NMDeviceWifi *dev, struct ether_addr *bssid);
const GByteArray * nm_device_wifi_get_ssid (NMDeviceWifi *self);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment