hwaddr: change hwaddr only when valid