On 3/11/20 5:51 PM, James Prestwood wrote:
The use of l_rtnl_set_mac in IWD is always followed by powering up
device. Bringing the device back up requires calling l_rtnl_set_powered
which makes another async call into the kernel. In order to reduce
complexity we can include the IFF_UP flag to the MAC change message which
will both change the MAC and bring the interface up all in one go.
The existing behavior is maintained by passing false to 'power_up'.
ell/rtnl.c | 5 +++++
ell/rtnl.h | 1 +
2 files changed, 6 insertions(+)